wh:handoff

wh:handoff is a command for Claude Code from maxwellsdm1867/wheeler. It costs 19 tokens per session (2,109 once invoked), scanned A, original, MIT.

A Wheeler command for handing independent research tasks to background workers after checking that the current research record is complete and traceable.

In plain words
What is it for?
Use it to check gaps and consistency in the knowledge graph—a structured record of research evidence—then queue suitable remaining tasks for background execution.
Why use it?
It reduces the risk of background work being based on missing questions, unsupported claims, or results that are not linked to their sources.

Command for Claude Code

Part of the wh plugin — 12 skills, 40 commands, 2 agents, 3 hooks, 5 MCP servers shipped together

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.

agentmods
npx agentmods add commands/maxwellsdm1867/wheeler/handoff
Clone the repo
git clone --depth 1 https://github.com/maxwellsdm1867/wheeler

Made for: Claude Code.

Or install wh, the plugin that ships this one along with the rest of its 12 skills, 40 commands, 2 agents, 3 hooks, 5 MCP servers.

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 wh:handoff

README.md
[![agentmods](https://agentmods.dev/badge/commands/maxwellsdm1867/wheeler/handoff.svg)](https://agentmods.dev/commands/maxwellsdm1867/wheeler/handoff)
Your own site
<a href="https://agentmods.dev/commands/maxwellsdm1867/wheeler/handoff"><img src="https://agentmods.dev/badge/commands/maxwellsdm1867/wheeler/handoff.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,109 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00019 $0.02109
Opus 5 $0.00010 $0.01055
Sonnet 5 $0.00004 $0.00422
Haiku 4.5 $0.00002 $0.00211

Measured 4d ago against content hash 23c693dd7652, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

wh: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 4d 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.

.claude/commands/wh/handoff.md · 177 lines

How it starts

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

You are Wheeler, a co-scientist at the HANDOFF transition point. The scientist and Wheeler have been thinking together, and you're evaluating whether remaining work can run independently.

The Core Rule

Every factual claim MUST cite a knowledge graph node using [NODE_ID] format.

Your Job

Assess context saturation and propose tasks for independent execution.

Pre-flight: Close-Readiness Check

Before queueing any background work, verify the foreground session has captured its provenance. Background workers should not run on top of an unclosed session with orphaned questions, unsupported hypotheses, or graph/file drift: they will produce results that cannot be cleanly traced back to the conversation that generated them.

Opt-out: If $ARGUMENTS contains --skip-close, skip this entire section, note "User opted out of close-readiness check via --skip-close" in the handoff report, and proceed directly to step 1 below.

Otherwise:

  1. Call graph_gaps() to detect relationship-based provenance gaps (unlinked questions, unsupported hypotheses, executions with no outputs, findings not appearing in any document, orphaned papers).

  2. Call graph_consistency_check(repair=False) to detect drift between the graph, knowledge/*.json, and synthesis/*.md layers.

  3. Compute total_gaps = unlinked_questions + unsupported_hypotheses + idle_executions + orphan_findings + orphan_papers from the graph_gaps result. Compute drift_count from the graph_consistency_check result (sum of mismatches across layers).

  4. If total_gaps > 0 OR drift_count > 0, present this prompt to the user verbatim, filling in the actual counts:

    This session has uncaptured provenance:
    - <N> unlinked questions
    - <N> unsupported hypotheses
    - <N> stale analyses
    - <consistency drift if any>
    
    Recommend running /wh:close first to capture provenance before queueing background workers.
    
    Run /wh:close first? (Y/n)
    
  5. Honor the answer:

    • Y (or any affirmative): Stop the handoff. Tell the user: "Run /wh:close to sweep provenance, then re-invoke /wh:handoff." Do not proceed to step 1 of the protocol below.
    • N (or any negative): Note in the handoff report: "User declined pre-close check, queueing background workers with orphans / drift entries." Then proceed to step 1 of the protocol below.

Read the full file on GitHub · 177 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. 4d ago First seen · 177 lines · 19 tokens per session scan A 23c693dd7652

Subscribe to this mod's changes

wh:handoff is a command published in the GitHub repository maxwellsdm1867/wheeler (10 stars, last pushed 2d ago), licensed MIT. It adds 19 tokens to every session and 2,109 once invoked, about $0.0001 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-08-31.