NomaDamas

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.

15
0
100% credibility
Found Apr 25, 2026 at 15 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
JavaScript
AI Summary

A plugin for Claude Code interactive sessions that automatically sends minimal keepalive messages during idle periods to prevent prompt cache expiration and reduce reprocessing costs.

How It Works

1
😩 Forgotten conversations

You're chatting with your AI coding assistant, but after stepping away for a few minutes, it forgets everything and has to start over, wasting time.

2
🔍 Discover the fix

You find Saving Private Token, a handy helper that keeps your AI chats fresh even during coffee breaks or thinking time.

3
📥 Quickly add it

Install the tool with a simple command, and it automatically connects to your AI assistant to get ready.

4
🚀 Launch your session

Start your AI coding chat through the tool, and notice a little timer showing it's watching over your conversation.

5
⏸️ Pause without worry

Take a break to read notes or grab a snack – the tool sends tiny check-ins to keep your chat alive behind the scenes.

🎉 Seamless comeback

Jump back in after any break, and your AI remembers the full context instantly, making your work flow smoothly.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 15 to 15 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is Saving-Private-Token?

Saving-Private-Token is a JavaScript CLI tool that keeps Claude Code's prompt cache alive beyond its 5-minute TTL. It injects a minimal keepalive ping every 4:50 minutes of idle time via tmux send-keys, avoiding costly reprocessing of long conversation prefixes when you return from coffee or docs. Run `spt` to launch a tmux session with Claude Code, or use `spt doctor` to verify setup—handles plugin registration automatically on npm install.

Why is it gaining traction?

It nails a niche pain: cache expiration kills flow during real work pauses, and this delivers cheap pings (cents per day) that feel invisible. Stands out with tmux integration for nested sessions, env vars like `SPT_PING_INTERVAL` for tweaks, and troubleshooting via `spt install-plugin`. Devs grab it after hitting GitHub headaches like "you have exceeded a secondary rate limit," "you do not have permission to push to the head branch," or "you have divergent branches"—keeping AI cache warm lets you focus.

Who should use this?

Claude Code users in long interactive sessions, like backend devs debugging APIs or AI prompt engineers iterating models. Perfect if you step away often for specs, calls, or fixing "github you need to resolve your current index first" errors, without losing context. Skip if you're on Windows (no native support) or short-burst workflows.

Verdict

Worth npm installing for Claude Code regulars—excellent docs and CLI make it plug-and-play, even at 15 stars and 1.0% credibility score. Early maturity means run `spt doctor` first; it's a clever hack until Anthropic fixes TTL natively.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.