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.
npx skills add dshakes/compass --skill cost-sentinelgit clone --depth 1 https://github.com/dshakes/compassWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/dshakes/compass/cost-sentinel)<a href="https://agentmods.dev/skills/dshakes/compass/cost-sentinel"><img src="https://agentmods.dev/badge/skills/dshakes/compass/cost-sentinel/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/dshakes/compass/cost-sentinel"><img src="https://agentmods.dev/badge/skills/dshakes/compass/cost-sentinel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00084 | $0.00480 |
| Opus 5.5 | $0.00034 | $0.00192 |
| Sonnet 5.5 | $0.00017 | $0.00096 |
| Haiku 4.5 | $0.00008 | $0.00048 |
Grade A, and why
cost-sentinel 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 19d ago.
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
Cost sentinel — the spend watchdog
Provider caps that live only in a web console rot. This skill is the early-warning layer (see infra/cost-caps/README.md for the three layers). The flags are computed by a script, not by you (deterministic-gate principle).
Run
python3 "$(dirname "$0")/cost-sentinel.py" # or: python3 claude/skills/cost-sentinel/cost-sentinel.py
ANTHROPIC_ADMIN_KEYunset → printsskipped, exit 0. Never read or print the key.- Exit 0 = clean, 1 = flags fired, 2 = API error.
- Config via env:
COST_SENTINEL_MAX_USD_DAY(per-key 24h limit; unset = check off),COST_SENTINEL_MIN_CACHE_RATIO(default 0.5),COST_SENTINEL_ALLOWLIST(defaultstate/cost-sentinel-allowlist.txt, one key id per line,#comments). - Spend is an estimate: tokens ×
claude/hooks/lib/pricing.json. Check:cost-sentinel.py --self-test.
Summarize
Paste the script's report, then 2-3 lines: which key is the likely culprit and the first thing to
check (a loop left running, a missing cache_control, a leaked or forgotten key). Do not invent
numbers the report doesn't contain, and do not rotate or revoke keys — that is a human action.
Scheduling
/loop 7d /cost-sentinel or a compass schedule routine; pipe the summary through the notify hook.
What ships with it
1 file beside SKILL.md 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.
- 19d ago First seen · 35 lines · 84 tokens per session scan A d8ae31403aac
cost-sentinel is a skill published in the GitHub repository dshakes/compass (23 stars, last pushed 7d ago), licensed MIT. It adds 84 tokens to every session and 480 once invoked, about $0.0003 per session on Opus 5.5. 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-11-11.
cost-sentinel compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cost-sentineldshakes/compass | Skill | 23 | 7d ago | MIT | A | 84 | Claude Code |
| dcf-modelNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 14 | Claude Code, Codex |
| comps-analysisNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 13 | Claude Code, Codex |
| hyperliquidNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 16 | Claude Code, Codex |
| stocksNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 15 | Claude Code, Codex |
| polymarketNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 18 | Claude Code, Codex |
| sector-reviewTauricResearch/TradingAgents | Skill | 124k | 5d ago | Apache-2.0 | A | 0 | Claude Code, Codex |