Bagger — Data skill for Claude Code
AI Coding Agent Data Collector — sync Claude Code transcripts into a searchable local database with a web UI.
How to install Bagger
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open lg114/bagger and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Bagger does
AI Coding Agent Data Collector — sync Claude Code transcripts into a searchable local database with a web UI.
Alternatives in Data
- Notion Sync — /notion-sync - Push Ranked Jobs and Applications to a Notion Database 36.6k ★
- Opencode Mem — OpenCode plugin that gives coding agents persistent memory using local vector database 1.5k ★
- Agentsview — Local-first session intelligence and analytics for coding agents, supporting Claude Code, Codex, and 14 other 824 ★
README
bagger
**Scan local AI coding conversations. Search them. Read them.**
bagger turns your local Claude Code and Codex transcripts into a searchable, replayable archive you can read anytime — fully on your own machine.
What bagger does (MVP)
One focused loop:
- Scan — import local AI conversation transcripts into a local SQLite database.
- Search — full-text search across every conversation (SQLite FTS5 + BM25, CJK-aware).
- View — open any session and read the full conversation: messages, tool calls, and results.
That's the whole product. No accounts, no cloud, no telemetry.
Quick start
Requires Python 3.12 or newer.
# Install the CLI and API.
pip install -e ".[web]"
# Initialize the local database and scan existing transcripts.
bagger init
bagger scan
# Search your history, or replay a full session in the terminal.
bagger search "token expiration"
bagger replay
The default database is `~/.bagger/bagger.db`. A normal scan imports every registered source; use `--source claude` or `--source codex` to limit one.
Optional: desktop app
Prerequisites: Python 3.12+, Node.js 22+, and Rust.
pip install -e ".[dev,web]"
cd ui
npm install
npm run tauri dev
In development, Tauri starts the Python API for you.
Data sources
| Source | Transcript location | Format |
|---|---|---|
| Claude Code | ~/.claude/projects/ |
JSONL session files |
| Codex | $CODEX_HOME/sessions/ |
Rollout JSONL files |
When `CODEX_HOME` is unset, bagger uses `~/.codex/sessions/`. The parser registry auto-discovers concrete parsers in `bagger/parsers/`, and database identities are scoped by `(source, id)` so sessions from different tools never collide.
CLI
| Command | Purpose |
|---|---|
bagger init |
Create the data directory and initialize SQLite |
bagger scan [--full] [--source …] |
Related Skills
CrossBrain
把 AI 编程偏好写一次,同步到 Claude Code / Codex / Antigravity / OpenCode 等所有工具。本地优先、100% 离线、数据不上云 Write your AI coding pr
Curator
You are an autonomous memory curator for Rememora, a cross-agent persistent memory system. You extract knowled
Football Docs
Searchable football data provider documentation for AI coding agents. Like Context7 for football data.
Ccrecall
🔄️ Sync Claude Code transcripts to SQLite for analytics, uses node:sqlite
Data Studio Agent
Open-source MCP server that gives AI coding agents secure database access via DocKit and SqlKit bridges — 70+
Wp Create
Create a complete WordPress local development environment — download, configure, and set up database, web serv
Related Agents
Data Collector
Pure MCP and web data fetching for portfolio skills. Use for batch quotes, financials, technical indicators, s
Engineering Backend
Backend implementation specialist — API endpoints, data models, business logic, background jobs, and database
Dsgvo Auditor
Reviews a website, web app or codebase for DSGVO/TDDDG/DDG compliance under German law — tracing data from bro