agent-shift-handoff
v1.0.0
Published
Open standard and CLI for multi-agent task persistence and shift handoffs. Seamlessly transfer context across Claude Code, Cursor, Codex, Gemini, and human developers.
Maintainers
Readme
🤝 agent-shift-handoff
Open Standard & Lightweight CLI for Multi-Agent Task Persistence & Shift Handoffs.
Seamlessly transfer project context, active blockers, and completed milestones across Claude Code, Cursor, Codex, Gemini, and human developers.
💥 The Problem with Multi-Agent Workflows
When working with autonomous AI agents across shifts:
- Context Window Exhaustion: Long sessions degrade reasoning quality and force context resets.
- Model Switching Lost Context: Switching from Claude Code to Codex or Gemini often causes the new agent to re-analyze from scratch or repeat already-tested mistakes.
- Unstructured Knowledge: Chat transcripts are noisy and difficult for an incoming agent to parse quickly.
agent-shift-handoff provides a structured, lightweight protocol (.agent/handoff.json + HANDOFF.md) allowing an incoming agent to orient itself in 3 seconds.
⚡ Quick Start
1. Incoming Agent Shift: Resume Context
When starting a new agent session, simply tell the agent or run:
npx agent-shift-handoff resumeThe agent immediately sees:
- The overall session goal.
- What was previously completed (with verification proof).
- What is currently blocked or in-progress.
- Exactly what the next P0 action is.
2. Outgoing Agent Shift: Save Checkpoint
Before ending a session or compacting context:
npx agent-shift-handoff save \
--goal "Build auth API" \
--runtime "claude-code" \
--done "Migrated user schema" \
--next "Add rate limiting middleware"📦 File Structure
agent-handoff maintains two synchronized files in your repository:
.agent/handoff.json: Machine-readable, zero-drift JSON state..agent/HANDOFF.md: Human & LLM markdown briefing.
📜 License
MIT License © OIYO Lab
