正在自动登录…
microsoft/ TokenEconomizer
TokenEconomizer 是一个面向编码代理(如 Claude Code、Codex 等)的插件,通过从历史会话中学习,利用微技能、工具裁剪和失败循环干预等机制,在不修改代理本身的前提下降低其运行成本。
AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/30 20:01:52 · 查看原文
- 累计 Stars
- 2,052
- 当前热度
- 7~30 天 · 小火
- 仓库创建时间
选用指南
AI 根据 README 整理 · 2026/10/30 20:01:52
- 使用方式
通过各代理的插件系统安装使用,如 Claude Code 使用 `claude plugin marketplace add` 等命令;日常使用无需额外操作,通过特定命令查看和调整设置。
查看 README 依据
Copilot CLI and opencode run the plugin from the clone, so leave it in place. Then start the agent in one of your repositories. **Claude Code** ```sh git clone https://github.com/microsoft/TokenEconomizer.git claude plugin marketplace add "$PWD/TokenEconomizer" claude plugin install tokeneconomizer@tokeneconomizer ``` Start `claude`, trust the folder (**Yes, I trust this folder**), and run `/tokeneconomizer:status`, allowing its script if asked. Once per machine, and again after Claude Code updates, run `/tokeneconomizer:toolprune refresh-catalog`. **Codex** ```sh
full path; `git pull` in the clone updates it. - **opencode** support is experimental: it was tested on 1.19.5 and 2.2.0 only, and not in the 2.x terminal UI. ### Everyday commands Work as usual; the plugin needs nothing from you. To see or change what it does, use its commands. They have the same names on every agent; only the way you type them differs: | Agent | Type a command as | |---|---| | Claude Code, Copilot CLI | `/tokeneconomizer:<command>` | | Codex | `$tokeneconomizer:<command>` | | Pi | `/te <command>` |
- 部署要求
需要 Python 3.10 或更高版本,且 PATH 中需包含;支持多个编码代理(如 Claude Code、Codex 等)及其特定版本范围。
查看 README 依据
- **Keep every action reversible.** A fact that later sessions contradict is dropped, removed tools can be given back, and the loop guard only redirects and tells you: stopping a turn is your call. ## Quick start You need one of these agents, signed in any way it supports, and Python 3.10 or newer on `PATH`. The plugin needs no API key of its own and never handles credentials, so any plan or login works. ### Install Run these commands in the folder where you want to keep the clone. Claude Code, Codex, the
as `./TokenEconomizer` as the name of a GitHub repository. To update: | Agent | Update | |---|---| | Claude Code, Copilot CLI, opencode | `git pull` in the clone | | Codex | `git pull` in the clone, then the `codex plugin add` line again | | Pi | `pi update --extensions` | **[`plugin/README.md`](plugin/README.md)** walks through each agent in more detail, including uninstalling, using Copilot with your own model key, and troubleshooting. ### Supported versions | Agent | Supported | Older versions | |---|---|---| | Claude Code | 2.1.300 to 2.1.310 | not supported |
- 已知限制
工具裁剪对 Pi 或 opencode 无效(Pi 仅加载四个工具,opencode 暂无支持);opencode 支持为实验性,仅测试了特定版本。
查看 README 依据
| Copilot CLI | whole MCP servers | `.github/copilot/settings.local.json` | | Pi | nothing (Pi loads only four tools) | — | | opencode | nothing yet | — | Tool pruning adds only its own entries and never touches deny rules you wrote; a settings file it creates is kept out of git (`.git/info/exclude`). On Claude Code, the session-start line that says what it left out shows only in the detailed transcript (**Ctrl+O**), so check with `/tokeneconomizer:toolprune`. `toolprune restore` removes the plugin's entries and nothing else,
full path; `git pull` in the clone updates it. - **opencode** support is experimental: it was tested on 1.19.5 and 2.2.0 only, and not in the 2.x terminal UI. ### Everyday commands Work as usual; the plugin needs nothing from you. To see or change what it does, use its commands. They have the same names on every agent; only the way you type them differs: | Agent | Type a command as | |---|---| | Claude Code, Copilot CLI | `/tokeneconomizer:<command>` | | Codex | `$tokeneconomizer:<command>` | | Pi | `/te <command>` |
README
正在加载 README…
收录信息
- 仓库创建时间
- 2026/10/13 12:16:50
- 首次达标收录
- 2026/10/30 19:56:33
- 统计更新时间
- 2026/10/31 09:50:33
按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。
模型评估
值得看加权总分 4.3 / 5
由 Jev 模型根据仓库描述与 README 评估,2026/10/30 19:56:33 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。
仓库信息
- 最近推送
- 2026/10/31 08:09:32
- 许可证标识
- Apache-2.0
- Fork 数
- 119
- 当前状态
- 未归档
收录记录
按创建时长与累计 Stars 首次收录:小火
首次发现项目