Stringers
microsoft/TokenEconomizer · microsoft

One headline turned a paper into "Claude's usage limits are finally enough": Microsoft's token-saving plugin gained 4,000 stars in a week

What it is A plugin that plugs into Claude Code, Codex, Copilot CLI, and Pi and learns from past sessions in each repo: it remembers how the repo is used, turns off tools that go unused, and breaks out of loops. The paper's measured cost reduction is 18.4–30.9%.

Why it took off Microsoft plus Berkeley's name and conservative paper numbers look credible next to a pile of personal projects claiming 90% savings. It also landed right as Claude usage anxiety peaked, and AI news accounts on YouTube (AI LABS), MarkTechPost, and X kept reposting it.

CHow you could follow Don't build another token-saving plugin. The most worthwhile opening is one neither it nor its competitors occupy: an open-source benchmark that scores tools like caveman, rtk, claude-mem, and TokenEconomizer on real billing numbers, pitched to AI-focused YouTube channels and X news accounts.

Grade C: its stars come mainly from Microsoft and Berkeley's name, which followers can't reproduce; the gap it leaves is already being filled by the community in the main repo; and the token-saving niche already has four or five projects at the 100k-star level. What you can learn is the playbook, not this topic. It's spreading in niche circles
Data (updated daily) · Repo created 2026-10-13 · 4,944 stars · 7 days +1,993
GitHub · stars
02k4k10-2210-2610-3011-0411-084.9k
Data 2026-10-22 → 2026-11-08 (18 days, 18 observations). Points before 10-28 come from deeply / archive backfill, not every day has one

microsoft/TokenEconomizer is the companion plugin to a paper from Microsoft Research and UC Berkeley. It plugs into Claude Code, Codex, Copilot CLI, and Pi, remembers the pitfalls you hit in the same repo, and spends fewer tokens next time. The paper came out in October and gathered only about two hundred stars in two weeks. On Oct 28 a YouTube channel framed it as "fixing Claude's usage limits", and AI media and big X accounts kept reposting it, adding 4,278 stars in a week, reaching 4,834 stars by 11-06. Below: what it is, where the stars came from, how crowded this niche is, and what paths are open if you want a similar project to gain stars.

One video, one rewritten headline

On 2026 Oct 28 at 3 UTC in the afternoon, the YouTube channel AI LABS, with 179k subscribers, posted a video titled "Microsoft's New Tool Finally Fixed Claude's Usage Limits". The first line of the description: "Claude burns through its usage quickly because Claude is wasting tokens." In the video, the plugin is installed on a demo project and turns off 276 tools that were never used; each message drops from about 34,300 tokens to 24,400 (as relayed by commenters). By 11-06 the video had 56,766 views and 910 likes (YouTube, 11-06).

The paper's own wording is "cache-aware cost reduced by 18.4–30.9%", and Aaron J. Li wrote the same thing in his X post on Oct 26, which gained only 5 stars the next day. Recast as "Claude's usage limits are finally enough", the same claim gained 181 stars the following day. The comments were also telling: some said "I trust Microsoft to fix things", some asked "aren't /doctor and the new nested projects already solving this?", and some asked whether it works with the Claude desktop app.

What it is

A plugin that runs outside the coding agent, doesn't swap the model or change the agent, and works through the agent's own hooks and settings. The core idea: you use the same agent in the same repo every day, and a lot of the money is spent repeatedly. It handles three things:

  • Remember how the repo works: e.g. it needs python -m pytest not pytest, or a build has to run before some command. A lesson only gets told to the agent at session start once it's confirmed across three sessions in a row; if it's later overturned, it's deleted.
  • Cut tools nobody uses: every loaded tool definition is resent with every request. Tools unused across several sessions in a row stop being loaded; one command brings them back.
  • Stop dead loops: when the same error keeps recurring, a judge model checks whether the agent is stuck; if so, it adds a line telling it to try another approach. If it's still stuck, it tells you, but never stops things on its own.

The math uses real billing: the cached portion is priced at cache rates, and the plugin's own model calls are counted too. The paper tests it on 277 SWE-Bench tasks across 5 agent and model combinations: cost drops 18.4–30.9%, 30 of the cells are cheaper across the board, and pass rate rises slightly for the 4/5 combination (README).

How the stars came in, day by day

DatestarDaily gainWhat happened
10-13 ~ 10-19Library built; 10-15 paper on arXiv, 10-19 on HuggingFace Daily Papers, with only 13 upvotes
10-23190+100Source not verified; likely a collaborator reposted it
10-27231+5The day before, a first author posted on X
10-29416+181AI LABS video
10-30556+140@LLMpsycho posted on X
10-311,732+1,176MarkTechPost ran the story "Microsoft's plugin cuts coding agent costs by up to 30.9%" and reposted it on X
11-012,951+1,219@rryssf (about 40k followers) on X posted a long thread plus a video: "Your coding agent keeps repeating the same mistakes"
11-02 ~ 11-034,432+799 / +682Reddit r/ClaudeCode, aggregator sites, Shorts, and Chinese Threads posts followed and reshared it
11-064,834+66Decline

(Daily GitHub snapshot, Beijing time; 292 forks.)

The starting point was neither the paper crowd nor HN (11-04 submission, 2 points), but YouTube AI tutorial channels and AI news accounts on X, amplified by MarkTechPost; Reddit came later. Daily star growth has already dropped from 1,219 to 66, so the first wave is over.

Why this one

The token-saving niche was already crowded, and others posted bigger numbers:

Projectstar(11-06)How it saves
JuliusBrussee/caveman118kMakes the agent talk like a caveman, spreads through memes
thedotmack/claude-mem113kCross-session memory, focused on remembering context
rtk-ai/rtk86kCompresses command output, claims 60–90% savings, but someone on HN pointed out that by the bill it may not save much
cheaper-inference/OmniRoute85kRoutes to cheaper or free models
mksglu/context-mode34kCompresses tool output in a sandbox within a session
codeburn, tokscale, etc.2k to 12kOnly tracks usage and builds dashboards

Among a pile of personal projects each claiming 90% savings, what it has is something different: credibility. An official Microsoft org, with Berkeley's Ion Stoica among the authors; there's a paper and reproducible experiments, the numbers are conservative, and it's measured against real bills with its own overhead included. Nearly every viral headline is "Microsoft + save 30% + fix Claude's limits"; nobody is talking about the cross-session learning mechanism. The mechanism gives evaluation videos and comment sections something to discuss, but the traffic comes from the headline.

It also covers Claude Code, Codex, and Copilot in one plugin, so users of all three will share it.

What it doesn't do well

v0.1.0, with plenty of problems; dozens of issues were opened in a single week (GitHub, 11-06):

  • Most problems are on Windows: command lines too long and erroring, temp directories that can't be deleted, hooks launching Python twice per start, and within 8 hours a system service's memory ballooned to 23.6 GB (#144).
  • Dead-loop detection false positives: Playwright tests passed, the agent read source code, and edited text containing "assert" or "failed" was all treated as being stuck (#128, #151).
  • It wastes money itself: under Claude Code, one Haiku call from the plugin pulls in every MCP server, roughly 570k effective tokens (#87); someone also said "I've used it a lot and can't see what the plugin is doing" (#113).
  • Sessions from before installation aren't learned from: comments and issues ask for "read the history in ~/.claude first when installing", and an external PR already exists for it (#130).

But external developers are filling these gaps in the main repo: 11-03 to 11-06, external PRs arrive every day, with people adapting it to Factory Droid, Grok Build, Antigravity CLI, and Hermes. On GitHub I found no similarly named or described repo built from scratch after 10-25. Building another one to fill its gaps would most likely mean doing contract work for it.

If it were you

C: You can learn a playbook from it, but it's not worth building on its own. Its stars mostly come from the Microsoft and Berkeley names, which you don't get; the parts it does poorly are being filled by the community in the main repo; and in the "save tokens" space, four or five projects already sit at a hundred thousand stars.

Who it suits: developers with an agent tool whose effect can really be measured, willing to put effort into a reproducible evaluation; people in a school or research group who were going to publish a paper anyway.

Who it doesn't suit: anyone wanting to build another "save tokens / agent memory" plugin (caveman, claude-mem, and rtk already hold those spots, and TE holds the "reliable" position); anyone wanting to make a Windows or Cursor version of TE (the community is already sending those to the main repo); anyone with no channel into the AI YouTube channels and X news accounts.

How to do it: if you insist on building in this space, the best shot is a position neither it nor its rivals hold: an open-source evaluation that scores every token-saving tool against real billing. Run the same tasks with caveman, rtk, claude-mem, and TE each, compute cost on cached billing, count each tool's own overhead, and publish the results as a table people will share. rtk's "it saves tokens but not money" criticism shows people want exactly this, and evaluation projects naturally get shared by the users of every tool being tested. The other route is to borrow its playbook for a different problem: "paper or reproducible experiment + a plugin installable in one command + a GIF + one conservative number", with a headline that puts the user's actual pain in their own words.

How to get users: reverse TE's sequence. Don't count on HN or the paper crowd at first; send the project and a line like "does X tool actually save money?" straight to AI tutorial channels like AI LABS, AI media like MarkTechPost, and AI news accounts on X, since they're short on topics. Put a results table and a one-line install at the top of the README.

When it's too late: Claude and Codex usage-limit anxiety is still flaring, and interest in token saving rides on that. Once Anthropic or OpenAI build tool trimming and cross-session memory into the product itself, the topic goes cold; this needs to ship by roughly the first half of 2027.

What would mean you've misread it: (1) Claude Code or Codex officially ships automatic tool disabling based on usage or repo-lesson memory, and third-party plugins across the category slow down; (2) your evaluation gets shared by one or two AI accounts but doesn't reach a few hundred stars in a week, meaning people only care about "made by Microsoft" headlines, not who actually saves money; (3) conversely, if TE's daily growth picks up again in mid-to-late November (say, it hits GitHub trending), demand is bigger than estimated here and the category has room for one more entrant.

GitHub repo ↗

Research notes: competitor table, acquisition evidence, full research report
Competitors
NameWhereLaunchedScaleHow it differs from this one
JuliusBrussee/cavemanOpen source2026-04118k starsCompresses output and spreads through memes, works only within a single session; TE learns repo lessons across sessions
rtk-ai/rtkOpen source2026-0186k starsCompresses command output and claims 60–90% token savings, but has been questioned on whether it saves anything by the real bill; TE measures by real billing after caching and counts its own overhead
thedotmack/claude-memOpen source2025-08113k starsCross-session memory focused on remembering context; TE remembers only a few repeatedly confirmed facts, plus cutting tools and stopping dead loops, with the goal of saving money
mksglu/context-modeOpen source2026-0234k starsPuts tool output in a sandbox and compresses it within a session; TE works across sessions
cheaper-inference/OmniRouteOpen source2026-0285k starsRoutes to cheaper or free models; TE doesn't switch models
codeburn / tokscale / TokenTrackerOpen source2025-12 to 2026-042k to 12k starsOnly tracks usage and builds dashboards, doesn't intervene
Claude Code / Codex built-in context compression, prompt cache, CLAUDE.mdBig-company featuresAlready thereAll usersDoesn't automatically cut tools or detect dead loops based on past sessions
Where users come from
  • Verified paper + HF Daily Papers: arXiv 10-15; HF 10-19 charted, only 13 upvotes
  • Verified author's X thread: @aaron_jli posted 10-26; gained only +5 in the following day
  • Verified YouTube AI tutorial channel: AI LABS (179k subscribers) posted "Microsoft's New Tool Finally Fixed Claude's Usage Limits" on 10-28, 56,766 views; +181 the next day
  • Verified AI media: MarkTechPost published on 10-30 and reposted on X; 10-31 +1,176
  • Verified major X AI news account: @rryssf (verified, 40.6k followers) posted a long thread plus video at 10-31 19:23 UTC; 11-01 +1,219 was the peak
  • Verified Reddit / HN / aggregators / short video: posts on r/ClaudeCode and r/LovingAIAgents; HN at 11-04 with only 2 points; faun.dev, emergent.sh, Shorts, Instagram reels, and Threads reshared it

Why microsoft/TokenEconomizer took off

Channel: GitHub open source | Research date 2026-11-06 | Data card gh_microsoft/TokenEconomizer

One line

A plugin paired with a paper from Microsoft Research and UC Berkeley (Ion Stoica among the authors): it installs into Claude Code, Codex, Copilot CLI, and Pi, records lessons from past sessions per repo, and spends fewer tokens next time. What made it take off is three things stacked together: the credibility of "Microsoft + Berkeley + paper-measured 18.4–30.9% cost savings", the active pain of "Claude's usage isn't enough", and successive shares from AI-focused YouTube and X accounts, 10/28–10/31. The product also really is different from the many token-saving libraries: it learns across sessions, measures against real cached billing, and doesn't modify the agent itself. But the stars didn't come from these mechanisms alone; they came from the headline "made by Microsoft, saves 30% in tests."

1. Data (github repo_day table, daily snapshot, Beijing time)

DatestarDaily gain
10-13Repo created
10-15arXiv 2610.22732 v1 published
10-19Listed on HuggingFace Daily Papers (only 13 upvotes, HF API)
10-2290
10-23190+100
10-28235+4
10-29416+181
10-30556+140
10-311,732+1,176
11-012,951+1,219 (peak)
11-023,750+799
11-034,432+682
11-044,644+212
11-054,768+124
11-064,834+66

+4,278 over the last 7 days, +366 over the previous 7 days; 292 forks (fork/star about 6%, normal). Daily growth has dropped from 1,219 to 66, so the first wave of interest is largely over. Not yet 60 days old, so not appearing on trending isn't a red flag (repo notes: trending only includes repos about 60 days old). Community participation is real: 22 contributors, and between 11-03 and 11-06 external PRs arrived every day, fixing Windows compatibility and loop-guard false positives, with people adapting it to newer agents like Factory Droid, Grok Build, and Antigravity CLI (GitHub API issues list).

2. Growth tactics: timeline and evidence

The launch followed the standard playbook: paper + code + project page + author tweet. Distribution came mostly from third-party AI content accounts; I didn't see any paid promotion.

  1. 10-15 arXiv + 10-19 HF Daily Papers: small academic circle, HF only 13 upvotes. The 10-22 and 10-23 stars on those 100 have unverified sources, possibly a co-author reposting; e.g. Chandan Singh (@csinva) posted it on X, date unverified.
  2. 10-26 first author Aaron J. Li posted a thread on X (x.com/aaron_jli/status/2114797313613053952; the README's top badge links to this tweet). It drove only a small bump (10-27 +5).
  3. 10-28 15:00 UTC, YouTube channel AI LABS posted a video, "Microsoft's New Tool Finally Fixed Claude's Usage Limits": channel 179k subscribers, video 56,766 views (YouTube Data API, 11-06). The title translated the paper into "Claude limits finally enough," which is exactly the pain point for Claude Max users. The next day 10-29 +181, the first clear spike.
  4. 10-29 X @LLMpsycho posted; 10-29 Farid Talks video (380 views).
  5. 10-30 17:53 UTC MarkTechPost published an article "Meet TokenEconomizer: Microsoft's Plugin That Cuts Coding Agent Costs by Up to 30.9%", and @Marktechpost reposted it on X (10-30 17:55 UTC).
  6. On 10-31 19:23 UTC, X @rryssf (Robert Youssef, AI thread account, 40.6K verified followers) posted a long thread with a video: "Your coding agent repeats its mistakes. Microsoft released TokenEconomizer…" This lines up with the peaks of +1,100 or more on 10-31 and 11-01 over those two days (Beijing time snapshots; 10-31's numbers include traffic from 10-30 MarkTechPost, 11-01's include rryssf's).
  7. Second wave of reposts (11-01 to 11-04): Reddit r/ClaudeCode thread "Microsoft TokenEconomizer - Promising 18.4–30.9% lower mean cost" (post data blocked by 403, so no numbers pulled), r/LovingAIAgents; HN 11-04 submission that only got 2 points and 1 comments, HN didn't pick it up; aggregator sites faun.dev, emergent.sh, aicentralresources, theailoadout; Instagram reels, YouTube Shorts (BANYAN LAB at 530 views, etc.), Threads posts in Chinese (@evanlin1007), LinkedIn, and Facebook vibecoding groups.

Takeaway: users mainly came from YouTube AI tutorial channels and AI news accounts on X, with MarkTechPost as an amplifier. HN and Reddit followed rather than started it. Our local x-radar corpus has no matching tweets (the corpus doesn't cover this), so the X evidence comes from web search.

3. Competitors: "cutting tokens for coding agents" is an already crowded lane

NameFormLaunchedScale (github repos, 11-06)How TokenEconomizer differs
JuliusBrussee/cavemanOpen-source skill + proxy2026-04118k stars, +1,677 per weekMakes output "caveman-style" to cut tokens; works within a single session and spreads through memes. TE learns repo experience across sessions and doesn't change output style.
rtk-ai/rtkOpen-source Rust CLI proxy2026-0186k starsCompresses command output, claiming 60–90% token savings; an HN commenter pointed out it "saves tokens, not necessarily the bill" (HN 49656471). TE is built around the cache-adjusted bill and also counts the cost of its own model calls.
thedotmack/claude-memOpen-source plugins2025-08113k stars, +8,925 per weekCross-session memory, pitched as "remembers your context" rather than saving money. TE only keeps a small set of facts that have been verified (confirmed across three consecutive sessions), plus tool pruning and loop control.
mksglu/context-modeOpen source2026-0234k starsPuts tool output in a sandbox and compresses context; also single-session compression.
cheaper-inference/OmniRouteOpen-source gateway2026-0285k starsRoutes to cheaper or free models to save money, which means switching models. TE doesn't switch models.
getagentseal/codeburn, tokscale, TokenTracker, etc.Open source2025-12 to 2026-042k to 12k starsOnly tracks usage and builds dashboards, doesn't intervene
Tarquinen/opencode-dynamic-context-pruningOpen source2025-114,471 starDynamic context pruning only for opencode.
alexgreensh/token-optimizer, drona23/claude-token-efficient, pxpipeOpen source20263k to 8k starsSingle-point tricks: editing CLAUDE.md, compressing output, rendering text as images.
Built into Claude Code / CodexBig-company featuresAlready thereAll usersBuilt-in context compaction, prompt caching, project memory files (CLAUDE.md / AGENTS.md), tool toggles. None of them does cross-session analysis, auto-removes unused tools, or detects loops.

(Star counts above come from our github repo_profile, 11-06.)

4. Differentiation

  • Cross-session, learns per repo: most tools compress within one session. TE treats the waste as repeatedly re-learning the same repo, so it gets more efficient the more you use it in the same codebase.
  • Priced on the real bill: cache-hit pricing is included, as is the plugin's own model spend. This directly answers the critique of tools like RTK where tokens drop but money doesn't.
  • Black box, reversible, doesn't touch credentials: no model switching, no changes to the agent. It works through the agent's own hooks and settings; if something breaks, you just uninstall, and what it learned lives only on your machine.
  • One plugin covers Claude Code, Codex, Copilot CLI, and Pi, with experimental support for opencode, Cursor, and Hermes.
  • Has a paper and reproducible experiments: across 277 SWE-Bench tasks and 5 agent/model combinations, cost drops 18.4–30.9%, with 30 cells all cheaper, and Pass@1 slightly up in 4/5 combinations.

Are these differences why it took off? Only partly. Nearly every headline used for distribution was "Microsoft + save 30% + fixes Claude limits"; nobody was talking about the cross-session learning mechanism itself. In the same space, caveman, rtk, and claude-mem already reached six-figure stars through memes or even more aggressive numbers (60–95%). TE gained 4,000+ in a week in a crowded lane mainly because of credibility: an official Microsoft org account, authors from Berkeley and MSR, and a conservative number backed by a paper, which looked trustworthy next to a pile of solo projects claiming 90% savings. The mechanism-level differentiation gave comment sections and YouTube reviews (e.g. "With One Catch", "Honest Review") something credible to discuss, but it wasn't the traffic source.

5. How visible it is

It's circulating in small circles, not yet widely discussed: MarkTechPost covered it; X @rryssf (about 40k verified followers) and @Marktechpost reposted; YouTube AI LABS video with 57k views; a Reddit r/ClaudeCode thread. It didn't reach the HN front page (2 points), and I didn't see mainstream tech media (The Verge, TechCrunch, etc.) cover it. No revenue question here, since it's free and open source.

6. Copycats

I didn't find any copycat repos created after 10-25 with names or descriptions close to it. So nobody is cloning it yet. External developers are currently sending PRs to the main repo to add new agent support, rather than starting separate repos.

7. What to learn from it

  • For an academic project to spread as open source, ship "paper + a plugin you can install directly + an animated demo + one conservative, reproducible number" together, and put the author tweet and paper badges at the top of the README.
  • Translate the technical metric into the user's pain point: "cache-aware cost down 18–31%" became "Claude limits finally enough" in a YouTube creator's mouth. That was the headline that actually drove traffic.
  • In a lane full of exaggerated claims, "priced on the real bill, includes its own overhead, has a benchmark" is the differentiator itself.
  • Working across several agents lets it catch forwards from Claude, Codex, and Copilot user groups at once.

8. Still unclear

  • Sources of the 10-22 and 10-23 stars from 100.
  • The score and posting time of the Reddit r/ClaudeCode thread (blocked by 403).
  • View and repost data for @rryssf's tweet.
  • Real-world savings: issues already report loop-guard false positives on normal turns and Windows compatibility problems; micro-skills are off by default, so savings under the default config may be lower than the paper suggests.
  • Retention after the initial spike: daily growth has already dropped to 66.

Sources

This article was written by AI from public data and the data we collect daily. Numbers are sourced, and inferences are labeled.