Skip to content

v0.3.0 — Local usage and capacity metrics

Choose a tag to compare

@RobertKoval RobertKoval released this 10 Sep 12:34

Local usage and capacity reports for persistent Pi workers, with optional main-agent tracking.

  • Shared SQLite across Pi sessions; independent worker/main tracking switches and /pmetrics dashboard.
  • Per-project/day token and cache usage, observed stream throughput, task/tool/wait timing, time-weighted concurrency, and capacity indicators.
  • Immutable per-call API-equivalent cost snapshots; JSON and CSV exports.
  • Metrics-only storage: no prompts, responses, tool arguments, environment values or paths. Local token-protected dashboard.

Validation: 89 offline tests passed; installed-Pi smoke passed. A live two-Pi test verified four worker calls, same-PID reuse, exact token/cache agreement with session logs, overlapping calls and worker cleanup. Browser controls and exports were checked.

Observed throughput is not server decode TPS. Compaction/internal provider calls can fall outside event coverage; cache-hit ratios remain N/A until provider semantics are certified. See docs/metrics.md for formulas and limitations.

Update with pi update git:https://github.com/RobertKoval/pi-persistent-subagents, then start a fresh Pi session. /reload terminates existing workers, so update at a safe stopping point.