<!-- Flag #62/#63: allowed-tools removed. Inherit Bash(*) from settings.json. -->
Session Handoff
Write a handoff file for session continuity. Always use the handoff tool — never write handoff files manually.
Arguments
$ARGUMENTS: Optional trigger name (e.g.,pre-restart,phase-complete,discussion-milestone). Defaults tomanual.
Instructions
Step 1: Archive and signal
Run the handoff tool to archive the current handoff and prepare for a new one:
bash ./agency/tools/handoff write --trigger $ARGUMENTS
If $ARGUMENTS is empty, use --trigger manual.
Step 2: Write the handoff
Write the handoff file at the path the tool reported. Include:
- Date and context — date, branch, session/agent name
- What was done — completed work this session, key changes
- What's next — immediate next steps for a fresh session
- Key decisions — anything a new session needs to know
- Open items/blockers — unresolved issues, pending discussions
- Discussion queue — carried-forward discussion items
Integrity rule: before writing, check git status. If any implementation
files (.ts, .py, .bats, .sh, agency/tools/, hooks/, etc.) are uncommitted,
either commit them first OR clearly mark them as "in progress — uncommitted"
in the Current State section. Never write 'complete' for uncommitted work.
The handoff tool will automatically detect uncommitted impl files and emit a
WARNING that you should include verbatim in the handoff Current State section.
This is the audit trail — the next session reading the handoff sees exactly
what was left dirty.
Step 3: Verify
Run bash ./agency/tools/handoff read to verify the handoff was written correctly.