Use this template structure when creating handoff documents. The smart scaffold script will pre-fill metadata sections; complete the remaining sections based on session context.
- Session Metadata
- Current State Summary
- Codebase Understanding
- Work Completed
- Pending Work
- Context for Resuming Agent
- Environment State
- Related Resources
- Template Usage Notes
- Created: [TIMESTAMP]
- Project: [PROJECT_PATH]
- Branch: [GIT_BRANCH]
- Session duration: [APPROX_DURATION]
[One paragraph: What was being worked on, current status, and where things left off]
[Key architectural insights discovered during this session - how the system is structured, main components, data flow]
| File | Purpose | Relevance |
|---|---|---|
| path/to/file | What this file does | Why it matters for this task |
[Important patterns, conventions, or idioms found in this codebase that the next agent should follow]
- Task 1 - brief description of what was done
- Task 2 - brief description
| File | Changes | Rationale |
|---|---|---|
| path/to/file | Description of changes | Why this change was made |
| Decision | Options Considered | Rationale |
|---|---|---|
| Chose X over Y | X, Y, Z | Why X was chosen |
- [Most critical next action - what to do first]
- [Second priority]
- [Third priority]
- Blocker: [description] - Needs: [what's required to unblock]
- Question: [unclear aspect] - Suggested: [potential resolution]
- Item 1 (deferred because: [reason, e.g., out of scope, needs user input])
[Critical information the next agent MUST know to continue effectively - this is the most important section for handoff]
- Assumption 1: [what was assumed to be true]
- Assumption 2: [another assumption]
- [Things that might trip up a new agent - edge cases, quirks, non-obvious behavior]
- [Tool/Service]: [relevant configuration or state]
- [Any background processes, dev servers, watchers that may be running]
- [Key env vars that matter for this work - DO NOT include secrets/values, just names]
- [Link to relevant documentation]
- [Related file paths]
- [External resources consulted]
When filling this template:
- Be specific and concrete - vague descriptions don't help the next agent
- Include file paths with line numbers where relevant (e.g.,
src/auth.ts:142) - Prioritize the "Important Context" and "Immediate Next Steps" sections
- Don't include sensitive data (API keys, passwords, tokens)
- Focus on WHAT and WHY, not just WHAT - rationale is crucial for handoffs