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 agentmods add commands/omrikais/cctally/range-costgit clone --depth 1 https://github.com/omrikais/cctallyWrote 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/commands/omrikais/cctally/range-cost)<a href="https://agentmods.dev/commands/omrikais/cctally/range-cost"><img src="https://agentmods.dev/badge/commands/omrikais/cctally/range-cost.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.01002 |
| Opus 5 | $0.00000 | $0.00501 |
| Sonnet 5 | $0.00000 | $0.00200 |
| Haiku 4.5 | $0.00000 | $0.00100 |
Grade A, and why
range-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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
range-cost
Compute USD cost for an arbitrary absolute time range from Claude, Codex, or both providers' local session data.
Claude cost coverage: Claude dollar and token totals are transcript-derived lower bounds, not exact
/usagebilling totals. Codex accounting is unaffected.
Synopsis
cctally range-cost
-s START [-e END]
[-m {auto,calculate,display}]
[-p PROJECT] [-b]
[--source {claude,codex,all}] [--speed {auto,standard,fast}]
[--json] [--total-only]
Purpose
Ad-hoc cost question: "what did I spend between X and Y?". Useful for an absolute window that does not align to a calendar day, week, or month.
Options
| Flag | Description |
|---|---|
-s, --start START |
Start timestamp (ISO 8601, with timezone offset). Required. |
-e, --end END |
End timestamp (ISO 8601, default: now). |
-m, --mode {auto,calculate,display} |
Claude cost calculation mode. Default auto; non-default values are rejected for direct Codex requests. |
-p, --project PROJECT |
Filter to a source-native project. |
-b, --breakdown |
Show per-model usage and cost breakdown. |
--json |
Machine-readable JSON. |
--total-only |
Print numeric USD total only — useful for shell math. |
--source {claude,codex,all} |
Analytics provider; default claude. cctally claude range-cost and cctally codex range-cost are fixed-source forms and do not expose this flag. |
--speed {auto,standard,fast} |
Codex pricing tier; default auto. Applies to Codex/all and a non-default value is rejected for Claude-only. |
Examples
cctally range-cost -s "2026-04-10T10:00:00+03:00"
cctally range-cost \
-s "2026-04-10T10:00:00Z" -e "2026-04-12T10:00:00Z" --breakdown
cctally range-cost -s "2026-04-10T10:00:00Z" --json
cctally range-cost -s "2026-04-10T10:00:00Z" --total-only
cctally codex range-cost -s "2026-07-14T00:00:00Z" -e "2026-07-15T00:00:00Z" --breakdown
cctally range-cost --source all -s "2026-07-14T00:00:00Z" -e "2026-07-15T00:00:00Z" --total-only
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.
- 3d ago First seen · 77 lines · 0 tokens per session scan A e671eb8ce6b1
range-cost is a command published in the GitHub repository omrikais/cctally (5 stars, last pushed 4d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,002 tokens. 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 commands, from other repositories
dispatcher
Pick the next-best repo to work on across the portfolio — rank free repos, recommend one, claim its lease atomically, and route to the entry command.
merit-reconcile
Preview or check the status of Stripe → Merit payout reconciliation (read-only).
valuation-methods
Valuation methods analysis — multiples, DCF inputs, PEG integration, valuation assumption extraction.
scan
Scan AWS account for cost optimization.
audit-checklist
Perform an internal audit, review controls, or prepare for an external financial audit.
finops-status
Orientation — say where an opportunity or assignment sits in the five-step FinOps lifecycle and what unlocks next. Useful when a record has no active stage: an opportunity while its assignments do the work, an assignment whose plan has not been approved yet, or a rejected or archived assignment. Read-only; mutates…