session-reader
Use for reading or analyzing Pi session JSONL files and session history
Skill by OrestesK
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/orestesk-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
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. 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
- Use for reading or analyzing Pi session JSONL files and session history
- License
- MIT
- Instructions
- 103 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (2)
- SKILL.md
- read_session.py · scripts/
SKILL.md (first lines)
# Read Pi Sessions
Parse Pi session JSONL files into readable output. `PI_CODING_AGENT_SESSION_DIR`, when set, is the exact directory containing session files. Otherwise Pi groups sessions by project under `${PI_CODING_AGENT_DIR:-$HOME/.pi/agent}/sessions`
## Step 1: Find the Session
First find `scripts/read_session.py` in this skill directory and save its absolute path in `script_path`. Then list the sessions, choose one JSONL file, and save its absolute path in `session_path`:
```bash
script_path="/absolute/path/resolved-from-this-skill/scripts/read_session.py"
if [[ -n "${PI_CODING_AGENT_SESSION_DIR:-}" ]]; then
session_dir="$PI_CODING_AGENT_SESSION_DIR"
ls -t "$session_dir"/*.jsonl | head -10
else
session_root="${PI_CODING_AGENT_DIR:-$HOME/.pi/agent}/sessions"
find "$session_root" -mindepth 1 -maxdepth 1 -type d -printf '%p\n' | sort
project_dir="/absolute/path/to/one-listed-project-directory"
ls -t "$project_dir"/*.jsonl | head -10
fi
session_path="/absolute/path/to/selected-session.jsonl"
```
## Step 2: Start with Table of Contents
Always start with `toc` to get a numbered map of the session:
```bash
uv run "$script_path" "$session_path" --mode toc
```
This prints a compact numbered list of every user exchange with timestamps and tools used
## Step 3: Read the Conversation
Conversation mode, the default, shows user messages and assistant text. It hides tool calls but shows a `[used: tool1, tool2]` hint
```bash
# Full conversation (default mode)
uv run "$script_path" "$session_path"
# Specific range
uv run "$script_path" "$session_path" --offset 5 --limit 3
# Search for specific topic
uv run "$script_path" "$session_path" --search "error"
```
## Step 4: Read One Exchange
To inspect one exchange in detail, including thinking, tool calls, tool results, and costs, run:
```bash
uv run "$script_path" "$session_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
## Read a Subagent Session
Subagent session files can be read with the same script:
```bash
# Use the JSONL path reported by --mode subagents
subagent_session_path="/absolute/path/to/subagent-session.jsonl"
uv run "$script_path" "$subagent_session_path" --mode toc
```
## Session Format Reference
<!-- references/session-format.md does not exist yet — skip for now -->From OrestesK/pi, MIT.
More from OrestesK/pi
- 0.563score
skill-authoring
OrestesK
Create, review, or make substantial changes to local Pi skills.
SkillBFreshness: B★ 2Claude Code +9 - 0.559score
browser-use
OrestesK
Use for navigating websites, testing web interfaces, filling forms, taking screenshots, or extracting web data when no other available tool meets the need
SkillBFreshness: B★ 2Claude Code +9 - 0.557score
durable-memory
OrestesK
Curate durable Markdown memories.
SkillBFreshness: B★ 2Claude Code +9 - 0.557score
code-intelligence
OrestesK
Use when you need to find code ownership, structure, symbols, types, references, call relationships, structural patterns, or diagnostics
SkillBFreshness: B★ 2Claude Code +9 - 0.557score
notion-documents
OrestesK
Write, edit, and format Notion documents.
SkillBFreshness: B★ 2Claude Code +9 - 0.556score
excalidraw-skill
OrestesK
Use for creating, refining, validating, or exporting Excalidraw technical diagrams
SkillBFreshness: B★ 2Claude Code +9 - 0.556score
grill-me
OrestesK
Manually interview the user about a plan or design until shared understanding is reached
SkillBFreshness: B★ 2Claude Code +9 - 0.554score
writing-plans
OrestesK
Use for technical specifications, technical designs, architecture proposals, and implementation plans after the goal is clear
SkillBFreshness: B★ 2Claude Code +9 - 0.551score
github
OrestesK
Use for GitHub pull requests, issues, CI workflows, and API queries
SkillBFreshness: B★ 2Claude Code +9 - 0.551score
github-issues
OrestesK
Use for triaging, drafting, or improving GitHub issues from verified evidence
SkillBFreshness: B★ 2Claude Code +9 - 0.551score
context-mode
OrestesK
Process large command, test, log, API, document, data, browser, or MCP output
SkillBFreshness: B★ 2Claude Code +9 - 0.551score
brainstorming
OrestesK
Use for refining ambiguous or nontrivial feature, behavior, UI, API, or architecture requests into an approved design
SkillBFreshness: B★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 4, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/OrestesK/pi
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from OrestesK
- 0.570score
authenticated-web-access
OrestesK
Reuse an existing browser login for bounded authenticated website requests when the user asks to read site data, download a file, inspect a network-backed…
SkillAFreshness: AClaude Code +9 - 0.567score
excalidraw-skill
OrestesK
Use for planning, creating, refining, validating, or exporting Excalidraw technical diagrams, including text-only layout proposals before drawing
SkillAFreshness: AClaude Code +9 - 0.565score
pr-slack-post
OrestesK
Draft a short Slack message that posts a pull request for review.
SkillAFreshness: AClaude Code +9 - 0.565score
pi-config
OrestesK
Write and maintain clear, consistent Oh My Pi configuration.
SkillAFreshness: AClaude Code +9 - 0.565score
skill-authoring
OrestesK
Write or revise reusable skill instructions.
SkillAFreshness: AClaude Code +9 - 0.564score
grill-me
OrestesK
Manually interview the user about a plan, design, or idea until shared understanding is reached
SkillAFreshness: AClaude Code +9
Cite this page
session-reader skill. Agent Mart. https://agentmart.dev/skills/orestesk-session-reader (last updated 2026-10-24)