Skip to content

About

Local-first full-text search across AI coding agent transcript JSONL files

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

agent-transcript-search

CI License: MIT

Local-first full-text search across AI coding-agent transcript JSONL files.

Built for the moment when you remember that an agent fixed something yesterday, but not which session, command, patch, or transcript line contains it.

Why

AI coding agents now produce valuable local history: prompts, plans, shell commands, tool output, patches, and postmortems. But the native UX is often session-by-session, while real work spans many sessions.

Public requests for better retrieval include:

This project is an independent local tool, not an official OpenAI or Anthropic product.

Features

  • indexes Claude Code-style and Codex-style JSONL transcripts;
  • SQLite FTS5 full-text search;
  • shows nearby transcript context around each hit;
  • filters by agent, role, and timestamp;
  • exports a standalone HTML report;
  • optional --redact for common token/email/key shapes;
  • no network calls, no telemetry, no model key, no upload;
  • standard-library-only runtime.

Install

From GitHub once this repository is public:

pipx install git+https://github.com/lajiaojiang-ai/agent-transcript-search.git

Or with uv:

uv tool install git+https://github.com/lajiaojiang-ai/agent-transcript-search.git

For local development:

git clone https://github.com/lajiaojiang-ai/agent-transcript-search.git
cd agent-transcript-search
python -m pip install -e .

Quickstart

Index default Claude Code / Codex transcript locations if they exist:

agent-transcript-search index

Or index an explicit file/directory:

agent-transcript-search index --root "$env:USERPROFILE\.claude\projects" --db .\.ats\index.db

Search:

agent-transcript-search search "gateway restart" --db .\.ats\index.db

JSON output with redaction:

agent-transcript-search search "gateway restart" --db .\.ats\index.db --json --redact

Export a shareable HTML report:

agent-transcript-search export "gateway restart" --db .\.ats\index.db --output .\gateway-search.html --redact

Demo with synthetic fixtures

This repo includes tiny synthetic examples under examples/; they contain no real user data.

python demo.py

The demo builds a temporary index, searches for gateway restart, and writes an HTML report under a temporary directory.

Privacy model

The index can contain sensitive local transcript text. Keep the SQLite DB private. Use --redact before sharing terminal output or HTML reports.

Redaction is a convenience, not a cryptographic guarantee. Always review exports before publishing them.

Current limits

  • best-effort parsers for Claude Code-style and Codex-style JSONL; other JSONL formats are treated as generic;
  • index rebuild is full rebuild, not incremental yet;
  • no TUI yet;
  • no semantic/vector search yet;
  • no official affiliation with OpenAI, Anthropic, or any agent vendor.

Development

Run tests:

python -m unittest discover -s tests -v

Run CLI from a checkout without installing:

$env:PYTHONPATH = "src"
python -m agent_transcript_search.cli index --root examples --db .\.ats-demo\index.db
python -m agent_transcript_search.cli search "gateway restart" --db .\.ats-demo\index.db

Roadmap

  • incremental indexing;
  • richer per-agent format adapters;
  • TUI result browser;
  • saved searches;
  • optional watched folders;
  • stronger export review checklist.

License

MIT. See LICENSE.

About

Local-first full-text search across AI coding agent transcript JSONL files

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages