Handoff
The goal: the next agent, with no memory of this conversation, continues without asking anyone and without re-deriving anything.
At the start
- Read
docs/HANDOFF.mdin full, then the top 3 entries ofdocs/handoff/LOG.md. - Verify it against reality:
git status,git log --oneline -10,git branch -a, and open PRs (gh api repos/al0olo/agents-village/pulls --jq '.[].title'). - If the handoff and reality disagree, believe reality, then fix the handoff before starting new work and say so in the log.
- Restate the next step to the user in one or two sentences, then do it.
While working
Update docs/HANDOFF.md immediately when any of these happens: a unit of work finishes,
a decision is made, an approach fails, you find an environment quirk, you open or merge a PR.
At the end (or when cut off)
- Rewrite
docs/HANDOFF.mdusing the template below. It is current state, not history: replace stale lines, do not pile up. - Prepend a dated entry to
docs/handoff/LOG.md(newest first): what you did, why, what failed, links. History lives there. - Run
scripts/check-handoff.shand commit the handoff with the work. - Final message to the user: what is done, what is next, anything that needs their decision.
Template for docs/HANDOFF.md
# Handoff
Updated: YYYY-MM-DD by <agent/model> · Branch: <name> · Last commit: <sha>
## Objective
One paragraph: what the project is trying to achieve right now.
## State
- Done: item (PR #n)
- In progress: item, exactly where it stopped, uncommitted files if any
- Not started: item
## Next step
The single next action, concrete enough to start immediately, with commands.
## Queue
Ordered list after the next step.
## Open decisions (owner needs to decide)
Question, options, my recommendation.
## Gotchas
Environment quirks, failed approaches and why, things that look wrong but are intended.
## How to verify
Commands that prove the current state is healthy.
## Pointers
Files and docs to read for depth.
Quality bar
- Name files, branches, PR numbers, commands. No "as above", no "the thing we discussed".
- Record failed approaches and why, so nobody repeats them.
- Separate what you verified from what you assume, and say which is which.
- Keep
docs/HANDOFF.mdunder about 150 lines; move history to the log.