pull_handoff_context
Retrieve exact context from a prior AI coding session, including plans, files, terminal errors, and git state, so you can continue work in another agent.
Instructions
Pull the exact context (verbatim recent conversation turns, implementation plans, task checklists, modified/read files, terminal commands/errors, and git state) from the user's previous session in Claude Code, Antigravity, Codex, or Grok Build CLI. Also returns a snapshot of the latest active sessions across all other platforms. Call this whenever the user says '/handoff', '$handoff', 'continue from my last session', or switches from another agent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional workspace path to match sessions for the current project. | |
| query | No | Optional topic, project name (e.g. 'auth refactor', 'api-server', 'frontend'), session number ('1', '2'), or agent name ('claude', 'codex') to match. | |
| max_turns | No | Number of verbatim turns to include (default: 25). | |
| session_id | No | Optional specific session ID prefix, index number ('1', '2'), or fuzzy query to pull. | |
| source_agent | No | Optional source platform ('claude', 'antigravity', 'codex', 'grok'). Omit to auto-detect the most recently active session. | |
| exclude_agent | No | Optional current agent name to exclude when auto-detecting the previous agent. |