claude-code-handoff

A Claude Code plugin that saves and restores session state, meaning the information needed to continue work after a session ends or its context is shortened. It keeps rotating backups, checks context usage, and signs handoffs with HMAC, a tamper-detection method.

In plain words
What is it for?
Use it to create automatic session handoffs, reload saved state, rebuild missing handoffs from turn backups, receive context-size reminders, and verify that handoff files were not altered.
Why use it?
It reduces the chance that an agent forgets important instructions or progress when a session ends, context is compacted, or a repository contains untrusted changes.

Plugin for Claude Code

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.

Claude Code
/plugin marketplace add Sting25/claude-code-handoff
agentmods
npx agentmods add plugins/sting25/claude-code-handoff/marketplace
Clone the repo
git clone --depth 1 https://github.com/Sting25/claude-code-handoff

Made for: Claude Code.

Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

claude-code-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 2d 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-plugin/marketplace.json · 21 lines

What it actually says

{
  "name": "claude-code-handoff",
  "description": "Session-state handoff for Claude Code: hooks auto-snapshot at SessionEnd/PreCompact and auto-load at SessionStart. Rebuilds lost handoffs from per-turn backups, keeps rotating history, nudges at ~40% context, and HMAC-signs handoffs so cloned repos can't inject trusted rules.",
  "owner": {
    "name": "Christopher Chadwick",
    "url": "https://github.com/Sting25"
  },
  "plugins": [
    {
      "name": "claude-code-handoff",
      "source": "./",
      "description": "Session-state handoff for Claude Code: hooks auto-snapshot at SessionEnd/PreCompact and auto-load at SessionStart. Rebuilds lost handoffs from per-turn backups, keeps rotating history, nudges at ~40% context, and HMAC-signs handoffs so cloned repos can't inject trusted rules.",
      "author": {
        "name": "Christopher Chadwick",
        "url": "https://github.com/Sting25"
      },
      "homepage": "https://github.com/Sting25/claude-code-handoff"
    }
  ]
}
Files

What ships with it

1 file beside marketplace.json 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. 2d ago First seen · 21 lines scan A d9b5caeecf0d

Subscribe to this mod's changes

claude-code-handoff is a plugin published in the GitHub repository Sting25/claude-code-handoff (4 stars, last pushed 3d ago), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. 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 plugins, from other repositories

ai-engineer

Use this agent when implementing AI/ML features, integrating language models, building recommendation systems, or adding intelligent automation to applications. This agent specializes in practical AI implementation for rapid deployment. Examples:\n\n \nContext: Adding AI features to an app\nuser: "We need AI-po.

ccplugins/awesome-claude-code-plugins · not measured

api-tester

Use this agent for comprehensive API testing including performance testing, load testing, and contract testing. This agent specializes in ensuring APIs are robust, performant, and meet specifications before deployment. Examples:\n\n \nContext: Testing API performance under load.

ccplugins/awesome-claude-code-plugins · not measured

app-starter

Bootstrap new Next.js, Flutter, and FastAPI apps with current packages, no deprecated APIs, and a consistent house style. Ships skills nextjs-app, flutter-app, and fastapi-app.

ccplugins/awesome-claude-code-plugins · not measured

adamsreview

Multi-lens code review pipeline: deep review (Claude or Codex), automated fix loop, interactive walkthrough, manual promote, external-finding injection.

ccplugins/awesome-claude-code-plugins · not measured

instructions-audit

A prompt-injection tripwire for instruction files. An InstructionsLoaded hook audits CLAUDE.md / .claude/rules/.md content as it enters context and flags hidden or hostile directives: invisible Unicode smuggling (zero width characters, tag characters, variation-selector runs; the TrapDoor supply-chain signature), bidi.

karanb192/claude-code-hooks · not measured

claude-ai-music-skills

AI music generation workflow for Suno - album concepts, lyrics, prompts, mastering, release.

bitwize-music-studio/claude-ai-music-skills · not measured