npm.io
0.1.0 • Published 14h agoCLI

@jununfly/zj-loop-cost

Licence
MIT
Version
0.1.0
Deps
2
Size
20 kB
Vulns
0
Weekly
0

zj-loop-cost

Estimate daily token spend for agentic loop working patterns by cadence and readiness level (L1–L3).

Uses cost metadata from patterns/registry.yaml.

Install & Run

npx @jununfly/zj-loop-cost --pattern ci-sweeper --cadence 15m --level L2
npx @jununfly/zj-loop-cost --pattern daily-triage --level L1 --json
npx @jununfly/zj-loop-cost --list

From this repo:

cd tools/zj-loop-cost
npm install
npm test

Options

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 zj-loop-init) and zj-loop-audit cost observability checks.

See docs/operating-loops.md.

Keywords