review-session-trace

review-session-trace is a skill for Claude Code, Codex from spences10/my-pi. It costs 42 tokens per session (647 once invoked), scanned A, original, MIT.

A read-only procedure for examining an agent's saved session trace, meaning the record of its actions, tool calls, errors, and corrections. It follows the actual task path rather than relying only on the agent's final summary.

In plain words
What is it for?
Use it for post-task retrospectives of agent work, including tasks run through a harness and their related logs and outcome files.
Why use it?
It helps reveal hidden failures, wasted effort, retries, and mistaken conclusions after work is complete. It avoids changing files or rerunning the task during the review.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for post-task retrospectives of agent work, including tasks run through a harness and their related logs and outcome files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/spences10/my-pi/review-session-trace
Install

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.

Any agent
npx skills add spences10/my-pi --skill review-session-trace
Clone the repo
git clone --depth 1 https://github.com/spences10/my-pi

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for review-session-trace

README.md
[![agentmods](https://agentmods.dev/badge/skills/spences10/my-pi/review-session-trace/github.svg)](https://agentmods.dev/skills/spences10/my-pi/review-session-trace)
Your own site
<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.

agentmods 80×15 button for review-session-trace

Your own site · 80×15
<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>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 647 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 19d ago against content hash e9abc9acb137, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

packages/pi-harness/skills/review-session-trace/SKILL.md · 54 lines

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.

  1. 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 read harness.json, status.json, logs/ and OUTCOME.md.
  2. Pi session entries form a tree. Identify the task's start and end entries, follow parentId backwards 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.
  3. 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.
  4. 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.
  5. If a telemetry tool and a task identity are available, query by cwd, eval_suite and eval_case_id. Match this recording using its run ID and session path, not just the newest result. Compare only records with non-null ended_at and duration; an active_run_id, stop_pending flag or unfinished record is not a completed baseline. A normal recording stop can leave success unknown: 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.
  6. 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.

Changes

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.

  1. 19d ago First seen · 54 lines · 42 tokens per session scan A e9abc9acb137

Subscribe to this mod's changes

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.

Related

review-session-trace compared with skills from other repositories

review-session-trace next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
review-session-tracespences10/my-piSkill141todayMITA42Claude Code, Codex
buncode-yeongyu/senpiSkill530todayMITA237Claude Code, Codex
tool-prompt-optimizationcan1357/oh-my-piSkill40ktodayMITA0Claude Code, Codex
semantic-compressioncan1357/oh-my-piSkill40ktodayMITA77Claude Code, Codex
gpt-image-gencode-yeongyu/senpiSkill530todayMITA66Claude Code, Codex
tmux-manual-qacode-yeongyu/senpiSkill530todayMITA66Claude Code, Codex
cavemandmae97/omkSkill154todayMITA248Claude Code