sw-handoff

sw-handoff is a skill for Claude Code from nomadop/session-watcher. It costs 54 tokens per session (1,230 once invoked), scanned A, original, MIT.

A handoff tool for carrying selected context from one coding session into the next before clearing the session.

In plain words
What is it for?
Use it with Session Watcher to choose what to keep or discard, create a redacted structured summary, and receive a token for loading the handoff later.
Why use it?
It reduces repeated reading by preserving only the relevant files, symbols, skills, summary, and next task.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions subagents.

Part of the session-watcher plugin — 3 skills, 1 hook shipped together

Good fit Use it with Session Watcher to choose what to keep or discard, create a redacted structured summary, and receive a token for loading the handoff later.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nomadop/session-watcher/sw-handoff
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nomadop/session-watcher --skill sw-handoff
Clone the repo
git clone --depth 1 https://github.com/nomadop/session-watcher

Made for: Claude Code.

Or install session-watcher, the plugin that ships this one along with the rest of its 3 skills, 1 hook.

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 sw-handoff

README.md
[![agentmods](https://agentmods.dev/badge/skills/nomadop/session-watcher/sw-handoff/github.svg)](https://agentmods.dev/skills/nomadop/session-watcher/sw-handoff)
Your own site
<a href="https://agentmods.dev/skills/nomadop/session-watcher/sw-handoff"><img src="https://agentmods.dev/badge/skills/nomadop/session-watcher/sw-handoff/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sw-handoff

Your own site · 80×15
<a href="https://agentmods.dev/skills/nomadop/session-watcher/sw-handoff"><img src="https://agentmods.dev/badge/skills/nomadop/session-watcher/sw-handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,230 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.00054 $0.01230
Opus 5.5 $0.00022 $0.00492
Sonnet 5.5 $0.00011 $0.00246
Haiku 4.5 $0.00005 $0.00123

Measured 18d ago against content hash 93ec1645a6c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sw-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 18d ago.

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.

skills/sw-handoff/SKILL.md · 62 lines

How it starts

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

Session Watcher Handoff

Prepare a handoff package so the next session can resume without re-reading what its first task needs, and without carrying what that task will not open.

Steps

  1. Get turn skeleton via the get_turn_skeleton tool → { snapshot_id, skeleton_path, notes_path, protocol }. Follow the protocol sentence it returns; it states how the two files are filled.

    • The call fails — an error instead of that shape, whatever its cause. Stop this run: report to the user that the turn skeleton could not be captured; do not produce or submit notes, and do not go on to prepare_handoff.
  2. Produce turn notes you MUST follow NOTES.md exactly for what each note says. Write them inline — do not delegate to a subagent.

  3. Submit notes via the submit_turn_notes tool with snapshot_id. The tool reads notes_path itself.

    • invalid_notes — each issues entry names a t, and each one is one section of notes_path. Edit those sections and submit again, at most three times (four submissions in all). If the last one still rejects, stop and report to the user; do not loop.

    The other three codes stop this run. Report the error to the user and take no further step:

    • stale_snapshot — snapshot is no longer current. Stop: report to the user; do not re-fetch the skeleton or re-produce notes.
    • invalid_snapshot — the capture's source identity or required metadata is invalid, including a transcript that cannot be read. Stop: report to the user.
    • storage_unavailable (retryable: true) — store temporarily unavailable. Stop: report to the user; they may re-run the skill when ready.
  4. Fetch bucket data via the get_bucket_summary tool.

    If metrics.br < 0.05 AND few turns: note "Context is still light — handoff may not be necessary yet, but proceeding as requested."

  5. Select paths to keep. The kept set is what the next task must have in hand before it can act. Candidates are the bucket summary plus any path this segment used that the bucket lacks. For each candidate, name the act of next_task that opens it; a candidate with no such act is not kept, whatever this segment did with it.

    • The repo outlives the context reset and the conversation does not, so a file the next session can read on demand is kept only where that first act needs it in hand: the file the task edits, the test that guards it, the artifact under discussion.
    • A blob under review is read by its reviewer, so what the next task needs is the review's return and the sources it cites.
    • Read each candidate's tokens from the bucket summary and total them before prepare. Where one path carries more than half that total, state which act needs all of it, or keep its symbols alone.

Read the full file on GitHub · 62 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 18d ago Changed 93ec1645a6c8
  2. 21d ago Changed · +4 tokens per session 1d3bec64e0fc
  3. 1mo ago Changed · +3 lines 9deeeb7a9ba2
  4. 1mo ago Changed · +2 lines bc678b863ea0
  5. 1mo ago Changed · +12 lines 7a988ad613c1
  6. 1mo ago First seen · 45 lines · 50 tokens per session scan A ff1927d8f072

Subscribe to this mod's changes

sw-handoff is a skill published in the GitHub repository nomadop/session-watcher (5 stars, last pushed yesterday), licensed MIT. It adds 54 tokens to every session and 1,230 once invoked, about $0.0002 per session on Opus 5.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-08-31.

Related

Other skills, from other repositories

context-efficient-coding

Use ContextFlux to minimize coding-agent context and tool calls when exploring, planning, debugging, reviewing, or modifying an unfamiliar or multi-file repository. Trigger for codebase discovery, symbol search, architecture questions, cross-file changes, error tracing, review feedback, test discovery, or any request…

divyanshu-iitian/ContextFlux · 72 tokens

git-ai-search

Search and restore AI conversation context from git history.

git-ai-project/git-ai · 13 tokens

usage-audit

Audit a Claude Code setup for token waste and context bloat. Checks MCP servers, CLAUDE.md, skills, and settings against bloat filters. Triggers on: "audit my context", "usage audit", "token audit", "context bloat". NOT for codebase audits.

Mathews-Tom/armory · 63 tokens

memorix-sessions

Use when resuming work, preparing handoff context, binding an HTTP control-plane project, or deciding whether sessionstart is useful.

AVIDS2/memorix · 31 tokens

frontmcp-extensibility

Use when extending FrontMCP beyond the core SDK by integrating external npm packages, libraries, or third-party services into providers and tools. Covers VectoriaDB for in-memory semantic and vector search (ML-based embeddings or TF-IDF keyword engines, with persistence) and the tamper-evident, hash-chained skill…

agentfront/frontmcp · 124 tokens

memory-audit-pattern-extraction

A method for investigating repeated mistakes by comparing related memories and checking whether an earlier reminder failed. It looks at where the reminder was stored, when it was created, and whether it was strong enough to prevent the mistake.

Dataojitori/nocturne_memory · 48 tokens