microsoft/TokenEconomizer

Experience-Driven Black-Box Cost Control for Coding Agents

Open original source ↗

From the publisher

README & documentation

Source preview

Read the project’s overview, installation instructions and usage examples. The original README is the source of truth.

Aaron J. Li1, Weijia Xu2, Chandan Singh2, Zixiao Chen3, Jeevana Priya Inala2, Charlotte Siska3, Acar Tamersoy3, Bin Yu1, Ion Stoica1, Michel Galley2, Jianfeng Gao2 1UC Berkeley   2Microsoft Research   3Microsoft Security Our measurement on SWE-Bench tasks: 18.4–30.9% lower mean cost across five agent–model combinations, cheaper in all 30 repository × combination cells, and Pass@1 up in 4 of 5. Results TokenEconomizer makes coding agents cheaper to run in the repositories you work in often, without changing the agent itself. It learns from the sessions an agent has already run in a repository, and uses that experience to cut waste in the sessions that follow. It has three mechanisms: facts: a build step that must run first, the spelling of a command that works here (python -m pytest where pytest is missing, npx tsc where tsc is), an environment variable a command needs, where generated files live. Micro-skills learns such…

microsoft/TokenEconomizer on GitHub A short preview, not the full document.

Read the full README ↗ · Preview checked 2026-10-31T12:38:21.372Z

Inside the original README — Document outline
  1. TokenEconomizer: Experience-Driven Black-Box Cost Control for Coding Agents
  2. Results
  3. How it works
  4. Quick start
  5. Install
  6. Supported versions
  7. Everyday commands
  8. Settings
  9. What it does on each agent
  10. When a turn gets stuck
  11. Repository
  12. Reproducing the experiments

Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.

Links from the README

References supplied by the publisher, not independently verified endorsements. Check the destination before downloading files or entering credentials.

Documentation belongs to its respective authors. Reported project/model license: Apache-2.0. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.

What this repository does

Experience-Driven Black-Box Cost Control for Coding Agents

Repository facts

Owner
microsoft
Primary language
Python
Stars
2,515
Forks
145
Open issues + pull requests
7
License
Apache-2.0
Archived
No
Default branch
main
Created
2026-10-13T04:16:50.000Z
Last push
2026-10-31T00:09:32.000Z

Topics and intended use

No topics were included in the latest source metadata.

Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.

Evaluate before installing

Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.

README and project files

Issues and maintenance discussion

Releases and changelog

Source and freshness

Source: GitHub. Metadata observed 2026-10-31T12:18:20.650Z. Daily imports are snapshots, not real-time monitoring.

Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.

Open original source

Related repositories

public-apis/public-apis

EbookFoundation/free-programming-books

donnemartin/system-design-primer

vinta/awesome-python

practical-tutorials/project-based-learning

NousResearch/hermes-agent