Skip to content
Back to skills

Handoff

ASecurity

Pull exact context (verbatim conversation turns, active implementation plans, task lists, modified files, terminal errors, and git state) from Claude Code, Antigravity, Codex, or Grok Build CLI, or prepare a handoff to another agent. Activate when the user types /handoff, $handoff, or asks to continue a session from another AI coding tool.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 13, 2026
ai-agentsgoshellbashgitapi

Works with

  • claude code
  • terminal
  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned November 13, 2026

npx -y skills add ajmainapon/one-agent-harness --skill handoff --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Handoff?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Handoff
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ajmainapon-handoff/badge)](https://www.skillsdirectory.com/skills/ajmainapon-handoff)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: handoff
description: Pull exact context (verbatim conversation turns, active implementation plans, task lists, modified files, terminal errors, and git state) from Claude Code, Antigravity, Codex, or Grok Build CLI, or prepare a handoff to another agent. Activate when the user types /handoff, $handoff, or asks to continue a session from another AI coding tool.
---

# Cross-Agent Context Handoff (`/handoff` & `$handoff`)

Use this skill whenever the user wants to:
1. **Continue work from another agent** (e.g., *"continue my last Claude Code session"*, *"pull context from Antigravity"*, *"what was I doing in Codex?"*, `/handoff`, `/handoff auth refactor`, `/handoff 2`, or `$handoff`).
2. **Switch or hand off current work to another agent** (e.g., *"hand this off to Codex"*, *"switch to Claude Code"*).

## Step 1: Retrieve the Exact Context Bundle

1. **If the `one-agent-harness` MCP server is available**:
   - Call the MCP tool `pull_handoff_context`:
     - If the user passed a session number, project name, or keyword (e.g. `/handoff 2`, `/handoff auth refactor`, `$handoff api-server`), pass it in `query` (e.g. `query="auth refactor"` or `query="2"`).
     - If the user named a platform (`"claude"`, `"antigravity"`, `"codex"`, or `"grok"`), pass `source_agent` (or `query`).
     - Pass `cwd` if you are in a real project repository.
   - Note: `pull_handoff_context` automatically skips trivial `/handoff` test sessions, ignores blank scratch folders (like `~/Documents/Codex/...`), and includes **Section 5: Other Recent Sessions Across All Platforms** with the latest prompt and progress from each agent.
2. **Fallback via CLI (works immediately on Linux, macOS, and Windows without restarting the app)**:
   - Run:
     ```bash
     harness handoff --read-only || ~/.local/bin/harness handoff --read-only
     ```
     *(Or pass a query/number/platform directly: `harness handoff "auth refactor" --read-only` or `harness handoff 2 --read-only`; on Windows PowerShell/CMD: `harness handoff --read-only` or `"$HOME\.local\bin\harness.cmd" handoff --read-only`).*
   - A missing match is an error, not permission to load another project. List recent sessions with the same agent/workspace filters and select the intended session by ID. Numbers refer to that filtered list and can change as new activity arrives.
   - Context may still be returned with a save warning. Use the returned transcript; a workspace write failure does not invalidate the extracted context.

## Step 2: Assimilate & Resume Seamlessly

Once you have retrieved the handoff context bundle:
1. **Do NOT ask the user to re-explain the problem.**
2. Briefly confirm what you loaded (3–5 bullet points):
   - Source platform, session title, and working directory
   - Current goal & active implementation plan / task step
   - Files already modified and uncommitted git changes
   - Exact next step where the previous agent stopped
   - *(If the user opened a blank scratch window and has multiple active projects in Section 5, briefly mention the other active sessions from Section 5 in case they want to switch to one of those instead — e.g. "Say `/handoff 2` or `/handoff <project>` to load another session").*
3. **Immediately continue executing the next step** of the task (or answer the user's prompt using the restored context).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.