Saving Private Token
Description
Are you mad at 5 minute TTL of Claude Code? Me, too. So, let's save our private token. The KV Cache Reset is Sin.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
SavingPrivateToken
Keep Claude Code's prompt cache warm while you think.
Anthropic's prompt cache has a 5-minute TTL. If you step away from an interactive Claude Code session for more than 5 minutes — to grab coffee, read a spec, or just think — the cache expires and the next turn re-processes the entire prefix. `SavingPrivateToken` (`spt`) injects a tiny keepalive ping every 4:50 of idle via `tmux send-keys`, refreshing the TTL with a 1-token `pong` round-trip.
Prerequisites
**All of these must be installed and on `PATH` _before_ you run the `spt` installer.** The installer shells out to `claude` to register its plugin and to `tmux` at runtime to inject pings — neither is optional.
| Requirement | Why | Install |
|---|---|---|
Claude Code (claude on PATH) |
spt registers a plugin via claude plugin marketplace add + claude plugin install. Without claude at install time, hooks never fire. |
docs.claude.com/en/docs/claude-code |
| tmux ≥ 3.0 | The ping is injected via tmux send-keys into the claude pane. |
brew install tmux (macOS) · apt install tmux (Debian/Ubuntu) |
| Node.js ≥ 18 | spt and its install script are Node ESM. |
nodejs.org or brew install node |
| Bash (POSIX shell) | Plugin hooks are bash scripts. macOS and Linux are supported. Windows/PowerShell is not. WSL works. |
system default |
If `claude` or `tmux` is missing when you install, `spt` will warn and continue — but the keepalive won't work until both are present. You can re-register anytime with `spt install-plugin`.
Install
Not on npm yet. Install from git until the first release:
npm install -g git+https://github.com/NomaDamas/Saving-Private-Token.git
The postinstall step runs `claude plu
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11