Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/disler/pi-agent-observability/primegit clone --depth 1 https://github.com/disler/pi-agent-observabilityWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/disler/pi-agent-observability/prime)<a href="https://agentmods.dev/commands/disler/pi-agent-observability/prime"><img src="https://agentmods.dev/badge/commands/disler/pi-agent-observability/prime.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00021 | $0.00992 |
| Opus 5 | $0.00010 | $0.00496 |
| Sonnet 5 | $0.00004 | $0.00198 |
| Haiku 4.5 | $0.00002 | $0.00099 |
Grade A, and why
prime scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 20 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Purpose
Build foundational understanding of two cooperating projects in one tree: a Pi coding-agent observability framework (extension → Bun HTTP+SSE+SQLite server → vanilla-JS UI with Form/Function modes, agent subnav, swimlane), and apps/steelman — a Bun + Vue product app that embeds a Pi agent in --mode rpc with two extensions and renders chat-linked investment-analysis artifacts.
Workflow
- Run
git ls-files 2>/dev/null || find . -type f -not -path '*/node_modules/*' -not -path '*/dist/*' -not -path '*/.playwright-cli/*' -not -path '*/storage/runs/*' -not -path '*/.sessions/*' -not -path '*/backups/*' -not -path '*/ai_docs/*' -not -path '*/images/*' -not -name 'obs*.db*' -not -name '*.log' | sortusing the Bash tool to see the file tree - Read
README.mdanddocs/V3-STATUS.mdusing the Read tool (top-level architecture, quick-start, shipped v3 state, validation posture, build credits) - Read
justfileusing the Read tool (canonical service-boot orchestration grouped OBSERVABILITY / STEELMAN / AGENTS / EXTRA:obs,all(optionalwatcharg →bun --watch),steelman-server,steelman-server-watch,steelman-web,agent,validate-steelman,build-steelman-web— recipes useexec envso SIGTERM cleanup hits real PIDs) - Read
shared/types.tsusing the Read tool (canonical observability wire format —ObsEventenvelope + 16 event types incl.compaction/branch_nav;AssistantMessagePayloadcarrieslatency_ms/prefill_ms/generation_ms/output_tps/usage.{input,output,cache_read,cache_write,total_tokens,cost_total}) - Read
extension/pi-observability.ts,apps/observability/server.ts, andapps/observability/db.tsusing the Read tool (Pi event subscriptions incl.message_updatefor TTFT, ingestion, SQLite persistence, REST/sessions/:id/{events,stats}+ SSE/events/stream) - Read
apps/observability/public/index.html,apps/observability/public/app.js, andapps/observability/public/swimlane.jsusing the Read tool (vanilla-JS UI —body.layout-formvslayout-functionmode CSS lives in index.html, including the Form-mode pill-emoji map; app.js ownsSTATE, single-mode rendering, agent subnav with cost/tokens/cache/TPS/prefill/context; swimlane.js owns multi-lane rendering with sticky-to-bottom MutationObserver + 250ms re-anchor interval) - Read
apps/steelman/README.md, then skimapps/steelman/extension/steelman-product.ts,apps/steelman/extension/STEELMAN_AGENT_SYSTEM_PROMPT.md,apps/steelman/server/src/server.ts,apps/steelman/web/src/App.vue, andapps/steelman/web/src/markdown.tsusing the Read tool (product demo: Pi RPC defaulting togemini-3.5-flashwith both observability + product extensions; the agent's behavior contract lives in the externalizedSTEELMAN_AGENT_SYSTEM_PROMPT.md— loaded at runtime — covering aggressive inline citations and 8steelman_emit_artifactkindstext/table/bar-chart/pie-chart/trend/scorecard/risk-map/htmlwith dark-theme rules forhtml;steelman_researchcaptures source URLs that render as a collapsed per-response "References" proof; Vue two-pane UI renders markdown chat with clickable@refs(viamarkdown.tsmarked extension) and the artifacts pane;STEELMAN_OBS_VIEWdeep-link control) - Read
scripts/validate-swimlane.tsandapps/steelman/scripts/validate-steelman.tsusing the Read tool (T1–T4 SSE resync + DOM stress + URL state regression suite, and Steelman mock-mode end-to-end validation) - Summarize your understanding of the project: purpose, stack, structure, key files, entry points (via
just …), validation commands, and how the observability framework and Steelman product app work together through coordinated extension loading
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 20 lines · 21 tokens per session scan A 1d575e90847c
prime is a command published in the GitHub repository disler/pi-agent-observability (143 stars, last pushed 3mo ago), licensed MIT. It adds 21 tokens to every session and 992 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
git
Git operations with intelligent commit messages and workflow optimization.
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.