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 spences10/my-pi --skill review-session-tracegit clone --depth 1 https://github.com/spences10/my-piWrote 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/spences10/my-pi/review-session-trace)<a href="https://agentmods.dev/skills/spences10/my-pi/review-session-trace"><img src="https://agentmods.dev/badge/skills/spences10/my-pi/review-session-trace/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/spences10/my-pi/review-session-trace"><img src="https://agentmods.dev/badge/skills/spences10/my-pi/review-session-trace.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.00042 | $0.00647 |
| Opus 5.5 | $0.00017 | $0.00259 |
| Sonnet 5.5 | $0.00008 | $0.00129 |
| Haiku 4.5 | $0.00004 | $0.00065 |
Grade A, and why
review-session-trace 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 19d 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.
What it actually says
Review a Session Trace
Review what the agent actually did, not its final summary. This is read-only: do not edit files or rerun the task.
- Locate the evidence for the requested task: session path, start and
end entry IDs, and task identity. Reuse the path returned by
telemetry when available. Otherwise use supplied session metadata
or ask the user for the path shown by
/session; an agent cannot invoke that slash command through Bash. Do not guess by choosing the newest file. Respect configured session directories and note when an ephemeral session has no saved trace. For harness work, also readharness.json,status.json,logs/andOUTCOME.md. - Pi session entries form a tree. Identify the task's start and end
entries, follow
parentIdbackwards from the end to the start, then read that path chronologically. Include tool calls, nested call records, tool results, errors, retries and user corrections. Do not treat JSONL file order as one conversation or include other tasks merely because they share the file. Review relevant abandoned attempts separately, naming their branch and entry IDs rather than merging them into the selected branch. - Separate three outcomes: the task succeeded, validation passed, or the result is unknown. A finished conversation or a passed check does not prove the task succeeded.
- Look for hidden failures and wasted work: failed tool calls the agent worked around, repeated exploration, stale or wrong instructions, and checks that did not cover the task.
- If a
telemetrytool and a task identity are available, query bycwd,eval_suiteandeval_case_id. Match this recording using its run ID and session path, not just the newest result. Compare only records with non-nullended_atand duration; anactive_run_id,stop_pendingflag or unfinished record is not a completed baseline. A normal recording stop can leavesuccessunknown: use the harness evidence to assess task success. Verify comparable instructions, scope and models before claiming an improvement. Same-project activity alone is not comparable. If identity, closed recordings or sufficient evidence are missing, skip the metric comparison and state the gap; still review the trace. Do not change recording state during this read-only review. - Propose focused improvements to instructions, skills or tooling for the next run. If the evidence does not support a change, say so.
Report as Markdown. Cite session entry IDs or artifact paths for each finding. Do not apply the proposed improvements; the user decides which to take.
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.
- 19d ago First seen · 54 lines · 42 tokens per session scan A e9abc9acb137
review-session-trace is a skill published in the GitHub repository spences10/my-pi (141 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 647 once invoked, about $0.0002 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-11.
review-session-trace compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| review-session-tracespences10/my-pi | Skill | 141 | today | MIT | A | 42 | Claude Code, Codex |
| buncode-yeongyu/senpi | Skill | 530 | today | MIT | A | 237 | Claude Code, Codex |
| tool-prompt-optimizationcan1357/oh-my-pi | Skill | 40k | today | MIT | A | 0 | Claude Code, Codex |
| semantic-compressioncan1357/oh-my-pi | Skill | 40k | today | MIT | A | 77 | Claude Code, Codex |
| gpt-image-gencode-yeongyu/senpi | Skill | 530 | today | MIT | A | 66 | Claude Code, Codex |
| tmux-manual-qacode-yeongyu/senpi | Skill | 530 | today | MIT | A | 66 | Claude Code, Codex |
| cavemandmae97/omk | Skill | 154 | today | MIT | A | 248 | Claude Code |