Search, read, and slice Claude Code and Codex sessions from your terminal.

agentscript turns JSONL agent transcripts into readable indexed blocks so you can preserve context, inspect tool calls, hide noise, and export exactly the range you need.

Built for long coding-agent sessions where you need fast transcript navigation without opening a browser.

Long agent sessions need better terminal ergonomics.

Raw JSONL is painful to read and browser replays are not always ideal for quick context extraction. agentscript keeps the workflow scriptable, searchable, and sliceable.

Readable by default

Open Claude Code and Codex JSONL transcripts as clean user, assistant, thinking, command, tool, and result blocks.

Stable indexes

Every renderable block gets a permanent index, so filters never break slice references.

Scriptable first

Use flags for non-interactive rendering, filtering, searching, slicing, and exporting.

Latest-session workflow

Discover recent sessions from ~/.claude/projects and ~/.codex/sessions, then open or search them quickly.

Claude Code and Codex users who need exact control over transcript context.

Open a transcript by path or jump straight to the latest Claude/Codex session.

Hide thinking, tools, command output, or results without changing original block indexes.

Slice long transcripts like 0:100 or 100: and export the result to Markdown.

Search recent transcripts and jump back into the matching block with open --around.

Learn the open, search, slice, and export workflows.