cw-handoff

cw-handoff is a skill for Claude Code, Codex from Hmbown/Codewhale. It costs 50 tokens per session (977 once invoked), scanned A, original, MIT.

Use when writing a Codewhale takeover prompt, continuation note, or end-of-session summary for another agent or a later session: a paste-ready handoff grounded in live state, with done/suspected/blocked kept separate.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for codewhale. Also seen: mentions AGENTS.md; built for codewhale.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/release/check-versions.sh.

About the project

Codewhale is an open-source coding agent that runs in the terminal and can read repositories, edit files, execute commands, and inspect results while pursuing a task. Developers use it with hosted providers or local models, with controls for how much access it receives.

Hmbown/Codewhale · 40,916 stars · on GitHub · codewhale.net

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Hmbown/Codewhale
agentmods
npx agentmods add skills/hmbown/codewhale/cw-handoff

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cw-handoff

README.md
[![agentmods](https://agentmods.dev/badge/skills/hmbown/codewhale/cw-handoff.svg)](https://agentmods.dev/skills/hmbown/codewhale/cw-handoff)
Your own site
<a href="https://agentmods.dev/skills/hmbown/codewhale/cw-handoff"><img src="https://agentmods.dev/badge/skills/hmbown/codewhale/cw-handoff.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 977 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified. ✓ AI security review Sonnet 5 · 6 Sept 2026
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.00977
Opus 5 $0.00025 $0.00489
Sonnet 5 $0.00010 $0.00195
Haiku 4.5 $0.00005 $0.00098

Measured today against content hash 33ddb57a0a77, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

cw-handoff scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/skills/cw-handoff/SKILL.md · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

cw-handoff

A handoff is read by an agent with none of your context and every incentive to believe you. That makes an optimistic handoff worse than no handoff: it converts your guesses into the next session's premises. Write it so the reader can re-derive the state instead of trusting the prose.

Stage 6 of the loop, and the one that makes the loop a loop: the next session starts at cw-orient with what you leave here.

When to use

  • Ending a session with work in flight.
  • Asked for "a prompt for another agent", branch takeover instructions, a continuation note, or a summary of current state for async work.
  • Handing a lane to a different model, a fleet worker, or a remote session.

Workflow

  1. Write it as a prompt the next agent can paste directly. Not a report about the work — instructions for continuing it.

  2. Open with the refresh block, not with your summary. The first thing the reader should do is verify you:

    cd <repo path>
    git status --short --branch && git branch --show-current
    git log --oneline --decorate -20
    git worktree list
    ./scripts/release/check-versions.sh
    

    Tell them to trust that output over anything below it.

  3. Include, in this order:

    • Repository path and expected branch or worktree.
    • The authority line: what they may and may not do without asking. Default to local-only — no push, merge, tag, publish, GitHub Release, or destructive cleanup without explicit approval.
    • Durable files to read, ordered by importance: the scoped AGENTS.md for the area, then the specific docs (docs/CACHE.md, docs/MOTION_CONTRACT.md, docs/ARCHITECTURE.md, crates/tui/AGENTS.md) the task actually touches.
    • Commits already landed, with SHAs.
    • Dirty worktree caveats, naming uncommitted files explicitly, and whose they are. This is the single most useful line in most handoffs.
    • The next slices, in priority order, each bounded the way cw-slice bounds one.
    • The verification gate for those slices — the smallest correct one from cw-gates, plus any known-flaky names.
    • Open decisions that genuinely belong to Hunter.

Read the full file on GitHub · 88 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 88 lines · 50 tokens per session scan A 33ddb57a0a77

Subscribe to this mod's changes

cw-handoff is a skill published in the GitHub repository Hmbown/Codewhale (40,916 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 977 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.