cross-agent-handoff

agent
Guvenlik Denetimi
Uyari
Health Uyari
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Gecti
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Persistent project handoff across Claude Code, Codex, and other AI agents.

README.md

Cross-Agent Handoff

Switch agents. Keep the work. Claude Code, Codex, Antigravity, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Cline share project context, one writer at a time. Logos identify documented skill routes; see Compatibility for validation coverage.

Quick start · In plain words · How it works · Compatibility · Documentation

Package checks
MIT License
v0.3.1

Hit a usage limit? Switching agents? Returning in a new session? Save the useful context in your project, then let the next agent inspect the files and continue.

Eight agent skill routes, one project checkpoint. Compare compatibility and validation.

One compact checkpoint preserves the goal, verified progress, unfinished work, decisions, evidence and next action. No cross-vendor API calls, extra cloud service or shared chat history are required.

Quick start

Install your preferred route

Claude Code plugin · run inside Claude Code:

/plugin marketplace add kristianrolando/cross-agent-handoff
/plugin install cross-agent-handoff@cross-agent-tools

Direct skill for your coding agent · run in your project:

npx skills add kristianrolando/cross-agent-handoff --skill cross-agent-handoff

Choose your host in the installer. For Antigravity, select Antigravity or append --agent antigravity --copy for a project-local copy. This installer requires Node.js 22.20+; the core workflow does not need Node.js. For manual copying and user-wide paths, see installation options. Use one installation route per host. Check the host guide for locations and installer differences, including the recommended manual Cline path.

Initialize once

Your installation Prompt
Claude Code plugin /cross-agent-handoff:cross-agent-handoff Initialize continuity in this project.
Claude Code direct skill /cross-agent-handoff Initialize continuity in this project.
Codex Use $cross-agent-handoff to initialize continuity in this project.
Antigravity App, Cursor or Cline /cross-agent-handoff Initialize continuity in this project.
Gemini CLI, GitHub Copilot or OpenCode Use the cross-agent-handoff skill to initialize continuity in this project.

If the host does not discover the skill, use the explicit-file fallback. Antigravity IDE discovery can be checked in Customizations; Gemini CLI exposes /skills list.

For games, video edits or motion graphics, add Profile: game, Profile: video or Profile: motion (combinable) to the prompt. The checkpoint then also records render commands, outputs, style tokens or playtests. See profiles.

The agent inspects existing instructions and documentation, reuses a suitable checkpoint or creates HANDOFF.md, and adds short project routing where needed: a block in AGENTS.md, an @AGENTS.md line in CLAUDE.md for Claude Code (other lines kept), and a pointer for hosts that read neither. For a new project, include your goal and acceptance criteria. Initialization does not scaffold an application or choose a stack.

In plain words

No coding knowledge is needed to understand the idea. Think of a shift change at a hospital: the nurse going home writes a handover notebook, and the next nurse reads it before checking the patient. Cross-Agent Handoff gives your AI agents the same notebook.

Agent A works and writes progress into HANDOFF.md, the shared notebook holding the goal, finished work, half-done work, proof and one next step. Agent B reads it, checks the real files and continues.

What it looks like when an agent hits a limit:

Five steps: Agent A works and saves; it stops suddenly; you open Agent B on the same folder; B reads the notebook and checks the files, flagging stale notes; B carries on from the next step.

Optional safety net. Agents sometimes stop before they write their notes. Three helpers fill that gap, and you switch them on yourself per project (see hooks):

Three optional helpers, all off by default: a camera that records changed files when an agent stops, a welcome message that shows the notebook and warns about stale notes, and a one-time reminder to update stale notes.

A second writer becomes visible. An optional lock file marks which agent is working. A second agent must ask you before taking over, and every takeover is logged. The lock is advisory: it cannot stop an agent, editor or process from writing (see lock):

Four steps: the working agent takes a lock; another agent sees it and asks you first; you confirm the first agent is really finished; the takeover is logged with who, why and when.

The diagrams are illustrative. Details and exact commands follow below.

How it works

Three steps: work in one agent; save scope, state, evidence and the next action to the project; stop overlapping writers, then resume in the next agent after inspecting actual files.

Before switching, ask the outgoing agent:

Use cross-agent-handoff to save a handoff. Record actual progress, unfinished
work, evidence and limits, running operations, and one next action.
Start no new implementation.

Stop the outgoing session and any operations writing overlapping files. Open the same project files in the next agent:

Use cross-agent-handoff to resume this project. Read the checkpoint and
applicable instructions, inspect actual files and changes, then continue
from the next supported action. Preserve unfinished work.

Use the same procedure for Claude → Antigravity, Antigravity → Codex, Cursor → Gemini CLI, or any other supported pair. You open the next host; the skill does not switch applications automatically.

What survives the switch

Checkpoint map: project and task explain the goal; state separates verified and unfinished work; evidence identifies checks and inputs; next provides an actionable step. An illustrative greeting example shows unfinished blank-name handling.
Saved context Why it matters
Goal, scope and acceptance criteria Keep the task focused
Verified work and unfinished changes Reuse progress without assuming completion
Decisions, failed attempts and blockers Avoid rediscovering important findings
Checks, input identity and coverage limits Know which evidence still applies
Writers, running operations and next action Continue without overlapping edits

The checkpoint links to existing requirements, architecture and backlog instead of becoming a second specification. See the complete before/after example and default template. The diagram is illustrative, not test evidence.

Compatibility

Host / component Available route Evidence and limits
Claude Code Direct skill or included Claude plugin CLI 2.1.318 (print mode) initialized, resumed, recovered and finished tasks with hooks in the 2026-11-08 trial. Interactive sessions and a second account not exercised.
Codex Direct skill; optional UI metadata Codex CLI resumed, took over a lock after confirmation, recovered from an abrupt stop and avoided a re-render in live trials (2026-11-02, 2026-11-08).
Antigravity Native skill in .agents/skills/ Antigravity CLI (1.2.3, 1.4.12) expanded /cross-agent-handoff and resumed in live trials (2026-11-02, 2026-11-08); headless mode denied shell commands, so it used file tools only. App and IDE not exercised.
Cursor Native skill in .agents/skills/, .cursor/skills/ or .claude/skills/ Official discovery/invocation documented; live-app handoff not exercised here.
Gemini CLI Native skill in .agents/skills/ or .gemini/skills/ Official discovery documented; activation consent/settings may apply; no live-app trial here.
GitHub Copilot Native skill in .github/skills/, .agents/skills/ or .claude/skills/ Official agent support documented; loaded when relevant, with no documented slash command; surfaces and locations vary; no live-app trial here.
OpenCode Native skill in .opencode/skills/ or .agents/skills/ Official skill-tool loading documented; permissions apply; no live-app trial here.
Cline Native skill in .cline/skills/ or .claude/skills/ Official discovery/slash invocation documented; .agents/skills/ is not documented, so check the installer's destination; no live-app trial here.
Windsurf / other filesystem agents Explicitly read installed SKILL.md and checkpoint Portable fallback; native discovery not verified for this package.
Plain chat / uploads Read supplied checkpoint and files Snapshot only unless live filesystem tools are available.
Optional Python scripts Python 3.9+, standard library: helper, installer, snapshot, inject, hooks, lock Hosted checks on Linux, macOS and Windows with Python 3.9 and 3.14.
Opt-in hooks Claude Code, Codex, Antigravity Claude Code SessionStart and Stop, and Antigravity CLI Stop, ran in live trials. StopFailure, PreCompact, trusted Codex hooks and Antigravity context injection not yet observed. See the hook guide.
Concurrent overlapping writers Requires separate coordination An optional advisory lock makes a second writer visible; nothing locks source files.

New host routes were checked against official documentation and installation paths, reviewed on 2026-11-02. Documented compatibility, installer checks and actual model trials are distinct; Claude Code, Codex and Antigravity CLI have recorded live handoffs. See validation and coverage.

What to expect

  • Project files carry context. Applicable instructions and the inspected filesystem remain authoritative; the checkpoint guides the next inspection.
  • One writer at a time. Stop overlapping source and output writers before handing over. An optional advisory lock makes a second active writer visible and records each switch, but it cannot block edits. Use separate areas/workspaces and an integrator for simultaneous work.
  • Save after every completed step. Unsaved intent can be lost at a crash or usage limit. Optional snapshots and a resume-time check flag files changed after the last checkpoint, so the next agent knows to recover from the files. They are scripts started by the host or by you, not a background daemon, and they record what changed, not why.
  • Check the actual environment. The core needs filesystem access. Git and Python are optional; the helper requires Python 3.9+.
  • Keep records with the work. Moving devices requires transferring relevant dirty/untracked files and verifying the snapshot. No automatic cross-device synchronization is provided.

Installation options

Manual installation, locations and plugin loading

Copy the complete skills/cross-agent-handoff directory, including LICENSE and supporting resources, to one supported location for each host. With Python 3.9+, the bundled installer does this for several hosts at once and checks the copies later:

python3 skills/cross-agent-handoff/scripts/install.py --project /path/to/project --hosts claude,codex,antigravity
python3 skills/cross-agent-handoff/scripts/install.py --project /path/to/project --doctor

It never replaces an edited copy without asking, and --uninstall keeps HANDOFF.md and other project data.

The host guide lists project and user locations for all eight named native-skill hosts. No single project folder reaches every host: Claude Code and Cline do not read .agents/skills/, while Codex, Antigravity and Gemini CLI do not read .claude/skills/. Mixed teams may need two copies; keep every copy on the same version and use one canonical checkpoint.

Windows users can use their file manager; symlinks are not required. Inspect an existing installation before updating it rather than nesting a new copy inside its directory.

For local Claude plugin development, the marketplace command can point to this checkout. Root AGENTS.md and CLAUDE.md guide repository maintenance; installing the plugin does not automatically load those files into consumer projects. Initialization adds reviewed project routing when needed.

The included plugin wrapper is for Claude Code. Other hosts use direct skills or explicit file reading; this repository does not ship their native plugin wrappers.

Automatic snapshots and opt-in hooks

With Python 3.9+, scripts/inject.py prints resume context and warns when files or commits are newer than the checkpoint, which is what an abrupt stop leaves behind. scripts/snapshot.py records Git state, recently changed files and media metadata in a self-ignored .handoff/auto/ folder.

Hooks can run these automatically in Claude Code, Codex and Antigravity. They are never installed by default: run scripts/hooks.py install yourself, review the printed change, and remove it the same way. Claude Code also snapshots when a turn ends with a rate-limit error. See the hook guide for verified and unverified behavior per host.

Recovery, health checks, updates and removal

After an interruption:

Use cross-agent-handoff to recover after interruption. Inspect the checkpoint,
actual files, relevant diffs and untracked work, available evidence and running
operations. Separate verified progress from unknown history, save reconciled
state, then continue the authorized task.

For a read-only health review:

Use cross-agent-handoff to review continuity health without changing files.
Check routing, checkpoint claims versus files, validation inputs,
unfinished work and writer activity.

The optional helper provides draft creation, structural checks, selective file hashes, a previous copy and guarded atomic saves. It cannot prove historical test claims or writer inactivity.

To update, review and replace the installed skill while retaining project records. To remove, delete only the installation and reviewed routing additions; keep project data and decisions. See setup and removal.

Documentation

Start here Go deeper
Checkpoint example Architecture and trade-offs
Contributing with any coding agent Validation evidence and limits
Setup and migration File map
Agent installation and activation Release process and changelog
Snapshots and hooks Live-trial kit
Profiles for game, video, motion Advisory lock

Checks and contributions

python3 -m unittest discover -s tests -v

Use python on systems where python3 is unavailable. The CI workflow checks pushes and pull requests without model calls or vendor credentials. The badge shows current status; recorded evidence separates automated checks, illustrative examples and live-use reports.

Human and AI-assisted contributions use the same instructions, checkpoint and review process. Start with CONTRIBUTING.md. Visual assets in docs/assets/ are editable SVG files with wide and narrow layouts, descriptive alternative text, no external fonts and no embedded scripts. Brand marks are embedded locally with source credits and license.

License

MIT · Copyright (c) 2026 Kristian Rolando Limantara.

The standalone skill bundles the same license. Preserve its notices when distributing copies or substantial portions. Following this workflow does not itself require changing a consumer project's license.

Yorumlar (0)

Sonuc bulunamadi