Handoff board

From woditschka/agentic-coding-reference · View interactive version

Handoff board is an AI agent skill from the GitHub repository woditschka/agentic-coding-reference. The reader board for the handoff log: render each slice of .scratch/handoff.jsonl — header, review-convergence matrix, timeline — to the terminal via scripts/handoff.py view. Load when the user asks where the pipeline stands, for a slice status, or for a review-progress summary. The writer side live

How to use this skill

Skill file

One Command

python3 scripts/handoff.py view --markdown [--req-id <id>] [--verbose]

Renders one board per slice, each three sections top to bottom:

  1. Header — req_id, the slice title, round and build counts, the grade verdict, and a whole-slice roll-up (elapsed plus aggregated cost) when the cost attributes.
  2. Review convergence matrix — rows are the reviewer roster (the floor, layout.toml extras, plus any other feedback author), columns are review rounds. A lane reading ✎ ✎ ✔ shows the rework.
  3. Timeline — the slice's records in append order. Implementer work groups as an implement session with its build attempts and mid-work consults nested; reviews nest their findings; grader facets expand under the grade. Fan-out noise is omitted. A session the tier ladder predicts as routine carries · routine on its opener (derived from the ledger by the router's tier fold; handoff.py tier prints the same derivation with its reason); base sessions stay unannotated. Where transcripts are readable, each closed session's derived tier is also checked against the transcript's real agent type — a contradiction renders ✗ tier mismatch: ran base (or ran routine) on the session line. The check degrades like the cost cells: no transcripts, an open session, or both tiers in one window draw no verdict. An archived ledger whose transcripts are gone renders with --window-tiers <file>: a recorded line-to-agent map replaces the derivation, so the page states the tier that ran.

Each step shows its elapsed wall-clock (◷, dispatch-start → record; ts is append-stamped, so the span is real) and — Claude Code only — its resource cost in the statusline's grouped vocabulary (Σ spend, ⛁ cache). Example review tail: ◷ 2m │ Σ ▲1.2M ▼4k $0.34 │ ⛁ 88% $71%. The dollar figure is a list-price notion — usage times the pricing table in accounting.py, the single edit point — not a bill. Both cells degrade to omission, never to a guess. A missing timestamp or an absent transcript (another tool, swept history) drops that cell alone; it never gates the board. The exact session-parenting, duration-bounding, and cost-attribution rules live in handoff.py view — the source is their contract, and this skill deliberately does not restate them (§ Read-Only Discipline: the layout may change).

With no --req-id, every slice renders as its own board, oldest to newest by first-record append position — the newest slice lands at the bottom. --req-id narrows to one slice and adds an also in log: pointer to the others. Records carrying no req_id render last under a (no req_id) header. --verbose prints full finding descriptions and fixes instead of one-line gists, prints each grade facet's note whole, and adds the grader's why: rationale, which the default board omits.

Pass --markdown as an agent: transcripts strip ANSI but render Markdown, so the heading, the matrix table, bold steps, and code-span tails carry the styling. The TTY modes serve humans — auto-detection (no flag) colors a real terminal, --color forces styling into a pager, --no-color forces plain text for logs and diffs. NO_COLOR disables auto-detection but an explicit --color beats it.

The board reads, it never gates. A missing or dirty log renders what parses and lists the problems; a malformed layout.toml falls back to the floor roster. A build with no implement session — an orphan record in a malformed log — falls back to the flat ── ▲ build-pass ── / ── ▲ build-failure ── rule. Only --req-id with no records exits 3.

When to Render

Presenting the Board

The terminal collapses long tool output, so the user never sees the raw run. Run the view exactly once, with --markdown, and relay its output verbatim into your reply — unfenced, so the client renders the Markdown. Never summarize away rows or steps; the board is the deliverable, like the change-grade relay. Copy, do not retype from memory: before sending, re-check the relay against the tool output line by line. A hand-carried board can drop or double a line — a doubled grade facet is the observed failure. Follow it with one or two plain sentences: the state of the latest slice (or, when the user asked about a specific one, that slice) and anything that needs the user's attention (an unresolved concern, a stalled reviewer, the grade).

Read-Only Discipline

The board is display, never a routing input. Routing decisions come from scripts/handoff.py route per the handoff-routing skill; machine questions about single records use latest. Never parse board output — it is formatted for humans and its layout may change. For raw record inspection, show pretty-prints records as JSON.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.