session-reader
Efficiently read and analyze pi agent session JSONL files.
Skill by HazAT
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/hazat-session-reader
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/session-reader
What's inside
- Skill name
session-reader- Description
- Efficiently read and analyze pi agent session JSONL files. Use when asked to "read a session", "review a session", "analyze a session", "what happened in this session", "load session", "parse session", "session history", "go through sessions", or given a .jsonl session file path.
- License
- MIT
- Instructions
- 88 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (3)
- SKILL.md
- session-format.md · references/
- read_session.py · scripts/
SKILL.md (first lines)
# Read Pi Sessions
Parse pi session JSONL files into readable output. Sessions live in `~/.pi/agent/sessions/<project>/` as `.jsonl` files.
## Step 1: Find the Session
```bash
ls -t ~/.pi/agent/sessions/*<project>*/*.jsonl | head -10
```
## Step 2: Start with Table of Contents
Always start with `toc` to get a numbered map of the session:
```bash
uv run ${CLAUDE_SKILL_ROOT}/scripts/read_session.py <path> --mode toc
```
This prints a compact numbered list of every user exchange with timestamps and tools used.
## Step 3: Read the Conversation
Default mode — shows only user messages and assistant text responses. Tool calls are hidden but hinted at with `[used: tool1, tool2]`.
```bash
# Full conversation (default mode)
uv run ${CLAUDE_SKILL_ROOT}/scripts/read_session.py <path>
# Specific range
uv run ${CLAUDE_SKILL_ROOT}/scripts/read_session.py <path> --offset 5 --limit 3
# Search for specific topic
uv run ${CLAUDE_SKILL_ROOT}/scripts/read_session.py <path> --search "error"
```
## Step 4: Drill Into a Turn
See everything about a specific exchange — thinking, tool calls, tool results, costs:
```bash
uv run ${CLAUDE_SKILL_ROOT}/scripts/read_session.py <path> --mode turn --turn 7
```
## Mode Reference
| Mode | Shows | Use for |
|------|-------|---------|
| `conversation` | User + assistant text only (default) | Reading what happened |
| `toc` | Numbered exchange list | Navigation, finding the right turn |
| `turn` | Full detail for one exchange | Drilling into specifics |
| `issues` | Errors, failures, retries, user complaints | Finding what broke |
| `overview` | Metadata + exchange summaries | Quick session assessment |
| `full` | Everything including tool I/O | Deep debugging |
| `tools` | Tool calls and results only | Understanding agent actions |
| `costs` | Token usage and cost per turn | Cost analysis |
| `subagents` | Subagent task/status/cost/paths | Reviewing delegated work |
## Flags
| Flag | Effect |
|------|--------|
| `--offset N` | Skip first N exchanges |
| `--limit N` | Show at most N exchanges |
| `--turn N` | Exchange number to drill into (with `--mode turn`) |
| `--search TERM` | Filter exchanges containing TERM (case-insensitive) |
| `--max-content N` | Max chars per block (default: 3000, 0=unlimited) |
## Typical Workflow
1. `--mode toc` → scan the session, find interesting exchanges
2. Default (conversation) → read the human-readable flow
3. `--mode turn --turn N` → drill into specific exchanges
4. `--mode subagents` → review delegated work and follow subagent session paths
## Subagent Drill-Down
Subagent session files can be read with the same script:
```bash
# From --mode subagents output, grab the JSONL path
uv run ${CLAUDE_SKILL_ROOT}/scripts/read_session.py <subagent-jsonl-path> --mode toc
```
## Session Format Reference
Read `${CLAUDE_SKILL_ROOT}/references/session-format.md` only if custom parsing is needed.From HazAT/pi-config, MIT.
More from HazAT/pi-config
- 0.765score
superconductor
HazAT
Operates the super.engineering/Superconductor `sc` CLI for app-managed agents, teams, sessions, layouts, worktrees, and review threads.
SkillBFreshness: B★ 455Claude Code +9 - 0.765score
pi-extension-development
HazAT
Defines the local standard for standalone Pi extension repositories.
SkillBFreshness: B★ 455Claude Code +9 - 0.759score
visualize-plan
HazAT
Turns an existing implementation plan into a polished self-contained HTML page and opens it in the browser.
SkillBFreshness: B★ 455Claude Code +9 - 0.759score
setup-superconductor-project
HazAT
Configures a repository for super.engineering with repo-owned worktree setup and development-server scripts.
SkillBFreshness: B★ 455Claude Code +9 - 0.759score
worker
HazAT
Implement one todo or review-fix task supplied by a coordinator, verify it, create one focused commit, and report evidence through the current Superconductor…
SkillBFreshness: B★ 455Claude Code +9 - 0.756score
write-todos
HazAT
Convert a selected Markdown plan into clear, dependency-ordered Markdown todos.
SkillBFreshness: B★ 455Claude Code +9 - 0.756score
review
HazAT
Coordinate a model-diverse local code review, automatically repair actionable findings with sequential workers, and re-review to a final verdict.
SkillBFreshness: B★ 455Claude Code +9 - 0.756score
plan
HazAT
Interactively investigate a request, compare approaches, and write the selected implementation plan to a supplied Markdown path.
SkillBFreshness: B★ 455Claude Code +9 - 0.753score
scout
HazAT
Perform fast read-only codebase reconnaissance and report evidence to the requesting Superconductor session or team.
SkillBFreshness: B★ 455Claude Code +9 - 0.628score
skill-creator
HazAT
Create new agent skills following the Agent Skills specification.
SkillDFreshness: D★ 455Claude Code +9 - 0.536score
commit
HazAT
Read this skill before making git commits
SkillDFreshness: D★ 455Claude Code +9 - 0.517score
github
HazAT
Interact with GitHub using the `gh` CLI.
SkillDFreshness: D★ 455Claude Code +9
Signals
- Stars
- 455
- Forks
- 42
- Open issues
- 0
- Last commit (this folder)
- Mar 31, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/HazAT/pi-config
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from HazAT
- 0.765score
superconductor
HazAT
Operates the super.engineering/Superconductor `sc` CLI for app-managed agents, teams, sessions, layouts, worktrees, and review threads.
SkillBFreshness: B★ 455Claude Code +9 - 0.765score
pi-extension-development
HazAT
Defines the local standard for standalone Pi extension repositories.
SkillBFreshness: B★ 455Claude Code +9 - 0.759score
visualize-plan
HazAT
Turns an existing implementation plan into a polished self-contained HTML page and opens it in the browser.
SkillBFreshness: B★ 455Claude Code +9 - 0.759score
setup-superconductor-project
HazAT
Configures a repository for super.engineering with repo-owned worktree setup and development-server scripts.
SkillBFreshness: B★ 455Claude Code +9 - 0.759score
worker
HazAT
Implement one todo or review-fix task supplied by a coordinator, verify it, create one focused commit, and report evidence through the current Superconductor…
SkillBFreshness: B★ 455Claude Code +9 - 0.756score
write-todos
HazAT
Convert a selected Markdown plan into clear, dependency-ordered Markdown todos.
SkillBFreshness: B★ 455Claude Code +9
Cite this page
session-reader skill. Agent Mart. https://agentmart.dev/skills/hazat-session-reader (last updated 2026-10-24)