/recap:recapfrom recap
Reconstructs what a Claude Code or Codex agent did during one session, including goals, decisions, actions, file/git changes, tests, failures, and final state. Use for session handoffs or evidence-backed summaries.
Ships in recap. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Recap explains one coding-agent session from end to end. It treats the transcript as an event source, repository state as corroborating evidence, and the active agent as the semantic synthesizer. The wrapper collects and validates evidence; it never calls a model.
CODEX_THREAD_ID is authoritative for
Codex. An exact Claude session ID is authoritative when the harness exposes one.$recall to find it, then pass its exact path or stable receipt.--current or a Codex result: search Recall with --harness claude plus the
relevant cwd/branch, then pass the winning exact path or receipt. Fail if no candidate matches.Run from this skill directory:
python3 scripts/recap.py collect --current --output ~/.recap/current.json
python3 scripts/recap.py collect --session <exact-session-path> --output ~/.recap/prior.json
For an exact main session plus its native subagents, its explicit Codex fork/continuation chain, or both, collect a boundary set. Recap asks Recall to prove native relationships and keeps every transcript in its own manifest and ordinal space:
python3 scripts/recap.py collect-set --current --include-children --output ~/.recap/with-children.json
python3 scripts/recap.py collect-set --session <exact-path> --chain --output ~/.recap/chain.json
python3 scripts/recap.py collect-set --session <exact-path> --chain --include-children \
--output ~/.recap/full-run.json
python3 scripts/recap.py validate-set ~/.recap/full-run.json
child means an exact Claude sidechain/agent relationship or Codex parent thread ID. continuation
means an explicit native fork link; temporal adjacency and similar working directories never count.
If a requested ancestor, child identity, or fork is missing or ambiguous, collection fails closed.
Local relationship discovery requires native transcripts on this machine; remote-only Recall does
not currently expose this graph.
Repeat --repo <worktree> when the session touched more than one repository or when a deleted
worktree cannot be derived from current session metadata. These are verification candidates, not
claims that the session changed them.
The output file is owner-only and may contain redacted session text. Do not put it in a repository,
test artifact, Slack message, or public evidence directory. The command prints only a content-free
receipt. If Recall is installed somewhere unusual, pass --recall-script or set RECALL_SCRIPT.
Recap independently scrubs event entities, session metadata, git observations, receipts, and output
paths after Recall's transcript redaction. Credential-shaped native identities fail before evidence
publication. Credential-shaped accounting labels or synthesis prose fail validation instead of
being rendered. These deterministic defenses never load a provider or Slack credential.
Validate before synthesis:
python3 scripts/recap.py validate ~/.recap/current.json
The manifest is a compact receipt and index. Its redacted events live in adjacent owner-private JSONL ledgers rather than inline in one huge JSON object. Read bounded semantic packets instead of loading the event ledger wholesale:
python3 scripts/recap.py packet ~/.recap/current.json packet-00000000
Packet IDs are listed in the manifest's private packet index. Complete prefix packets have content-addressed receipts; a live append changes only the unfinished tail packet.
Read references/truth-contract.md when handling child sessions, live/partial sessions, multiple
repositories, ambiguous git attribution, or exhaustive-ledger requests.
For a boundary set, perform accounting and synthesis independently for each member manifest. Then
write the cross-boundary handoff from the set's labeled child and continuation edges. Never merge
event ordinals, silently promote a child report to main-session observation, or imply that a fork is
the same native session.
Use the manifest to understand the work in two complementary views:
The transcript can establish that a command was attempted and what output was observed. Current git state can establish what exists now. Neither alone proves that the session caused a change. Say "the session edited" only when event evidence supports it; otherwise say "the current worktree contains" or "git now shows".
The manifest enforces that distinction:
git.session_observed contains event-linked mutations, git commands, reported commit IDs,
branch-switch attempts, verification commands, and repository candidates.git.session_end is explicitly unknown unless session evidence proves an end-state fact.git.verified_now contains bounded read-only snapshots taken during Recap. Every snapshot is
labeled verified_now_only; never back-attribute its diff to the session.Tool-input/result pairing is labeled order_inferred until the native source proves a call ID. A
missing worktree, detached branch, absent upstream, expired reflog, timeout, or bounded-output cutoff
is a limitation, not an empty result.
Tests count as run only when an observed command and result support the claim. Distinguish passed, failed, retried, discussed-only, and unverifiable-now. Never convert a proposed test into a run.
The collected manifest proves structural capture and packetization only; it deliberately reports
semantic accounting as packetized_not_classified. During synthesis, every observed event ordinal
must appear exactly once in either:
Do not dump every tool call into the prose. Group mechanically repetitive evidence while preserving counts and ordinal ranges. If the manifest is partial, changed during collection, redacted in a way that blocks a claim, or fails validation, label the recap incomplete. Never hide that limitation.
Write the semantic accounting draft beside the private manifest, never in the repository. Use this shape:
{
"schema_version": "recap.accounting.v1",
"claims": [
{"claim_id": "goal-1", "kind": "goal", "label": "Short claim", "event_ids": ["evidence-id"]}
],
"low_signal_groups": [
{"group_id": "routine-reads", "label": "Repeated routine reads", "ranges": [[4, 9]]}
]
}
Allowed claim kinds are goal, decision, action, change, verification, failure,
recovery, external_effect, final_state, and open_work. Labels are private semantic notes,
not public prose. Seal and validate the draft before treating the recap as exhaustive:
python3 scripts/recap.py seal-accounting ~/.recap/current.json ~/.recap/draft.json \
--output ~/.recap/accounting.json
python3 scripts/recap.py validate-accounting ~/.recap/current.json ~/.recap/accounting.json
Both commands print content-free receipts. A missing event, reused event ID, overlapping range, invented evidence ID, out-of-bounds range, or stale ledger hash fails closed. Fix the private draft; never weaken the validator or silently fall back to plausible prose.
After accounting seals, write a private recap.synthesis-draft.v1 JSON object from the bounded
packets. Story groups every accounted claim exactly once into a causal narrative. Timeline groups
every significant claim event exactly once into non-overlapping chronological entries; a thematic
claim may therefore appear in more than one timeline entry. The two views must not use the same
event partition. Keep changes, verification, failures/recoveries, final state, and open work as
focused projections of those claims.
Every renderable item carries:
id, concise summary, and (except the headline) title;accounting_claim_ids and the exact supporting evidence_ids;session_observed, agent_report, verified_now, or inference;caveat for inference; or exact git_evidence for verified-now facts.Read references/synthesis-contract.md for the closed JSON shape, verification fields, current-git
references, and a complete example. Validate before rendering:
python3 scripts/recap.py validate-synthesis \
~/.recap/current.json ~/.recap/accounting.json ~/.recap/synthesis.json
python3 scripts/recap.py render-synthesis \
~/.recap/current.json ~/.recap/accounting.json ~/.recap/synthesis.json \
--output ~/.recap/recap.md
The commands print content-free receipts; rendered prose remains owner-private until you answer the user. If validation fails, use the private errors to repair the draft at most twice. After two failed repairs, stop and say an authoritative recap could not be validated. Never emit a plausible fallback. The renderer also fails closed above 2,500 words.
Default to a readable recap under 2,500 words:
For very long sessions, keep the prose concise and offer or create a separate owner-private ledger. Evidence references should use stable event ordinals/IDs from the manifest, not copied private text. Use the validated render as the factual spine of the answer; adapt its tone without removing source qualifiers, uncertainty, or coverage limits.
agents/openai.yaml (opens in a new tab)references/synthesis-contract.md (opens in a new tab)references/truth-contract.md (opens in a new tab)scripts/accounting.py (opens in a new tab)scripts/event_ledger.py (opens in a new tab)scripts/git_provenance.py (opens in a new tab)scripts/privacy.py (opens in a new tab)scripts/recap.py (opens in a new tab)scripts/synthesis.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub parcha-ai/parcha-skills --plugin recapOther plugins' skills for the same job