@ganmahmud/agent-session-inspect
v0.1.8
Published
Local, read-only inspection tool, TUI, and Web dashboard for Codex agent session logs
Downloads
821
Maintainers
Readme
Agent Session Inspect ⚡
Local-first inspection tool, terminal TUI, and web dashboard for Codex agent session logs.

🎯 Inspect & Troubleshoot Teammate Sessions Anywhere
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.jsonQuick Start
Requires 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"Global Installation
npm install -g @ganmahmud/agent-session-inspect
# Launch Terminal TUI
agent-session-inspect
# Launch Web Dashboard
agent-session-inspect web --port 4318Features
🌐 Interactive Web Dashboard (web / --web)
Modern SvelteKit local web app (http://127.0.0.1:4318) with dark mode, collapsible timeline navigation, session pinning, resizable sidebar, and rich markdown rendering.
⚡ Futuristic Terminal TUI Dashboard (tui / --ui)
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).

🗂️ Project-Based Session Grouping & Overview
Automatically classifies sessions by workspace project directory. Access dedicated project overview pages with aggregated token footprints and active session counts.
🔍 Rich File Changes & Inline Diff Viewer
Full patch inspection with side-by-side file tree, addition/deletion counters (+N / -M), and copyable unified diffs.

📊 Context & Performance Diagnostics
Token footprint breakdown, prompt cache efficiency, reasoning overhead metrics, context window saturation gauges, and heavy-hitter turn spike analysis.

🤖 Subagent & Multi-Agent Telemetry
Track delegated subagent executions (subagent_activity, delegate_task) with dedicated execution timing and multi-agent interaction telemetry.
📦 Standalone Session Export & Drag-and-Drop Import
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.
🔒 100% Local & Privacy-Preserving
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.
Local Development
# Run CLI / TUI from checkout
npm start
# Run Web Dashboard dev server
npm run dashboard:devChangelog
See CHANGELOG.md for detailed release notes and migration guides.
