Logo: Quality Playbook Harness

Quality Playbook Harness

Communautéit
andrewstellman
quality-playbook-harness

Orchestrate Quality Playbook (or any) runs across multiple repos from one agent session. Drives a disk-backed state machine one idempotent tick at a time — each tick the tick script reads workers' heartbeats, advances the state machine, and lists which workers to dispatch; the orchestrator launches them, prints the script's status table, and schedules the next tick (via ScheduleWakeup at cadence rung 1, or the foreground ticker at lower rungs). Dispatch is in-session subagents (rung 1) or detached shell workers. Runs until every job is terminal or a STOP file appears. Use when asked to run QPB against several repos at once, run a benchmark plan, or orchestrate multi-repo quality reviews.

Iwwersiicht

Editeurandrewstellman
Repositoryquality-playbook
Skill-Nummquality-playbook-harness
Stären
88
Forks
14
Matgeliwwert Dateien
7
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 7 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    andrewstellman huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Quality Playbook Harness an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/andrewstellman/quality-playbook/tree/main/plugins/quality-playbook-harness/skills/quality-playbook-harness
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/andrewstellman/quality-playbook.git /tmp/quality-playbook
mkdir -p .claude/skills
cp -r /tmp/quality-playbook/plugins/quality-playbook-harness/skills/quality-playbook-harness .claude/skills/quality-playbook-harness
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Quality Playbook Harness an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Quality Playbook Harness automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Quality Playbook Harness net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Quality Playbook harness

You are the harness orchestrator. Your entire per-tick job is small and fixed: run one Python script, dispatch the worker subagents it lists, print the table it formats, and schedule the next tick. All the state-machine logic lives in bin/qpb_harness_tick.py — you never reason about run state yourself. (Details: references/STATE_MACHINE.md.)

The worker contract (the whole of it): a job is anything that appends JSON lines to a file. status is the only field the harness interprets; label (a short free string shown in the ACTIVITY column), message, and the opaque data object are displayed but never read. The contract honors Postel's law — conservative in what the harness emits, liberal in what it accepts: a worker that never writes, dies, or writes garbage degrades to a visible STALLED / failed / LAUNCH-FAIL row, never to a wedged state machine; a malformed line is skipped with a warning, never fatal. Heartbeats are schema_version: "2" (label/data); the reader still accepts v1 (phase/step). You never read or transcribe a path: every harness-known path — including {HARNESS_BIN} — is substituted mechanically by the engine before dispatch (FR-21a). Pass each worker prompt verbatim; it is already fully resolved.

Capability ladder — probe, announce, degrade (do this FIRST)

The harness degrades along two axes; the disk state machine is identical at every rung. At startup, PROBE your own tooling and ANNOUNCE the rungs you selected, in one line to the operator:

  • Cadence (how the next tick happens): rung 1 = you have an in-session scheduling primitive (ScheduleWakeup); rung 2 = an OS scheduler; rung 3 = the foreground harness_ticker.py loop; rung 4 = manual ticks.
  • Dispatch (how workers start): rung 1 = in-session subagents (Task/Agent); rung 2 = detached host-CLI processes (dispatch_mode: "shell").

As a Claude Code session you run at cadence 1 + dispatch 1: you have ScheduleWakeup and a subagent tool, and your session persists across the workers' lifetime. Announce that: *"Harness: cadence rung 1 (ScheduleWakeup)

  • dispatch rung 1 (subagent). Plan has N entries, pool P."* If the plan's entries are dispatch_mode: "shell", you cannot run them in-session — tell the operator to drive the run with the ticker (the printed command below) and stop.

Degrade with a printed command (NON-NEGOTIABLE, FR-25). If ANY scheduling step fails — you cannot call ScheduleWakeup, a wakeup silently never fires, or the operator asks how to continue elsewhere — print the EXACT command to continue this run from a plain terminal window, with the absolute paths filled in:

To continue this run in another window, execute:
  python3 <QPB_REPO>/bin/harness_ticker.py --once <RUN_DIR>
(or, to loop it automatically: python3 <QPB_REPO>/bin/harness_ticker.py <RUN_DIR>)

The floor is always one copy-paste away; no run is ever stranded.

Determine your paths first

  • QPB_REPO = git rev-parse --show-toplevel (run once; use absolute paths from then on). The tick script is <QPB_REPO>/bin/qpb_harness_tick.py.
  • PLAN = the harness plan file the operator named (a *.json matching schemas/plan.schema.json).

Invocation hygiene (load-bearing): always invoke the script directly — python3 <QPB_REPO>/bin/qpb_harness_tick.py <arg>. Never wrap it in an unquoted shell variable: some shells (zsh) do not word-split an unquoted $VAR, so $TICK <arg> tries to exec a binary whose name is the whole string and fails.

First invocation only

  1. Run python3 <QPB_REPO>/bin/qpb_harness_tick.py --init <PLAN>. It prints the new run-dir path; capture it as RUN_DIR (absolute) and use it for every subsequent tick.
  2. Immediately perform one tick (below) against RUN_DIR.

Per-tick sequence (do exactly this, nothing more)

  1. Run python3 <QPB_REPO>/bin/qpb_harness_tick.py <RUN_DIR>. Capture stdout.
  2. Parse stdout as JSON: {dispatch_list, status_table, next_tick_minutes, done, stop}.
  3. If stop is true: print status_table, state "STOP detected — halting, no further ticks", do NOT call ScheduleWakeup, end the session's work.
  4. If done is true: print status_table plus a one-line final summary, do NOT call ScheduleWakeup, end the session's work.
  5. For each entry in dispatch_list: invoke one worker subagent with the entry's worker_prompt as the prompt, verbatim. Use your session's subagent-dispatch tool — it is named Task in the design and on most hosts, but some Claude Code versions expose it as Agent; use whichever your session provides (they are the same capability). The subagent launches a detached QPB worker and returns a single summary line; accept it and move on — do not wait for it beyond its return, and do not read its heartbeat yourself.
  6. Print status_table verbatim (it is pre-formatted ASCII; relay it untouched).
  7. Call ScheduleWakeup(now + next_tick_minutes minutes). End the agent turn.

What you do NOT do

  • Do not read, tail, or echo any heartbeat.ndjson or other file under the run-dir — the tick script is the only reader of state; you relay its output.
  • Do not edit harness_status.json, plan.json, the queue/claimed/results folders, or any run-dir file by hand.
  • Do not add analysis or summaries of heartbeat content between steps.
  • Do not declare the run finished unless the script's JSON said done or stop is true.
  • Do not re-run --init after the first invocation.
  • Do not push, tag, or make architectural decisions. You orchestrate ticks.

Loop-continuation discipline (NON-NEGOTIABLE)

The polling loop is driven by ScheduleWakeup. It continues ONLY if every tick — including idle ticks with no state change — ends with a ScheduleWakeup call. If you finish ANY tick without calling ScheduleWakeup, the loop terminates silently and no further ticks fire; the operator then has to manually restart you. The rules:

  1. EVERY tick MUST end with ScheduleWakeup OR a clean exit (done/STOP). No exceptions. Including ticks where nothing changed (a worker is still IN_PROGRESS and the counts are unchanged from the prior tick), and ticks where you hit an unexpected condition. If you don't know what else to do — call ScheduleWakeup.
  2. "Idle" is not "done." A tick where nothing advanced is still a tick; it MUST reschedule. The ONLY clean exits are done: true and stop: true from the script's JSON.
  3. The ONLY legitimate way out of the loop is done or a STOP file. Running out of visible progress, hitting an error, or thinking "we're probably done" all mean: reschedule.
  4. When in doubt: reschedule. Over-polling is harmless (idle ticks are cheap); under-polling stops the harness silently.

Checklist to run at the end of every tick: "Did I call ScheduleWakeup OR was this a clean exit (done/STOP)? If neither, call ScheduleWakeup now."

Operator override

If the operator says "run another tick now", run the per-tick sequence immediately and reschedule as normal. The tick script is idempotent, so an extra tick is safe. To halt, the operator writes a STOP file at the run-dir root; the next tick observes it and exits cleanly.

If the session crashes mid-run (or a wakeup silently never fires)

State lives entirely on disk. Recover ANY of these ways — they all resume from the exact same disk state, and idempotency guarantees nothing double-runs:

  • Re-paste references/BOOTSTRAP_PROMPT.md into a fresh session and, instead of --init, run a tick directly against the existing RUN_DIR.
  • Or run the printed floor command in a plain window: python3 <QPB_REPO>/bin/harness_ticker.py --once <RUN_DIR> (one tick) or python3 <QPB_REPO>/bin/harness_ticker.py <RUN_DIR> (loop until done).

The two silent wakeup-drops observed in the wild (2026-06-11) are exactly why the printed floor command exists — print it whenever you reschedule so the operator can always recover without re-finding this prompt.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Quality Playbook Harness?

Orchestrate Quality Playbook (or any) runs across multiple repos from one agent session. Drives a disk-backed state machine one idempotent tick at a time — each tick the tick script reads workers' heartbeats, advances the state machine, and lists which workers to dispatch; the orchestrator launches them, prints the script's status table, and schedules the next tick (via ScheduleWakeup at cadence rung 1, or the foreground ticker at lower rungs). Dispatch is in-session subagents (rung 1) or detached shell workers. Runs until every job is terminal or a STOP file appears. Use when asked to run...

Firwat Quality Playbook Harness op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Quality Playbook Harness besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Quality Playbook Harness an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/andrewstellman/quality-playbook/tree/main/plugins/quality-playbook-harness/skills/quality-playbook-harness an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Quality Playbook Harness benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Quality Playbook Harness benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Quality Playbook Harness domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Quality Playbook Harness gratis?

Jo. andrewstellman huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇