Skip to content

About

Named handoff and takeover skills for Claude Code and Codex, with shared project-local context snapshots.

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Handoff & Takeover Skill

Save a named summary of the current task, then continue in a fresh Claude Code or Codex session in the same project directory.

中文说明 · Security · Acceptance checks · Test report

This package has a shared handoff format and storage helper, with small adapters for each client. It captures the conversation context that is currently available; it does not read transcripts or recover details already lost through compaction.

Install

Requirements: Python 3.9+ with its standard library, local filesystem access, and a client supporting skills. Git is optional. On Windows, use your Python 3 command (often python) in place of python3.

From the source package directory, choose an explicit provider:

python3 install.py --provider claude-code --user
python3 install.py --provider codex --user

To install both adapters, or install only for one project:

python3 install.py --provider all --user
python3 install.py --provider all --project /path/to/project
Provider User installation Project installation
claude-code ~/.claude/skills/ <project>/.claude/skills/
codex ~/.agents/skills/ <project>/.agents/skills/

--provider is required and accepts claude-code, codex, or all. For a custom skill directory, use --skills-dir /path/to/skills with a single provider, rather than --user or --project.

Existing same-name skills are refused by default. After reviewing the destination, use --replace to replace them with backups outside the skill discovery directory. The installer does not change hooks, permissions, client settings, CLAUDE.md, or AGENTS.md. Check other installation scopes and legacy commands for name conflicts.

The common source lives under skills/; the installer inserts the appropriate fragment from providers/. Claude Code installations use argument-hint and disable-model-invocation: true. Codex installations carry agents/openai.yaml with policy.allow_implicit_invocation: false. Both workflows are intended for explicit invocation. Consult the official Claude Code skills documentation and Codex skills documentation for client discovery and invocation behavior. Actual client acceptance remains to be run.

Use

In Claude Code:

/handoff auth-cleanup

Wait for the verified save result. Then run /clear yourself, or open a fresh session in the same project directory, and invoke:

/takeover auth-cleanup

In Codex CLI:

$handoff auth-cleanup

After the verified save, start a fresh session in the same project directory:

$takeover auth-cleanup

In the Codex app, explicitly select or mention the handoff or takeover skill and provide the name. The skills do not clear, fork, or create sessions themselves.

The project root is fixed before accessing a note. Names are exact project-local identifiers: 1–64 lowercase ASCII letters/digits, -, or _, starting with a letter/digit. Paths, extensions, spaces, and Windows reserved basenames are rejected. An absent name does not select the latest or a similarly named note.

<project-root>/
  .handoffs/
    .gitignore
    auth-cleanup.md
    .history/auth-cleanup/<timestamp>-<id>.md
    .locks/

The same project root and name work in either direction: Claude Code can read a Codex handoff, and Codex can read a Claude Code handoff. Project-local storage keeps names separate between projects and places writes in the active workspace, which fits typical client sandbox boundaries better than a shared ~/.handoffs/. The active client's filesystem permissions still apply.

There is no automatic sync between worktrees, clones, machines, or cloud tasks. Git ignores the notes, so checking out the source repository does not bring them along. Old .claude/handoffs/ stores are not automatically searched or migrated.

What is preserved

Each note uses named-handoff/v1: a JSON header in a Markdown comment followed by ten ordered sections: Goal, Current state, Decisions, Constraints, Important files, Verification, Pitfalls, Open questions, Next steps, and References. Headings stay in English for validation; the body can use your language.

The helper adds UTC time and available Git metadata. Reusing a name replaces its current summary, keeps the previous bytes in .history/, and checks an expected SHA-256 revision to reject stale saves. Saves use a cooperative per-name lock, atomic replacement on suitable filesystems, and a readback of the written bytes.

Prefer a body below 24 KiB. The hard limits are 48 KiB for the body and 64 KiB for the whole document. These are byte limits, not model token limits.

Limits and privacy

A handoff is a lossy task summary, not a model-state export or repository backup. It does not transfer source changes, unsaved buffers, running processes, tools, credentials, or permissions. The receiving client rechecks the current files and environment and treats the note as evidence under the current instructions.

Git drift compares branch, commit, and status metadata. An already-dirty file can change without a new status hash, so an empty drift result never proves unchanged contents. Historical test results remain historical; the storage helper does not run project tests.

Notes and backups are Git-ignored. Common secret patterns, unsafe linked paths, oversized files, and stale revisions are rejected, but these checks cannot ensure confidentiality. Reading a note sends its contents through the receiving client's normal model/tool flow, including when changing providers. Review summaries before sharing them. Backups have no automatic retention policy.

The handoff workflow does not scan transcripts, call model APIs, commit or push Git history, clear sessions, or remove old data automatically. Normal client permissions remain in force. See SECURITY.md for the exact limits.

Verify and contribute

python3 -B -m unittest discover -s tests -v

See the test report for actual observed results and the acceptance checklist for the separate client checks. Automated tests do not establish that either host discovers and executes these skills correctly or that a model's summary is complete.

MIT License. Copyright 2026 powoct. See LICENSE.

About

Named handoff and takeover skills for Claude Code and Codex, with shared project-local context snapshots.

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages