
TokenEconomizer:過去の経験から学び、AIコーディングエージェントを効率化するTokenEconomizer: Learning from Experience to Make AI Coding Agents More Efficient
TokenEconomizerはオープンソースのプラグインで、リポジトリ内の過去セッションを学習し、無駄なやり直しを減らす。277件の実バグ修正で費用を18.4〜30.9%削減し、成功率も概ね維持した。
TokenEconomizer is an open-source plugin that mines past sessions in a repository to trim wasted effort, cutting costs 18.4–30.9% over 277 bug-fix tasks while keeping success rates steady. Teams running coding agents benefit.
AI 生成の要約と解説(解説は要約と収集メタデータに基づく)で、元記事全文の転載・翻訳ではありません。日本語版と英語版は言語ごとに独立して生成しています。正確性は元記事 (microsoft.com) でご確認ください。AI-generated summary and explainer (the latter based on the summaries and collected metadata), not a copy or translation of the full source article. Generated independently for each language. Verify accuracy at the original source (microsoft.com).
毎回ゼロから始まる作業
TokenEconomizerは、AIコーディングエージェントが同じリポジトリでの過去のセッションから学び、将来のセッションでの無駄を減らすオープンソースのプラグインです。277件の実際のバグ修正タスクで、費用を18.4〜30.9%削減したと報告されています。
開発者は同じコードベースで毎日のようにAIコーディングエージェントを使いますが、エージェントはセッションのたびにゼロから始まることが多いとされます。すでに分かっているはずの事実を再び調べ直し、使わないツールを読み込み、うまくいかなかった方法を繰り返す、といった無駄が生じます。
トークン消費の仕組み
AIコーディングエージェントは、バグ修正や機能開発を多くの場面で自力で進めるようになっています。ただし、モデルとのやり取りのたびにトークンが消費されます。各セッションでは、エージェントが指示、ツールの説明、セッション履歴をモデルに送ります。
過去の経験を使う方法
TokenEconomizerは、リポジトリ内でのエージェントの過去セッションを手がかりに学習します。その結果を将来のセッションに生かして無駄を減らす仕組みで、エージェント自体も、その基盤となるモデルも変更しません。
277件での検証結果
複数のAIコーディングエージェントを対象にした277件の実際のバグ修正タスクで、費用は18.4〜30.9%低下しました。費用の低下はテストしたすべてのリポジトリで見られ、タスクの成功率も概ね安定していたとされます。
削減が一部のリポジトリに偏らず、テストした範囲では一貫して現れた点が特徴です。
TokenEconomizer is an open-source plugin aimed at a common inefficiency in AI coding agents: they repeat work they have already done. Because every interaction with an agent's model consumes tokens, wasted effort translates directly into cost.
Starting each session from scratch
Developers tend to use AI coding agents in the same codebases day after day. According to the source, agents often begin each session from scratch anyway. They rediscover familiar facts, load tools they never use, and repeat approaches that have already failed.
The source notes that agents are increasingly helping developers fix bugs and build features largely on their own. In each session, an agent sends instructions, tool descriptions, and session history to its model. Each of those exchanges uses tokens, which is where the repeated effort adds up.
Learning from past sessions
TokenEconomizer learns from an agent's past sessions in a given repository and uses what it finds to reduce waste in future sessions. The plugin works without modifying the agent or its underlying model. The announcement frames the goal as trimming wasted effort rather than changing how the agent itself operates.
Results across 277 tasks
The reported evaluation covered 277 real bug-fixing tasks. Across multiple AI coding agents, TokenEconomizer reduced costs by 18.4 to 30.9 percent. According to the source, costs fell in every repository tested, and task success rates remained broadly stable. That means the savings were not reported as coming at the expense of agents completing their tasks.
What this means for teams
The source positions the plugin for developers and teams who run coding agents repeatedly in the same repositories. The reported figures come from the bug-fixing tasks described above, so they should be read as results for that evaluation rather than guarantees for every workload.
ポコとTECHガイドPoko & TECH Guide
ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.
- ポコPoko同じコードベースでAIエージェントを毎日使うとき、これで何が変わるの?If I use an AI coding agent in the same codebase every day, what actually changes with this?
- TECHガイドTECH Guide過去のセッションから学んで、毎回ゼロから始める無駄を減らします。知っている事実の再発見や、使わないツールの読み込み、失敗した方法の繰り返しが減るんです。It learns from past sessions in that repository, so it wastes less effort. Fewer rediscovered facts, fewer unused tools loaded, and fewer repeats of approaches that already failed.
- ポコPoko前は毎回ゼロからだったの?エージェントやモデルを作り直す必要もある?So before, it started from scratch every time? Do you have to rebuild the agent or the model?
- TECHガイドTECH Guide記事だと、エージェントは各セッションを白紙から始めがちだそうです。TokenEconomizerはプラグインで、エージェントもモデルも改変しないと書かれています。The article says agents often start each session fresh. TokenEconomizer is a plugin, and it works without modifying the agent or its underlying model.
- ポコPoko277件の実際のバグ修正で、費用が18.4〜30.9%減って、成功率も概ね変わらなかったんだね。これが一番の収穫かな?Over 277 real bug fixes, costs dropped 18.4–30.9% and success rates stayed about the same. Is that the big takeaway?
- TECHガイドTECH Guideそうですね。試したどのリポジトリでも費用が下がった点も大事です。ただ、成功率は「概ね安定」という表現なので、そこは丁寧に見たいですね。Yes. Costs fell in every repository tested, which matters. But success rates were only described as broadly stable, so that detail deserves a closer look.
匿名の公開いいねです。記事の保存・お気に入りではなく、Featured、Top 3、重要度、掲載順位には影響しません。仕組みとプライバシーAnonymous public likes are reactions, not saved articles or bookmarks. They do not affect Featured, Top 3, importance, or listing order.How it works and privacy


