npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ganmahmud/agent-session-inspect

v0.1.8

Published

Local, read-only inspection tool, TUI, and Web dashboard for Codex agent session logs

Downloads

821

Readme

Agent Session Inspect ⚡

npm version npm downloads node version license GitHub stars

Local-first inspection tool, terminal TUI, and web dashboard for Codex agent session logs.

Agent Session Inspect Web Dashboard


🎯 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:

  1. Export with One Click: Any engineer can click Export Session (or export an individual turn message) to download a clean, standalone JSON report.
  2. Instant In-Memory Inspection: Drag and drop the exported JSON file directly into your Web Dashboard or CLI.
  3. 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.json

Quick 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 4318

Features

🌐 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).

Terminal TUI Dashboard

🗂️ 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.

File Changes & Diff Viewer

📊 Context & Performance Diagnostics

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

Session Diagnostics & Analytics

🤖 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:dev

Changelog

See CHANGELOG.md for detailed release notes and migration guides.

License

MIT License © Gan Mahmud