hatchmoment. scored by care · not by stars

scalpel

scalpel: a local proxy that trims dead Claude context to cut token costs

notableTypeScript🛠 Developer Tools

Claude Code sends the full conversation each turn, inflating token bills. scalpel sits as a proxy, detects dead spans in the history, replaces them with lightweight stubs, and stores the originals on disk. It works transparently, letting developers keep using Claude unchanged while saving money. It’s especially useful for anyone building AI‑augmented tools that generate noisy intermediate results.

anthropicclaude-codellmprompt-cacheproxytoken-optimization
View on GitHub →

MohammedBasioni/scalpel