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

@agent-dump/cli

v1.2.13

Published

Standalone native binaries for agent-dump, runnable via bunx or npx.

Readme

@agent-dump/cli

Native Rust agent-dump binaries for bunx and npx.

The package downloads the matching native binary for the current platform during installation and verifies it against the published checksum manifest before exposing agent-dump.

Registry access is delegated to npm so scoped registries, .npmrc authentication, proxies, custom certificate authorities, and npm's retry policy remain in effect. The npm subprocess has a five-minute deadline and bounded output; the downloaded archive is size-checked before loading, decompressed under an output limit, and verified against the published checksum manifest.

bunx @agent-dump/cli --help
npx @agent-dump/cli --help

Every entry point above, including bunx, requires Node.js 22 or newer because it executes the same Node.js package wrapper. Node 18 and 20 are end-of-life upstream and are not tested.

Supported targets:

  • darwin-x64
  • darwin-arm64
  • linux-x64
  • win32-x64

Linux x64 requires glibc 2.17 or newer; Alpine/musl is not supported by this prebuilt target. The macOS binary requires macOS 10.12 or newer on x64 and 11.0 or newer on arm64. No Python runtime is needed.

Installation

# Via bunx (no installation)
bunx @agent-dump/cli --help

# Via npx (no installation)
npx @agent-dump/cli --help

# Global install
npm install -g @agent-dump/cli
agent-dump --help

Usage

Interactive export

agent-dump --interactive
agent-dump --interactive --days 3

In a terminal, --interactive opens the session reader. Press Space to mark sessions and e to export the marked sessions. Without a terminal, numbered selection remains available.

Subcommands

agent-dump list --days 7 --json
agent-dump browse --search "database lock" --format json,markdown
agent-dump export codex://SESSION_ID --format markdown
agent-dump collect --emit-prompt

Subcommands are aliases for the existing option forms; both remain supported. Run agent-dump <subcommand> --help for focused usage, options, and examples.

List sessions

agent-dump --list
agent-dump --list --days 7
agent-dump --list --since 2026-03-01 --until 2026-03-07
agent-dump --list --query error

URI direct dump

agent-dump opencode://<session-id>
agent-dump zcode://<session-id>
agent-dump codex://<session-id>
agent-dump codex://threads/<session-id>
agent-dump kimi://<session-id>
agent-dump claude://<session-id>
agent-dump cursor://<composer-id>
agent-dump pi://<session-id>
agent-dump deepchat://<session-id>
agent-dump cherry://topic-<id>
agent-dump cherry://session-<id>
agent-dump minimax://<session-id>
agent-dump codex://<session-id> --head

Statistics

agent-dump --stats
agent-dump --stats --days 30

Provider capabilities

agent-dump --providers
agent-dump --capabilities

Search

agent-dump --search "auth timeout"
agent-dump --search "auth" --list --days 30
agent-dump --reindex

Collect (AI summary by date range)

agent-dump --collect
agent-dump --collect --days 7
agent-dump --collect --days 7 --query "provider:codex path:. limit:20" --dry-run
agent-dump --collect --since 2026-04-01 --until 2026-04-15
agent-dump --collect --collect-mode insight
agent-dump --collect --dry-run --save ./reports
agent-dump --collect --emit-prompt --output ./prompt.txt --save ./reports/weekly.md
agent-dump --collect --verify-manifest ./prompt.txt --json
agent-dump --collect --save ./reports

Collect execution, dry-run, and prompt handoff all support --query filters. Do not combine --query with an agents://... query URI. Reports and handoff metadata retain discovery and session read failures so incomplete input remains visible. Daily reports split conversation text by its actual activity date, including sessions spanning multiple days. Prompt handoffs use the same date boundaries and text spans.

Use --output with --emit-prompt to save the complete handoff prompt directly to a file, avoiding truncated command output. Directory targets receive a dated prompt filename; --save still specifies the final report path. Query filters are preserved in task metadata. Verify the saved manifest before reading sessions: --verify-manifest checks its structure, counts, URIs, Unicode lengths, and read commands without loading config or Provider sources. It exits 0 for a valid manifest and 1 for an invalid one; --json returns a kind: "collect_manifest" envelope. Use verification separately from prompt generation.

Config

agent-dump --config view
agent-dump --config edit

Supported URI schemes

  • opencode://<session_id> - OpenCode sessions
  • zcode://<session_id> - ZCode sessions
  • codex://<session_id> - Codex sessions
  • codex://threads/<session_id> - Codex sessions
  • kimi://<session_id> - Kimi sessions
  • kimi-code://<session_id> - Kimi-Code sessions
  • claude://<session_id> - Claude Code sessions
  • qoder://<session_id> - Qoder sessions
  • qoder-cn://<session_id> - Qoder CN sessions
  • cursor://<composer_id> - Cursor sessions (legacy cursor://<requestid> URIs still resolve to the same session)
  • droid://<session_id> - Droid sessions
  • grok://<session_id> - Grok sessions
  • pi://<session_id> - Pi sessions
  • omp://<session_id> - oh-my-pi sessions
  • gemini-cli://<session_id> - Gemini CLI sessions
  • dsh://<session_id> - DSH sessions
  • deepchat://<session_id> - DeepChat sessions
  • cherry://topic-<id> / cherry://session-<id> - Cherry Studio chats / agent sessions
  • minimax://<session_id> - MiniMax Code CLI sessions
  • antigravity-cli://<conversation_id> - Antigravity CLI conversations

DeepChat supports saved sessions in its current unencrypted app_db/agent.db, including migrated history, ACP sessions, and subagent sessions. Set DEEPCHAT_USER_DATA_DIR for a custom user data directory. SQLCipher databases and direct reads of legacy chat.db are unsupported.

Cherry Studio supports chats and agent sessions in its 2.x Data/cherrystudio.sqlite. Ordinary chats include only the active branch; deleted records are excluded. Set CHERRY_STUDIO_USER_DATA_DIR for a custom user data directory. Direct reads of 1.x IndexedDB/Redux data are unsupported.

MiniMax Code supports the current CLI's migrated display messages in v2/sqlite/runtime-state.sqlite, including visible conversations, child tasks, and archived sessions. Hidden and internal sessions are excluded. The data root is selected from MINIMAX_DATA_DIR, then MAVIS_DATA_DIR, then ~/.minimax; a missing explicit path never falls back. Set MINIMAX_DATA_DIR for custom profiles or other installations. Direct legacy storage reads and desktop data are unsupported; pending migrations and corrupt sessions produce diagnostics.

These providers support list, query, search, stats, collect, and print / JSON / Markdown exports. They read source databases without modifying them, retain attachment references without opening attachment files, and do not support raw export.

OpenCode supports both legacy SQLite sessions and OpenCode 2.x sessions through the existing opencode:// workflows, including list, query, search, stats, collect, and export. When both schemas coexist, 2.x takes precedence for matching session IDs while legacy-only sessions remain readable. Set OPENCODE_DB to an absolute database path or a filename relative to $XDG_DATA_HOME/opencode (or ~/.local/share/opencode) to select a custom or channel database; a missing explicit path never falls back. Reads are read-only, and raw export remains normalized .raw.json, not an OpenCode import file.

agent-dump --list --query "provider:opencode"
agent-dump 'opencode://<session-id>' --format json,markdown --output ./sessions
agent-dump --collect --emit-prompt --query "provider:opencode"

Browse sessions and consume query results

agent-dump --browse --query 'provider:codex path:.' --days 30
agent-dump --list --json
agent-dump --list --time-field updated --days 7 --json
agent-dump --providers --json
agent-dump codex://SESSION_ID --head --json
agent-dump --search 'database locked' --locate --json --query 'provider:codex'
agent-dump codex://SESSION_ID --message 'REVISION:POSITION' --before 2 --after 3 --json
agent-dump codex://SESSION_ID --message 'REVISION:POSITION' --format json,markdown --output excerpts

--browse requires an interactive terminal and defaults to sessions updated in the last seven days. Use s to search across sessions, / to search within the selected session, and n/N to navigate matching messages. Press x to preview a hit with nearby context, +/- to change the context radius, and e to export that excerpt with source locators and revision checks. Outside excerpt preview, Space marks sessions and e exports all marked sessions, or the selected session if none are marked. Exports use --format and --output. Use t for tool details, y for URI clipboard requests, and Y to copy the focused message text or previewed excerpt (both require OSC 52). Press r to refresh the list in place, p to cycle the Provider filter, and d to cycle the lookback window (7 → 30 → 90 → 365). Tab switches panes on narrow terminals; q/Esc/Ctrl-C closes the reader. Source sessions remain read-only.

List, search, browse, and interactive selection use session update time for the --days window by default, including older conversations with recent activity. Add --time-field created to filter by creation time. Explicit --since/--until dates override --days in list, search, browse, interactive, and stats. Collect uses text activity dates; statistics keep creation-date buckets.

--json writes one versioned JSON envelope to stdout for list, search, statistics, message context, bounded reads, head metadata, or Provider capabilities; diagnostics go to stderr. Check status for partial results and always check the exit code. Existing --format json exports still write files.

Pass a search result's locations[].locator unchanged to --message. Locators bind to the transcript snapshot; rerun search if content changes. Context defaults to three messages before and after the target. Use --format json,markdown to export the selected context with its URI, locator, original message range, and partial-source status. Provider format restrictions still apply. --message cannot combine with --head or --summary; --json cannot combine with file-export options, and --output requires --format.

Read sessions in bounded pages

agent-dump codex://SESSION_ID --read-prompt
agent-dump codex://SESSION_ID --read --order asc --limit 20 --max-chars 12000 --json
agent-dump codex://SESSION_ID --read --cursor 'NEXT_CURSOR' --json
agent-dump codex://SESSION_ID --read --since 2026-03-01 --until 2026-03-07 --json

Replace NEXT_CURSOR with data.next_cursor from the previous page. Continue until has_more=false, including every fragment of long messages. Cursors preserve the selection, order, budgets, and date filters; do not override them on continuation. --since/--until keep text segments dated within the local range and exclude undated segments. A changed transcript invalidates the cursor, so restart reading instead of combining revisions. Output is bounded, but each request may still parse the full source transcript. --read-prompt generates reading instructions without opening the source or confirming that the session exists.

Collect processes all eligible user/assistant text through bounded chunks and marks incomplete reports. --collect --emit-prompt generates a paginated reading task for an external Agent; it does not create the report. See the full README for schemas, filters, and source limits.

Key features

  • Multi-agent support: Scan and export sessions from OpenCode, ZCode, Claude Code, Qoder, Qoder CN, Codex, Kimi, Kimi-Code, Cursor, Droid, Grok, Pi, oh-my-pi, Gemini CLI, DSH, DeepChat, Cherry Studio, MiniMax Code, and Antigravity CLI
  • Interactive selection: Mark sessions in the reader for batch export, with numbered selection for pipelines
  • Session reader: --browse for terminal reading, cross-session and in-session search, tool details, and excerpt export
  • Machine-readable queries: --json for list, search, statistics, message context, bounded reads, metadata, and capabilities
  • Message context: --search --locate and URI --message to read or export search hits with nearby messages and source locators
  • Bounded Agent reading: --read pages with continuation cursors and --read-prompt instructions
  • Recent activity: Date windows default to session update time; --time-field created selects creation time, and --since/--until select explicit local dates
  • URI direct access: View or export any session by its URI without searching
  • Head metadata: --head reuses bounded discovery metadata without rereading the transcript and marks incomplete message counts as unknown
  • Statistics: --stats shows session and message counts grouped by agent and time, reporting known subtotals separately from sessions with unknown counts
  • Provider capabilities: --providers reports URI schemes, export formats, and local search-root status without scanning sessions
  • AI collect: --collect summarizes sessions over a date range using your configured LLM, with pm and insight modes
  • Relative collect windows: Explicit --days N selects today minus N days through today; --since/--until takes precedence, while collect without either remains today-only
  • Collect dry-run: --collect --dry-run previews provider breakdown, session/chunk counts, concurrency, and save path
  • External agent handoff: --collect --emit-prompt outputs a self-contained prompt with safe read-only URI commands and candidate manifests for external agents without requiring local LLM configuration
  • Full-text search: --search requires every distinct whitespace-delimited term, allows terms to match across corpus fields, keeps CJK matches contiguous, and gives FTS5 and in-process fallbacks the same literal semantics
  • Structured queries: --query and agents:// q values require every whitespace-separated literal term, like --search, and support provider:, role:, path:, and limit: filters (role: snippets come only from allowed messages)
  • Scoped queries: agents://<path>?q=keyword&providers=codex,claude for repo-scoped searches
  • Multi-format export: --format json,markdown,raw,print with md alias for markdown
  • Localized CLI: --lang en|zh for user-facing messages and diagnostics
  • Predictable exit codes: 0 success (including legitimately empty results), 1 could not complete the request, 2 usage error
  • Config-driven: ~/.config/agent-dump/config.toml for AI provider, shortcuts, and agent deny-lists

Documentation

Full documentation and Rust source: xingkaixin/agent-dump. Changelog: CHANGELOG.md.