Handoff MCP — persistent AI session context across Claude Code sessions
npx claudepluginhub alphaelements/handoff-mcpMCP server that gives AI coding agents persistent memory across sessions. Tracks tasks, decisions, blockers, and project context.
Optional auto-injection hooks: injects relevant project memories and linked documents on every prompt and file edit. Requires handoff-mcp plugin.
Automated task consumption loop — parallel TDD implementation, adversarial testing, and architectural review using handoff-mcp sessions. Language and framework agnostic.
7-day visitors to each marketplace page
An MCP server that gives AI coding agents persistent memory across sessions.
When you close a Claude Code session and start a new one, the new session has no idea what the previous one was doing. handoff-mcp solves this by saving session context — tasks, decisions, blockers, and file pointers — to a local .handoff/ directory that the next session can load automatically.
AI coding sessions are stateless. Every new session starts from zero:
This gets painful fast on multi-session projects.
Session 1 Session 2
┌──────────────┐ ┌──────────────┐
│ Working... │ .handoff/ │ load_context │
│ │──────────────────>│ ↓ guidance │
│ save_context │ tasks/ │ save_context │
│ - close │ sessions/ │ (active) │
│ - summary │ config.toml │ ↓ work... │
│ - decisions │ │ save_context │
│ - blockers │ │ (close) │
└──────────────┘ └──────────────┘
At session start, the agent calls handoff_load_context to pick up where things left off. If no active session exists, the response includes session_guidance prompting the agent to establish one via handoff_save_context with session_status: "active" — this creates a persistent .active.json that survives interruptions. At session end, the agent calls handoff_save_context (defaulting to session_status: "closed") to close the session.
Install the Handoff binary, add the GitHub marketplace, install the Codex Task Loop plugin, and register the Handoff MCP server:
npm install -g handoff-mcp-server
codex plugin marketplace add alphaelements/handoff-mcp
codex plugin add handoff-task-loop-codex@handoff-mcp-marketplace
codex mcp add handoff -- handoff-mcp
Confirm the plugin and MCP server, then begin a new Codex session:
handoff-mcp --version
codex plugin list
codex mcp get handoff
Use $handoff-session-loop only when you want to explicitly run ready Handoff
tasks through the Codex developer, tester, and reviewer loop. For regular
session continuity, use the Handoff MCP tools and this repository's
AGENTS.md guidance.
Local checkout: replace alphaelements/handoff-mcp with the absolute path
to this repository in the marketplace command. Reinstall the plugin after an
update and start a new Codex session so it reloads the bundled skill.
Direct MCP alternative: users who do not need the task loop can install the
binary and run only codex mcp add handoff -- handoff-mcp. This supplies the
Handoff tools but not $handoff-session-loop.
For a controlled non-interactive loop, permit Handoff MCP writes for that one
invocation; otherwise codex exec can cancel task-state changes:
codex exec -c 'mcp_servers.handoff.default_tools_approval_mode = "auto"' \
--sandbox workspace-write '$handoff-session-loop <scoped task request>'
Updating: run codex plugin marketplace upgrade handoff-mcp-marketplace,
then reinstall with codex plugin add handoff-task-loop-codex@handoff-mcp-marketplace.
Update the binary separately with npm install -g handoff-mcp-server@latest
or cargo install handoff-mcp --force.
Claude Code compatibility: Codex uses
$handoff-session-loop; Claude Code uses/session-loopand/research-loop. The Codex plugin does not execute Claude commands, agents, or Workflow DSL.
The easiest way to install handoff-mcp is as a Claude Code plugin.
# 1. Install the binary (required — the plugin calls it)
npm install -g handoff-mcp-server
# or: cargo install handoff-mcp
# 2. Add the marketplace (GitHub repo)
/plugin marketplace add alphaelements/handoff-mcp
# 3. Install the plugin (MCP server + skills)
/plugin install handoff-mcp@handoff-mcp-marketplace
# 4. Apply the change
/reload-plugins
This registers the MCP server and all skills automatically — no manual
.mcp.json or skill file setup needed. The handoff-mcp plugin is enabled
on install, so no separate /plugin enable is needed. Run /reload-plugins
to pick up the change mid-session (a Claude Code restart also applies it).
Naming:
handoff-mcpis the plugin name;handoff-mcp-marketplaceis the marketplace name (thenamefield in.claude-plugin/marketplace.json). Install commands always use<plugin>@<marketplace>.
The npm package ships prebuilt binaries — no Rust toolchain, no compiler, and no install scripts are needed. npm downloads only the binary matching your platform.
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
Directory of popular Claude Code extensions including development tools, productivity plugins, and MCP integrations
Plugins with agents, skills, and commands for Claude Code and six other coding tools. Local plugins are maintained as one Markdown source and adapted to each tool.