Rorogogogo

Baton Pass — Development skill for Claude Code

Development community

Pass the baton before your context runs out: a Stop-hook + skill that hands a long agent session off to a fresh one to cut token cost.

How to install Baton Pass

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Rorogogogo/baton-pass and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Baton Pass does

Pass the baton before your context runs out: a Stop-hook + skill that hands a long agent session off to a fresh one to cut token cost.

Alternatives in Development

  • Hackingtool Plugin — Claude Code plugin: 183+ pentesting & OSINT tools from Z4nzu/hackingtool 1k ★
  • Taskmaster — Stop hook for Claude Code that keeps the agent working until all plans and user requests are 100% complete 494 ★
  • Benjamin Plus Skill — Benjamin-Plus: a measured token-efficiency skill for coding agents (−17.9% cost median, quality unchanged) 272 ★

README

🏃 baton-pass

**Preserve progress before context or usage limits interrupt the work.**

**English** | [简体中文](./README.zh-CN.md)

A local continuity tool with optional context and Claude 5-hour quota guards. At a safe boundary it reuses the same `baton-pass` skill to hand work to a *fresh* session. It is one dependency-free **Go** binary—no Python, Node, `jq`, network service, daemon, or Notchy dependency.

![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg) ![Built with Go](https://img.shields.io/badge/built%20with-Go-00ADD8?logo=go&logoColor=white) ![No runtime deps](https://img.shields.io/badge/runtime%20deps-none-success) ![skills.sh](https://img.shields.io/badge/install-skills.sh-black) ![agents](https://img.shields.io/badge/agents-Claude%20Code%20·%20Codex%20·%20Cursor-blue)


🧠 Why this exists

Every turn of an agent conversation re-sends the **entire context** to the model. As a session grows, two bad things happen:

  1. Cost climbs every turn. A conversation parked at 190K tokens pays for ~190K of context on each reply — forever, until you stop.
  2. Auto-compaction kicks in. Near the window limit your agent silently compacts the history into a lossy summary you didn't write and can't review.

`baton-pass` fixes both and can also hand off before Claude Code's real 5-hour usage window is exhausted. Context, quota, and manual handoff are independent:

Context guard ─┐
Quota guard   ─┼─→ baton-pass skill → handoff document → batonresume
Manual request ┘

The runtime decides **when**; the existing skill decides **how**. No second quota-specific handoff system is introduced.

🏁 Think of a relay race: each session runs its leg, then passes the baton (the handoff doc) to a fresh runner instead of dragging the whole track behind it.


💰 How much does it save?

The recurring cost of a turn scales with context size. With prompt caching, a cached re-read costs roughly **10%*