Skip to content

testy-cool/agentconvos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

agentconvos

Discover, query, and browse AI coding agent conversations. Works with Claude Code, Codex, and Pi.

Use as a CLI (agentconvos --context --json), a Python library (from agentconvos import scan_projects), or an interactive TUI (agentconvos).

agentconvos demo

Install

uv tool install "agentconvos[ai] @ git+https://github.com/testy-cool/agentconvos.git"

Without Gemini analysis: drop [ai]. Requires Python 3.12+.

CLI

Project context (the fast path)

agentconvos --last              # most recent conversation for cwd
agentconvos --last 3            # last 3
agentconvos --context           # last 5 with summaries
agentconvos --context --json    # structured, for piping to other tools

Search

agentconvos --search "auth middleware"
agentconvos --search "auth" --source claude --json

List and filter

agentconvos --list
agentconvos --list --source codex --after 2026-05-01 --json
agentconvos --list --json | jq '.projects[].conversations[].summary'

Resume and handoff

agentconvos --resume <id>              # resume in native CLI
agentconvos --handoff                  # export context, start new session
agentconvos --handoff select           # pick from list
agentconvos --handoff codex            # latest Codex conversation

Export

agentconvos --concat <id>              # markdown export
agentconvos --concat <id> --detail tools    # include tool call summaries
agentconvos --concat <id> --detail full     # include everything

Analyze with Gemini

Requires GEMINI_API_KEY env var or .env file. Get a key at aistudio.google.com.

agentconvos --analyze <id>
agentconvos --analyze <id1> <id2> --model gemini-3.1-pro-preview
agentconvos --analyze <id> --prompt "What tools were used most?"

JSON output

--json works with --list, --search, --last, and --context. Output includes session summaries, token estimates, file paths, and UUIDs.

Library API

from agentconvos import scan_projects, parse_jsonl, search, get_meta, get_stats

# Discover and filter
projects = scan_projects(source="claude", after="2026-05-01")

# Parse into normalized turns
turns = parse_jsonl(projects[0].conversations[0].path)

# Search across all sessions
hits = search([c.path for p in projects for c in p.conversations], "auth")

# Token and cost stats
stats = get_stats(projects[0].conversations[0].path)

TUI

agentconvos

Interactive tree grouped by agent (Claude Code, Codex, Pi) with search, multi-select, preview, export, and Gemini analysis.

Key Action
/ Search/filter
S Toggle select
R Resume session
H Handoff to new session
E Export markdown
A Analyze with Gemini
Tab Switch panels
Q Quit

File locations

What Where
Claude Code logs ~/.claude/projects/{project}/*.jsonl
Codex logs ~/.codex/sessions/*.jsonl, ~/.codex/conversations/*.json
Pi logs ~/.pi/agent/sessions/**/*.jsonl
Summaries ~/.claude/convo-explorer/summaries/
Analyses ~/.claude/convo-explorer/analyses/

License

MIT

About

TUI for browsing, searching, exporting, and analyzing Claude Code conversation history

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages