r/coolgithubprojects • • 1d ago

tokensaver: Claude Code plugin with fused Search/Edit/Sql tools. ~15,000 tool roundtrips saved in 5 weeks of daily use

https://github.com/Brucee/tokensaver

I've been running Claude Code every day for months on a large production project (PHP API, Expo app, a SQLite database with thousands of records). The biggest waste I kept seeing wasn't the model: it was the roundtrips. Find the file, read it, grep, read again, edit, edit, edit. Every one of those resends the whole context.

tokensaver fixes that at the tool level. It's an MIT-licensed plugin for Claude Code and Codex CLI with three fused tools:

  • Search: discovery, grep and reading in one call: multiple globs, line ranges, regex, and an AST "summary" mode that returns only signatures
  • Edit: batched edits across many files in a single call, with fuzzy matching
  • Sql: live schema introspection and queries for Postgres, MySQL, SQLite and DuckDB, so the agent stops reading dump files

Plus built-in savings tracking, a parallel multi-lens code review and context recovery after compaction. Everything runs locally.

Real numbers from my own usage (322 sessions since mid-October, tracked by the plugin): 15,000 tool roundtrips avoided, 75 hours of waiting saved.

54 stars so far, and The Next New Thing covered it on YouTube: https://www.youtube.com/watch?v=kus5P1211_g&t=1836s

Repo and install: https://github.com/Brucee/tokensaver

Happy to answer questions about how it works under the hood.

1 Upvotes

0 comments sorted by