TokenEconomizer 仓库状态管理
repos
列出 TokenEconomizer 记录状态的所有仓库(每个仓库如何被识别、其智能体与会话、见过的检出版本),或将一个仓库的状态合并到另一个仓库。当用户询问 TokenEconomizer 跟踪了哪些仓库、为何状态看起来分散或缺失,或要求合并、迁移状态时使用。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-13
- Stars
- ★ 6.1k
- Forks
- 388
01 前言 Front Matter
- name
- repos
- description
- List every repository TokenEconomizer keeps state for (how each was identified, its agents and sessions, the checkouts seen), or merge one repository's state into another. Use when the user asks which repositories TokenEconomizer tracks, why state looks split or missing, or asks to merge or migrate it.
03 SKILL.md 正文
TokenEconomizer: repos
Run this command in the repository's root directory:
"${TOKENECONOMIZER_HOME:-$HOME/.tokeneconomizer}/bin/te" --host codex --cwd "$(pwd)" repos ARGS
Use list as ARGS unless the user asked to migrate, or to merge KEY [INTO] (keys as the list shows them; INTO defaults to this repository). Never run migrate or merge unless the user asked for it. Show the output verbatim in a code block.
migrate and merge move state between repositories; that writes TokenEconomizer's own state under ~/.tokeneconomizer, outside the workspace, which the sandbox keeps read-only: run that command with sandbox_permissions set to "require_escalated" and a one-line justification, so that Codex asks the user to approve it. list reads only and needs no approval.
The command reads and writes only TokenEconomizer's own state (under ~/.tokeneconomizer);
it makes no model call, and a merge keeps the old state directory under
~/.tokeneconomizer/merged/. If it reports that the launcher does not exist, the plugin has
not run in a session yet: ask the user to start a new Codex session in this repository first.
04 同仓库更多 Skills
Codex 工具裁剪与配置
toolprune
审查、撤销或应用 TokenEconomizer 针对本仓库从未使用的 Codex 能力所生成的拒绝列表(写入项目的 .codex/config.toml)。当用户询问 TokenEconomizer 的工具裁剪或拒绝列表,或要求恢复/应用该列表时使用。
TokenEconomizer 运行状态查询
status
展示 TokenEconomizer 针对当前仓库所学到的内容、已执行的操作,以及本仓库各会话的成本。当用户询问 TokenEconomizer、其运行状态、节省情况或开销,或它在此处学到了什么时使用。
TokenEconomizer 微技能查看
microskills
显示 TokenEconomizer 已学习并在本仓库每次会话开始时注入的仓库事实(微技能/micro-skills),以及仍在形成中的事实。当用户询问 TokenEconomizer 学到了什么、注入了什么,或询问其事实或微技能时使用。
TokenEconomizer 配置
config
查看或修改 TokenEconomizer 的设置:开启或关闭微技能(micro-skills)、工具裁剪(tool pruning)或循环防护(loop guard),或对其进行调整;可仅对当前仓库生效,也可使用 --global 对全部仓库生效。当用户要求配置、启用或停用 TokenEconomizer 或其某项机制时使用。