AI Agent Handoff — AI skill for Claude Code
Transfer context between AI agents/tools.
How to install AI Agent Handoff
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Marinski/ai-agent-handoff and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What AI Agent Handoff does
Transfer context between AI agents/tools. Extracts Claude Code sessions and generates structured markdown hand-offs for OpenCode and other AI tools, preserving intent across token limits and platform switches. Extensible jq/sed filters support multiple AI platforms.
Alternatives in AI
- Debate — AI Debate Hub - Structured four-way debates between Claude, Sonnet, Gemini, and Codex 2.8k ★
- LongHorizon Harness — The long-horizon computer-use harness 1.3k ★
- Shuorenhua — 说人话|Chinese-first AI writing refinement skill that reduces boilerplate and AI tone while preserving facts, ter 262 ★
README
ai-agent-handoff
A tool for transferring conversation context and state between different AI agents/tools. Enables seamless handoffs from one AI assistant to another, preserving user intent and allowing you to continue conversations across different platforms or when token limits are reached.
Problem it solves
AI assistants typically have limited context windows and token budgets. When you reach these limits, you lose the conversation history, forcing you to restart from scratch. Additionally, different tools have different capabilities, interfaces, and strengths - you may want to switch between them while preserving the discussion state.
This tool bridges that gap by extracting the substantive parts of an AI coding session and formatting it as a structured handoff document that the next agent — Claude Code, OpenCode, or another tool — can pick up and continue from.
Supported tools
| Tool | Session store |
|---|---|
claude |
JSONL files under ~/.claude/projects/**/.jsonl |
opencode |
SQLite database at ~/.local/share/opencode/opencode.db (session/message/part tables) |
vscode |
SQLite database at ~/.vscode-server/data/User/globalStorage/github.copilot-chat/session-store.db (sessions/turns tables) — VS Code's native Chat panel, regardless of which model answered (GitHub Copilot, or a BYOK provider extension routed through the same store) |
Handoffs work in either direction: `--from claude --to opencode` and `--from opencode --to claude` both work, since `--from` is what selects the extraction backend — `--to` only labels the output for the next agent.
Features
- Extract user messages from the source tool's session store
- Extract assistant messages while filtering out that tool's own UI/tool noise (task notifications, local commands, tool metadata)
- Generate structured markdown hando
Related Skills
Compact Chat
Structured handoff documents to transfer context between AI chat sessions. Cursor / Claude Code / Codex skill.
MCP Filebridge
MCP file transfer prototype: file upload and download between remote MCP clients and servers. Works with Claud
Tacit Mining
Let AI truly understand you. A Claude Code skill that extracts tacit knowledge through structured dialogue. 隐性
Peek API
Discover internal APIs from any website. Captures XHR/fetch calls, extracts auth headers, outputs structured e
Always On Memory Agent
Always-on memory for Claude Code. Automatically records sessions, extracts structured observations via LLM, co
Pptx Shredder
Transform PowerPoint presentations into LLM-optimized markdown while preserving instructional design narrative
Related Agents
Claude Code Tools
by Prasad Chalasani - Well-crafted toolset for session continuity, featuring skills/commands to avoid compacti
Opencode Runner
Use when the main Claude thread should hand a substantial coding task to the opencode executor through the sha
Teibto Agent
Hand ONE well-scoped code or text edit inside a git repo to the machine's coding-agent CLI (OpenCode or Cline,