agent-ledger
A local tool that loads AI coding-agent transcripts into a searchable SQLite database and flags notable events.
Which tool calls were my AI coding agents denied, and in which sessions? agent-ledger is a local command-line tool for questions like that. It keeps a searchable record of what AI coding agents did on a machine. I designed it, directed the work, and operate it; AI coding agents wrote most of the code.
It reads the transcript files that Claude Code already writes, with experimental support for Codex CLI transcripts, and loads them into a SQLite database with full-text search. It flags notable events:
- denied tool calls
sudoand other boundary-crossing commands- model swaps
- compactions
Privacy and testing
agent-ledger redacts common secret formats before it stores transcript text. It uses only the Python standard library and makes no network connections.
It has 125 automated tests and has been tested on Linux with Python 3.12. Two other AI models reviewed the code independently before release, and their findings were fixed. It is MIT licensed.