Install
$ agentstack add skill-hazat-pi-config-session-reader ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Read Pi Sessions
Parse pi session JSONL files into readable output. Sessions live in ~/.pi/agent/sessions// as .jsonl files.
Step 1: Find the Session
ls -t ~/.pi/agent/sessions/**/*.jsonl | head -10
Step 2: Start with Table of Contents
Always start with toc to get a numbered map of the session:
uv run ${CLAUDE_SKILL_ROOT}/scripts/read_session.py --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].
# Full conversation (default mode)
uv run ${CLAUDE_SKILL_ROOT}/scripts/read_session.py
# Specific range
uv run ${CLAUDE_SKILL_ROOT}/scripts/read_session.py --offset 5 --limit 3
# Search for specific topic
uv run ${CLAUDE_SKILL_ROOT}/scripts/read_session.py --search "error"
Step 4: Drill Into a Turn
See everything about a specific exchange — thinking, tool calls, tool results, costs:
uv run ${CLAUDE_SKILL_ROOT}/scripts/read_session.py --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
--mode toc→ scan the session, find interesting exchanges- Default (conversation) → read the human-readable flow
--mode turn --turn N→ drill into specific exchanges--mode subagents→ review delegated work and follow subagent session paths
Subagent Drill-Down
Subagent session files can be read with the same script:
# From --mode subagents output, grab the JSONL path
uv run ${CLAUDE_SKILL_ROOT}/scripts/read_session.py --mode toc
Session Format Reference
Read ${CLAUDE_SKILL_ROOT}/references/session-format.md only if custom parsing is needed.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: HazAT
- Source: HazAT/pi-config
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.