@cobusgreyling/loop-cost
v1.0.2
Published
Estimate token budgets and daily costs for loop engineering patterns. By cadence, readiness level (L1/L2/L3), and coding agent tool.
Downloads
333
Maintainers
Readme
loop-cost
Estimate daily token spend for loop engineering patterns by cadence and readiness level (L1–L3).
Uses cost metadata from patterns/registry.yaml.
Install & Run
npx @cobusgreyling/loop-cost --pattern ci-sweeper --cadence 15m --level L2
npx @cobusgreyling/loop-cost --pattern daily-triage --level L1 --json
npx @cobusgreyling/loop-cost --listFrom this repo:
cd tools/loop-cost
npm install
npm testOptions
| Flag | Description |
|------|-------------|
| --pattern | Pattern id (see --list) |
| --cadence | Override cadence (e.g. 15m, 1d) |
| --level | L1, L2, or L3 (default L1) |
| --conservative | Use slower cadence from ranges |
| --json | Machine-readable output |
Scenarios
Each estimate includes:
- Early-exit / no-op — empty watchlist, minimal tokens
- Full triage — every run does a full scan
- Action every run — implementer + verifier every time (worst case)
- Realistic blend — level-based mix (documented in output)
Pair with loop-budget.md (scaffolded by loop-init) and loop-audit cost observability checks.
