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 skills add dimetron/pi-go --skill verify-agent-lifecyclegit clone --depth 1 https://github.com/dimetron/pi-goWrote 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/skills/dimetron/pi-go/verify-agent-lifecycle)<a href="https://agentmods.dev/skills/dimetron/pi-go/verify-agent-lifecycle"><img src="https://agentmods.dev/badge/skills/dimetron/pi-go/verify-agent-lifecycle/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/dimetron/pi-go/verify-agent-lifecycle"><img src="https://agentmods.dev/badge/skills/dimetron/pi-go/verify-agent-lifecycle.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00100 | $0.01301 |
| Opus 5.5 | $0.00040 | $0.00520 |
| Sonnet 5.5 | $0.00020 | $0.00260 |
| Haiku 4.5 | $0.00010 | $0.00130 |
Grade A, and why
verify-agent-lifecycle 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 21d 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 — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Verify the subagent lifecycle
One subagent has six states, three writers, and a pool slot that must be released
exactly once. pool.Release is an unguarded channel receive
(internal/subagent/pool.go:36-38), so a second release panics the process, and
nothing in a single-agent test can produce the interleaving that does it.
The properties: a cancel is never overwritten by the process's own exit reason, an agent that leaves the list has already published its verdict, and exactly one pool slot is released per spawn.
Does my change touch the verified code
git diff --stat <sync-commit>..HEAD -- \
internal/subagent/orchestrator.go internal/subagent/pool.go internal/subagent/types.go
Model covers (each model step names the function it stands for):
| Model action | Code |
|---|---|
SlotAcquired |
Spawn past pool.Acquire, orchestrator.go:487-499 |
SpawnRefused |
trackAgent refuses after shutdown → abandonSpawn, orchestrator.go:499-505, 599-607 |
Event / ProcExits |
the event loop and proc.Wait, orchestrator.go:610-629 |
Cancel |
Cancel + validateAgentForCancel, orchestrator.go:806-834 |
ShutdownRunning / ShutdownIdle |
ShutdownWithTimeout, orchestrator.go:859-894 |
PublishKept / PublishEvicted |
forwardAgentEvents' tail: evict, publish, release, orchestrator.go:628-648, 683-711 |
Not modelled, and why: the worktree manager (its own stash lifecycle, modelled
separately if it becomes a target); spawner.go's event channel and its silent
drops when the 64-slot buffer fills; terminalStatus's signal classification
(the model takes the outcome as a parameter); recentTasks and the prune loop;
concurrency above one agent; Get/List as anything other than a read. A bug in
any of those is invisible here.
Run it
hack/formal/check.sh agent # all rules hold, or the first one that breaks
hack/formal/check.sh agent --chart
Cost: 35 distinct states, under a second. Exit 0 all rules hold, 1 a rule
broke, 2 TLC or the environment failed.
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.
- 21d ago First seen · 97 lines · 100 tokens per session scan A 15baf5004035
verify-agent-lifecycle is a skill published in the GitHub repository dimetron/pi-go (232 stars, last pushed today), licensed MIT. It adds 100 tokens to every session and 1,301 once invoked, about $0.0004 per session on Opus 5.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-11-09.
verify-agent-lifecycle compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| verify-agent-lifecycledimetron/pi-go | Skill | 232 | today | MIT | A | 100 | Claude Code, Codex |
| test-fixpatriceckhart/zot | Skill | 373 | yesterday | MIT | A | 17 | Claude Code |
| find-tracesaxiomhq/cli | Skill | 60 | 7d ago | MIT | A | 37 | Claude Code |
| troubleshoot-tervaterva-sh/terva | Skill | 5 | 2d ago | MIT | A | 83 | Claude Code, Codex |
| golang-lintalexastrum/skl | Skill | 11 | 6d ago | MIT | A | 100 | Claude Code |
| golang-troubleshootingalexastrum/skl | Skill | 11 | 6d ago | MIT | A | 130 | Claude Code |
| golang-samber-oopsalexastrum/skl | Skill | 11 | 6d ago | MIT | A | 74 | Claude Code |