Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
/plugin marketplace add peiris/token-costnpx agentmods add plugins/peiris/token-cost/marketplacegit clone --depth 1 https://github.com/peiris/token-costGrade A, and why
token-cost scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
{
"$schema": "https://anthropic.com/claude-code/marketplace.schema.json",
"name": "token-cost",
"description": "Claude Code plugin that tracks token usage and estimated cost per task and project",
"owner": {
"name": "Kasun Peiris",
"email": "[email protected]"
},
"plugins": [
{
"name": "token-cost",
"description": "Claude Code plugin that tracks token usage and estimated cost per task and project",
"source": "./"
}
]
}
What ships with it
1 file beside marketplace.json in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 17 lines scan A 95953186b8f4
token-cost is a plugin published in the GitHub repository peiris/token-cost (2 stars, last pushed 5d ago), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other plugins, from other repositories
token-optimizer
Plugin marketplace listing 3 plugins: token-optimizer, to-hook-probe, token-optimizer-cowork.
token-optimizer
Audit, fix, and monitor Claude Code context window usage. Find the ghost tokens.
to-hook-probe
token-saviour
Spend tokens where they matter: one benchmark-picked tool per token layer.
token-saviour
Route every coding task to the most token-efficient tool per layer: serena (code reads), rtk (command output), caveman (prose output), Ponytail (code output) — backed by a 9-tool benchmark.
runvouch
The watchdog for scheduled Claude Code agents: proof the run did the job, and an alert the moment it doesn't — missed runs, silent failures (green != done), retry storms, runaway cost, drift. Email/Telegram/Slack/webhook.