What do you want to do?
3 use cases
-
Cut Claude Code cost in a repository you work in every day
Install the plugin from its marketplace and let it learn from your sessions.
View prompt
Install microsoft/TokenEconomizer as a Claude Code plugin from a local clone, run /tokeneconomizer:status and /tokeneconomizer:toolprune refresh-catalog, then tell me what it reports.
-
Add the same cost control to Codex or Copilot CLI
Use each agent's plugin marketplace command and check status.
View prompt
Install TokenEconomizer for <codex|copilot|pi> following its README commands, then run its status command and show me the output.
-
Inspect and tune what it learned, pruned and blocked
Use the everyday commands to see facts, restore pruned tools and turn mechanisms on or off.
View prompt
In this repository, run TokenEconomizer's microskills, toolprune and config commands, list any fact that looks wrong, and restore pruned tools I still need.
Quick start with Token Economizer
- Check you have what it needs: Claude Code, Codex (0.141.0 or later), GitHub Copilot CLI or Pi; git; No API key of its own: model calls run through your own agent.
- Open microsoft/TokenEconomizer on GitHub and read the README and license.
- Run
git clone https://github.com/microsoft/TokenEconomizer.git - Run
claude plugin marketplace add "$PWD/TokenEconomizer" - Run
claude plugin install tokeneconomizer@tokeneconomizer - Start claude, trust the folder and run
/tokeneconomizer:status
These steps come from our top use case, Cut Claude Code cost in a repository you work in every day, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for microsoft/TokenEconomizer
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forDevelopers who run Claude Code, Codex or Copilot CLI daily in the same repositories and want lower cost.
- Why it is hot4.8k stars, launched 27 days ago, talked about in 2 AI sources we track
- LanguagePython
- Sourcegithub.com/microsoft/TokenEconomizer · Back to Hot repos
Requirements
- Claude Code, Codex (0.141.0 or later), GitHub Copilot CLI or Pi
- git
- No API key of its own: model calls run through your own agent
Add this badge to your README
Maintain Token Economizer? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/microsoft-tokeneconomizer/?utm_source=github&utm_medium=badge&utm_campaign=microsoft-TokenEconomizer)
HTML
<a href="https://dedupedai.com/use-cases/microsoft-tokeneconomizer/?utm_source=github&utm_medium=badge&utm_campaign=microsoft-TokenEconomizer"><img src="https://dedupedai.com/badge/microsoft/TokenEconomizer.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Token Economizer
What is Token Economizer?
TokenEconomizer is a plugin that makes coding agents cheaper to run in repositories you use often, without changing the agent. It learns micro-skills (repository facts confirmed across sessions), prunes tools that go unused, and runs a loop guard that redirects a stuck turn. It supports Claude Code, Codex, the GitHub Copilot CLI and Pi, with experimental support for opencode, Cursor Agent and Hermes Agent, and keeps what it learns in ~/.tokeneconomizer. It is an open-source project on GitHub: https://github.com/microsoft/TokenEconomizer.
How do I use Token Economizer?
Run git clone https://github.com/microsoft/TokenEconomizer.git; then run claude plugin marketplace add "$PWD/TokenEconomizer"; run claude plugin install tokeneconomizer@tokeneconomizer. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Token Economizer for?
Developers who run Claude Code, Codex or Copilot CLI daily in the same repositories and want lower cost.
What can I do with Token Economizer?
3 use cases so far, for example: Cut Claude Code cost in a repository you work in every day; Add the same cost control to Codex or Copilot CLI; Inspect and tune what it learned, pruned and blocked. Each has steps and a copy-paste agent prompt.
What do I need to run Token Economizer?
Claude Code, Codex (0.141.0 or later), GitHub Copilot CLI or Pi; git; No API key of its own: model calls run through your own agent.
What are alternatives to Token Economizer?
Other hot AI repos in Software and DevOps: Skills, Claude Mem, Freellmapi, Andrej Karpathy Skills, Agent Desktop.
Is Token Economizer safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.