rhunterharris

Cachetoast — Development skill for Claude Code

Development community

Local, provider-neutral handoffs and cache-aware session rotation for coding agents (Claude Code, Codex, Pi).

How to install Cachetoast

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

What Cachetoast does

Local, provider-neutral handoffs and cache-aware session rotation for coding agents (Claude Code, Codex, Pi).

Alternatives in Development

  • Coding Agent Session Search — Unified TUI and CLI to index and search your local coding agent session history across 11+ providers (Codex, C 708 ★
  • Alethe Agents — A local-first desktop workspace for running, organizing, and resuming multiple coding agents and shells with r 511 ★
  • Puppetmaster — Provider-neutral control plane for durable-state agent swarms: subprocess workers, leases, artifacts, memory 340 ★

README

Cachetoast

When you come back to a **large, idle** coding-agent session whose prompt cache has likely expired, Cachetoast holds your first prompt before the agent re-reads the whole context at full price, and gives you a handoff to continue in a fresh session instead. Works with Claude Code, Codex, and Pi.

Zero dependencies. No LLM calls, API keys, telemetry, or network access. Node.js 22+, macOS/Linux.

Built by [R. Hunter Harris](https://huntersoftwareconsulting.com) at [Hunter Software Consulting](https://huntersoftwareconsulting.com), fractional product and technology leadership for B2B SaaS.

Install

From the repo you want to protect:

npx github:rhunterharris/cachetoast init

It installs for the agents you have (`--provider codex` to choose, `--dry-run` to preview). The runtime is copied into `.cachetoast/runtime`, so hooks never call npm or the network. Run `update` instead of `init` to refresh an existing install; it keeps your providers, policy, state, and handoffs.

Then restart your agent.

  • Codex: trust the project, run codex in the repo, and approve the hooks in /hooks. The Codex app skips unapproved hooks and can't approve them (openai/codex#47283).
  • Pi: trust the project.

How it works

If a session is at least 100k tokens (`--min-context-tokens`) and has been idle past its cache deadline, your next prompt is held once:

Cachetoast held this prompt!

This ~180k-token session has been idle 55 min with a 1h cache TTL, so its prompt cache has likely expired and continuing would re-read it all as uncached input.
Send it again to continue here OR start a new session (not resume or fork) and run:
 /cachetoast-handoff claude-0123456789abcdef01234567
(The handoff includes your prompt.)

Send the prompt again to continue anyway. Or start a **fresh** session in the same repo and run the command from the notice: `/cachetoast-handoff KEY` in Claude Code, `$cachetoast-ha