session-handoff
Session Handoff
Write a complete handoff that lets a fresh agent, delegate_task subagent, or new session continue the work without re-asking, re-discovering, or repeating mistakes.
Core Principles
-
State, not instructions. Describe what is true, not what the next agent should do. Write "Auth endpoint is implemented; logout is not yet started" — never "Implement logout next." The fresh agent decides actions; you give it ground truth.
-
Reference, don't duplicate. Do not paste content already captured in other artifacts (plans, ADRs, issues, commits, diffs, design docs). Point to them by path or URL. Handoffs that re-embed everything become bloated and stale.
-
Capture the "why". Decisions and rejected approaches are the most valuable and least recoverable information. Code shows what; only you remember why and what failed.
-
Trust nothing blindly. Frame all claims as context to verify against the actual code, not facts to accept.
-
Redact secrets. Strip API keys, tokens, passwords, and PII. Reference where credentials live (e.g. "env var OPENROUTER_API_KEY" or "~/.hermes/secrets/token") — never their values.
-
Be ruthless. Every line must be something the next agent cannot trivially get by reading the code or project config. Cut anything obvious, redundant, or explanatory.