Agent Handoff Specification
The handoff command parses repository context to build a token-compressed summary document designed to transfer codebase state to a new agent or model session.
1. CLI Commands
Build Handoff Spec
Generates the summary document at .ai/intelligence/handoff.md:
bash
npx multimodel-dev-os handoff buildShow Handoff Spec
Prints the handoff content directly to the console (building it first if missing):
bash
npx multimodel-dev-os handoff show2. Handoff Structure
The compiled .ai/intelligence/handoff.md file contains the following key sections:
- Project Context: Package name, version, detected frameworks, and package dependencies.
- Intelligence Core State: Tells the incoming agent if the memory is
CURRENTorSTALE, feedback loop counts, rules status, proposals status, and last applied proposal run ID. - Core Learning Summaries: Provides a snippet of active learning rules from
learning-rules.md. - Safety Constraints: Outlines session boundaries, indicating that workflows are read-only and modifications require explicit user approval.
- Recommended Next Steps: Provides 2-3 logical starting points for the incoming agent.
3. Safety Controls
- No Source Dumps: Full source code is never appended.
- No Secrets: Scans target folders and excludes sensitive files,
.envconfigs, credentials, or private keys. - Excluded in VCS:
.ai/intelligence/handoff.mdis ignored by Git, ensuring local state doesn't pollute repository history. - Onboarding Guard: If the target repository has not been initialized with MultiModel Dev OS, the handoff builder warns the developer/agent and details the onboarding steps in the generated handoff.
