TokenEconomizer (Microsoft Research and UC Berkeley)

An open-source add-on for Claude Code, Codex, Copilot CLI and Pi. It learns from earlier sessions in the same repo and strips out what gets needlessly resent to the model. Across 277 SWE-Bench tasks it cut the average cost by 18.4–30.9%. The best result came on Claude Code with Opus 4.8, while on security-review tasks it saved only 6–9%.

How to try it

  1. You need Python 3.10+. No GPU or separate API key required.
  2. Open the article and follow it to the GitHub repo, then install the Python package and the Claude Code plugin per the instructions (check the exact commands at the link).
  3. Let it run through a few sessions on the same project, then compare spending in /cost or the Usage view.

Price: free (open source)

Official link

More new tools