self-handoff

self-handoff is a skill for Claude Code, Codex from mblua/AgentsCommander. It costs 54 tokens per session (511 once invoked), scanned A, original, MIT.

A guide for writing a SELF-HANDOFF.md file that records the current work state before an agent clears or switches its conversation. The file points to lasting project records while preserving only session details that would otherwise be lost.

In plain words
What is it for?
Use it to prepare a concise handoff containing the active task, repository state, pending decisions, coordination details, and next step.
Why use it?
It prevents unfinished work, pending replies, decisions, and the next action from being forgotten when the agent resumes later.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to prepare a concise handoff containing the active task, repository state, pending decisions, coordination details, and next step.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mblua/agentscommander/self-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 mblua/AgentsCommander --skill self-handoff
Clone the repo
git clone --depth 1 https://github.com/mblua/AgentsCommander

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/mblua/agentscommander/self-handoff/github.svg)](https://agentmods.dev/skills/mblua/agentscommander/self-handoff)
Your own site
<a href="https://agentmods.dev/skills/mblua/agentscommander/self-handoff"><img src="https://agentmods.dev/badge/skills/mblua/agentscommander/self-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 self-handoff

Your own site · 80×15
<a href="https://agentmods.dev/skills/mblua/agentscommander/self-handoff"><img src="https://agentmods.dev/badge/skills/mblua/agentscommander/self-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 511 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.00511
Opus 5.5 $0.00022 $0.00204
Sonnet 5.5 $0.00011 $0.00102
Haiku 4.5 $0.00005 $0.00051

Measured 1mo ago against content hash be14286d90f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

self-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 1mo 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.

src-tauri/src/config/default_skills/self-handoff/SKILL.md · 40 lines

What it actually says

Self-handoff

The clear erases only the conversation. Your context file, Role.md and skill index reload on resume; memory and canonical files stay on disk. The handoff carries only session state they lack.

Sections

Use these headings in this order. Fill each with concrete facts or none.

  1. First action: one concrete step with the exact path or command.
  2. Active task: issue or ticket, one-line goal, and the current workflow step, named, not explained.
  3. Where the work is: repo, branch, last commit, PR, and paths to canonical state (plan, status files). Point to them; do not copy them.
  4. In flight: messages awaiting reply (peer, filename, what is expected), running CI or commands, requested reservations or locks.
  5. Coordination: who gives you orders now (room or FQN) and active delegations, with their source.
  6. Pending decisions and temporary holds: what awaits the user or coordinator; temporary holds with their source and expiry; lessons not yet saved, as Pending to save:.
  7. Next: the next queued task, named only.

Never include

  • Identity, role, language or answer rules.
  • Skill procedures: name the skill instead.
  • Closed work, and anything already in SELF-FORGET.md.
  • Round history, hash lists or status revision numbers: re-read live state on resume.
  • Credentials.
  • Durable lessons: save them to the owning skill or memory before the clear.

Shorten

  1. Delete everything listed under "Never include".
  2. Count the words.
  3. Rewrite to half or fewer. Paths, commands, SHAs, message filenames and quoted evidence are not counted and not cut. Never cut a fact; stop at the smallest size that keeps every fact.
  4. Shorten by removing, never by compressing: plain sentences, no glued words, no invented abbreviations.
  5. End the file with Words: draft <N>, final <M>.

More than 400 final words usually means content copied from elsewhere: recheck "Never include".

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. 1mo ago First seen · 40 lines · 54 tokens per session scan A be14286d90f5

Subscribe to this mod's changes

self-handoff is a skill published in the GitHub repository mblua/AgentsCommander (14 stars, last pushed today), licensed MIT. It adds 54 tokens to every session and 511 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-10-29.

Related

self-handoff compared with skills from other repositories

self-handoff next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
self-handoffmblua/AgentsCommanderSkill14todayMITA54Claude Code, Codex
paketw93/PakeSkill64ktodayGPL-3.0A47Claude Code
prompt-cache-optimizerling-kong-ran/pisperSkill315todayMITA42Claude Code
app-releaseluochang212/skill-zooSkill137todayMITA43Claude Code, Codex
tauri-updaterluochang212/skill-zooSkill137todayMITA53Claude Code, Codex
graphify-windowssaeedkolivand/ai-job-hunter-appSkill65todayApache-2.0A75Claude Code
zepp-coachlingcang728/ZeppBridgeSkill279yesterdayMITA95Claude Code