Handoff
Prepare a clean context handoff for the next session.
Steps
Find the current active doc
- If
$ARGUMENTSis provided, find the matching doc inagent_dev/active/(match by name substring) - Otherwise, look in
agent_dev/active/for.mdfiles - If multiple exist and no argument was given, ask the user which one to update
- Read it to understand the todo list and plans
- If
Check off completed todos
- Run
git log --oneline -20andgit diff HEAD~5 --statto see what was done - Update the todo checkboxes in the active doc (
[ ]→[x]) for completed items
- Run
Commit progress
git add agent_dev/active/ git commit -m "chore: handoff - update progress"Enter Plan Mode
- Write a plan doc summarizing:
- What was completed this session
- What remains to be done
- Any blockers or decisions needed
- Use ExitPlanMode when done
- Write a plan doc summarizing:
Instruct the user
- Tell the user: "Accept the plan, then run
/clearto start a fresh session."
- Tell the user: "Accept the plan, then run