Repository navigation
Releases
v0.3.6 — OpenRouter app attribution
New OpenRouter workers inherit parent app URL and title while retaining their own header overrides. Only attribution fields are transferred, never authentication headers. Dynamic attribution is captured after parent response headers arrive; absent attribution is not invented. Existing workers retain their startup values.
Validation: 121 tests passed, one opt-in test skipped; TypeScript checks passed.
v0.3.5 — Worker thinking level
The /pworkers command now displays thinking= when available, including off. Unknown levels are omitted. Verified with 26 extension contract tests and TypeScript checks.
v0.3.4 — Per-model metrics
The metrics panel now shows a visible Per model table with provider, model, input/output/cache tokens, calls, compactions, and API-equivalent cost. The same filtered totals are included in JSON exports. Unknown attribution and missing usage remain explicit; unfinished calls do not contribute usage totals.
Validation: 16 focused tests passed; TypeScript checks passed.
v0.3.3 — Live wait progress
The wait_agent card now refreshes every second with elapsed wait time, worker status, and time since its last RPC event. These UI updates do not add messages to the main agent context. Update timers stop when the wait ends. Persistent worker execution is unchanged.
Validation: 114 tests passed, one opt-in test skipped; TypeScript checks passed.
v0.3.2 — Global metrics settings
Metrics tracking can now be saved globally for all projects:
/pmetrics global workers on
/pmetrics global main on
The dashboard also offers a project/global settings selector. Explicit project overrides retain precedence. Remove one with /pmetrics project workers inherit or /pmetrics project main inherit.
Changes apply immediately to the current session according to config precedence and to future sessions. Other already-running Pi sessions keep their settings. Saving an unchanged effective setting preserves in-flight measurements and worker PIDs.
Validation: focused settings, HTTP, adapter and extension tests passed, along with typecheck and installed-Pi smoke. No model calls were needed for this settings-only change.
v0.3.1 — Compaction usage, retry waits and cache ratios
Extends the existing metrics collector without new dependencies, tables, daemons or tracing infrastructure.
- Collect Pi-reported compaction usage and immutable cost snapshots for workers and optionally the main agent. Compactions remain separate operations, not invented single model calls.
- Measure observed worker retry backoff, preserve each assistant attempt's reported usage, and retain tasks until Pi fully settles.
- Compute cache-read ratios for reviewed Pi 0.85 OpenAI, Codex and Anthropic adapters. Unknown/custom providers, incomplete counters and legacy records remain N/A. Mixed daily aggregates disclose missing coverage.
- Show compactions, retry waits and cache ratios in the existing dashboard and exports.
Validation: 109 offline tests; installed-Pi smoke; browser verification; live two-Pi test with four worker calls and two real compactions. Collected token/cache totals matched actual session logs, same-PID reuse was preserved, and workers exited after cleanup. Independent review approved.
Boundaries: hidden SDK HTTP retries and main-agent retry backoff remain unobservable through these interfaces. Worker RPC compaction lacks extension provenance, so model/provider attribution stays unknown while usage and project/session/worker attribution are retained. No prompts, summaries, error text or tool arguments are persisted.
Update with pi update git:https://github.com/RobertKoval/pi-persistent-subagents, then open a fresh Pi session. Avoid /reload during active worker work: it terminates workers.
v0.3.0 — Local usage and capacity metrics
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
/pmetricsdashboard. - 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.
v0.2.2 — Versioned result delivery and model ID fixes
Completed runs now have stable result IDs. The extension retains unread snapshots while the manager is busy instead of queueing stale Pi follow-ups. Once idle, unannounced results produce one batched wake-up. Results already returned by wait_agent do not wake the manager again.
wait_agent includes additional_results when earlier unread completions would otherwise be overwritten by new work. Reading is delivery, not semantic acceptance; Frontier remains the sole orchestrator. The unread inbox is scoped to the live parent extension, while the latest result ID and worker transcripts survive close/resume.
Provider-owned model IDs are preserved, including OpenRouter @preset IDs and vendor namespaces. Exact catalog matches take precedence over interpreting slash prefixes; no fallback model is selected.
Validation: 68 offline tests, typecheck, installed-Pi smoke, Linux/macOS CI and package installation. Live tests verify both automatic idle wake-up and no extra manager run after wait_agent consumes the result. Independent review passed.
v0.2.1 — Automatic manager continuation
Short completion notifications now resume the manager automatically. An idle manager starts a new turn; a busy manager receives a queued follow-up instead of steering. Notifications still contain no worker output or usage, and TOON tool responses remain compact.
A live acceptance test verifies the manager ends its initial turn before the worker completes, then fetches the worker result without any additional user prompt. Worker process cleanup is verified afterward. Disable notifyOnSettled to opt out of automatic continuation.
v0.2.0 — Compact TOON tool results
Model-visible tool results now use compact TOON instead of JSON. Pi RPC remains JSONL, tool inputs are unchanged, and structured result details remain available to integrations.
- send_input returns ID, status and PID, plus any error.
- list_agents returns a compact roster without worker output.
- wait_agent returns selected results without diagnostic metadata.
- verbose:true on list/wait exposes full diagnostic snapshots when needed.
The runtime uses the official @toon-format/toon encoder. Regression tests cover multiline/quoted text, errors, timeouts and on-demand diagnostics. Offline checks and installed-Pi smoke pass. The new-format live manager retest was quota-blocked and is not claimed as passed.