尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Claude Code plugin: warns about long, expensive chats and shows token usage per model after every answer.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Spend fewer tokens in Claude Code. Economy Tokens warns you when a conversation gets too long (and expensive), and shows how many tokens each model used after every answer.
Built by FabioLima77. Português: see README.pt-BR.md.
Claude reads the whole conversation again on every answer. A chat with 300,000 tokens costs far more per message than a fresh one. Economy Tokens makes that cost visible and nudges you to start fresh at the right moment.
| Part | When | What it does |
|---|---|---|
| Model line | Start of each answer | Opens every reply with a line naming the model that is answering, for example [Haiku 5.5 · principal], so you always know which model you are paying for. |
| Long-conversation warning | Before each prompt | Warns and asks Claude to suggest a new conversation with a summary, once the chat passes your limit. |
| Token footer | After each answer | Shows tokens per model: main model, subagents and advisor. |
economy-tokens skill | When you ask about saving tokens | Explains the habits that keep costs low. |
Everything runs on your computer. Nothing is sent anywhere.
After this repository is public, run these two commands in a terminal, one at a time:
claude plugin marketplace add FabioLima77/economy-tokens-claude-code
claude plugin install economy-tokens@economy-tokens-marketplace
To install from a folder on your computer instead:
claude plugin marketplace add "C:\path\to\economy-tokens-claude-code"
Then start a new conversation so the hooks load.
| Variable | Default | Meaning |
|---|---|---|
ECONOMY_TOKENS_LIMIT | 300000 | Tokens read per answer before the long-conversation warning appears. |
Set it in the env block of ~/.claude/settings.json, for example "ECONOMY_TOKENS_LIMIT": "170000". |
To choose which model runs the main chat, the subagents and the advisor, see docs/model-setup.md.
Pause it:
claude plugin disable economy-tokens@economy-tokens-marketplace
Turn it back on:
claude plugin enable economy-tokens@economy-tokens-marketplace
Remove it:
claude plugin uninstall economy-tokens@economy-tokens-marketplace
/clear) and paste the summary.economy-tokens-claude-code/
├── .claude-plugin/
│ ├── plugin.json # plugin identity
│ └── marketplace.json # lets you install with "claude plugin marketplace add"
├── hooks/
│ ├── hooks.json # connects the two hooks to the right moments
│ ├── warn-long-conversation.js
│ └── token-footer.js
├── skills/
│ └── economy-tokens/SKILL.md # habits to save tokens
└── docs/
├── model-setup.md
└── index.html # presentation page
If this saves you money, you can support the project with a donation on GitHub Sponsors. Thank you!
MIT. See LICENSE.