Local-first inspection tool, terminal TUI, and web dashboard for Codex agent session logs.
When a team member reports an unusual token spike, an unexpected model response, or a failing tool execution loop, diagnosing it across different machines has traditionally been difficult.
Agent Session Inspect solves this with zero-setup session sharing:
- Export with One Click: Any engineer can click Export Session (or export an individual turn message) to download a clean, standalone JSON report.
- Instant In-Memory Inspection: Drag and drop the exported JSON file directly into your Web Dashboard or CLI.
- No Setup or Database Configuration: Inspect full conversation history, token usage breakdowns, prompt caching efficiency, and file modifications in-memory without needing access to their raw database files.
# Inspect an exported teammate session directly from terminal
npx @ganmahmud/agent-session-inspect inspect ./teammate-spike-session.jsonRequires Node.js >= 22.13. Run without installing:
# Interactive Terminal TUI Dashboard (Default)
npx @ganmahmud/agent-session-inspect
# Interactive Web Dashboard (--web)
npx @ganmahmud/agent-session-inspect --web
# Terminal Scan Summary
npx @ganmahmud/agent-session-inspect codex scan
# Inspect Specific Session or Exported JSON File
npx @ganmahmud/agent-session-inspect inspect "Session Title or ID"npm install -g @ganmahmud/agent-session-inspect
# Launch Terminal TUI
agent-session-inspect
# Launch Web Dashboard
agent-session-inspect web --port 4318Modern SvelteKit local web app (http://127.0.0.1:4318) with dark mode, collapsible timeline navigation, session pinning, resizable sidebar, and rich markdown rendering.
Dual-pane keyboard & mouse interface with live project filtering (p), turn-by-turn activity logs, compact token telemetry, subagent badges, and quick JSON export (e).
Automatically classifies sessions by workspace project directory. Access dedicated project overview pages with aggregated token footprints and active session counts.
Full patch inspection with side-by-side file tree, addition/deletion counters (+N / -M), and copyable unified diffs.
Token footprint breakdown, prompt cache efficiency, reasoning overhead metrics, context window saturation gauges, and heavy-hitter turn spike analysis.
Track delegated subagent executions (subagent_activity, delegate_task) with dedicated execution timing and multi-agent interaction telemetry.
Download complete sessions or isolated message interactions as JSON; drag-and-drop JSON files in the web UI to inspect ephemeral sessions in-memory without database writes.
Parses local ~/.codex/sessions logs directly in read-only mode with file-based scan caching without uploading data to external servers or modifying local files.
# Run CLI / TUI from checkout
npm start
# Run Web Dashboard dev server
npm run dashboard:devSee CHANGELOG.md for detailed release notes and migration guides.



