An open API service indexing awesome lists of open source software.

https://github.com/testy-cool/agentconvos

TUI for browsing, searching, exporting, and analyzing Claude Code conversation history
https://github.com/testy-cool/agentconvos

Last synced: 10 days ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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

```bash
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)

```bash
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

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

### List and filter

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

### Resume and handoff

```bash
agentconvos --resume # resume in native CLI
agentconvos --handoff # export context, start new session
agentconvos --handoff select # pick from list
agentconvos --handoff codex # latest Codex conversation
agentconvos --handoff --handoff-agent codex # hand off latest conversation into Codex
agentconvos --handoff --yolo # hand off into Codex with codex --yolo
```

### Export

```bash
agentconvos --concat # markdown export
agentconvos --concat --detail tools # include tool call summaries
agentconvos --concat --detail full # include everything
```

### Analyze with Gemini

Requires `GEMINI_API_KEY` env var or `.env` file. Get a key at [aistudio.google.com](https://aistudio.google.com/apikey).

```bash
agentconvos --analyze
agentconvos --analyze --model gemini-3.1-pro-preview
agentconvos --analyze --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

```python
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

```bash
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