尚未偵測到更新。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.