Armstat
Tokenmaxxing Gateway for Claude Code
npx -y skills add zapgun-ai/clawback --skill armstatAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Fast, read-only per-arm turn-log summary — billable turn count, httpStatus tally (catches rate-limiting / non-200s mid-run), cache_read/creation sums with the ephemeral 5m-vs-1h split (a direct knob-sanity check: A2/A3/A5 should show ephemeral_1h > 0, A0/A1/A4 should not), token-weighted hit rate, and thinkingBudget. Unlike the heavyweight `bench` analyzer it does no bootstrap/CI/pricing, so it is cheap to run at each arm boundary WHILE a suite is still in flight. Safe on a live, actively-appended NDJSON file (a partial trailing line is skipped). Use it to spot-check a just-finished arm before the next one starts.
SKILL.md
2.6 KB, as published. Nobody here has run it
clawback per-arm turn-log stats
Run from the project root against one or more turn-log NDJSON files:
node benchmark/bin/arm_stat.js runs/<run>/turns.A0.ndjson
node benchmark/bin/arm_stat.js runs/<run>/turns.*.ndjson # whole suite so far
Read-only — it only reads files already on disk, never the running proxy, so it is safe to run while a benchmark arm is still driving.
What it reports, per file
turns— billable client turns (+ keep-alivetreatment-pingrecords, counted separately and excluded from the billable tally), and any partial trailing line skipped on a live file.httpStatus— status tally with a ✓ when all are 200, or a ⚠️ flag the moment any non-200 appears (early rate-limit / error detection mid-run).ttlMode—5m/1htally (passthrough arms stay5m).cache_read/cache_create— token sums, plus the per-turn first→last cache_read (warm-cache build-up), and the ephemeral 5m-vs-1h split. The split is a direct knob check: the 1h-TTL arms (A2/A3/A5) should showephemeral_1h > 0; A0/A1/A4 should not.hit rate— token-weightedcache_read / (cache_read + cache_create + input). A quick diagnostic only; the defensible headline is billable input reclaimed per turn with a CI, which thebenchanalyzer computes.thinkingBudget— distinct budgets seen and how many turns carried one (Haiku emits ~31999 regardless of--effort).
When to use
- At each arm boundary of an in-flight suite, to confirm the just-finished arm produced turns, hit no rate-limit (all 200), warmed its cache, and applied the knob it was supposed to (5m vs 1h).
- NOT a substitute for
bench: no CIs, no gap-bucket stratification, no pricing. Runbenchfor the committed study report.
Sensitivity
Turn-logs carry per-turn token usage (not prompt content). Treat the run directory as sensitive; this tool prints only counts and token sums.