# Fleet Ledger

> Analytics over the session logs my coding agents already write

- Author: James Hong
- Tags: ai, data
- Stack: Python, PostgreSQL, pgvector, Flask, MCP, React, Terraform, AWS
- URL: https://gnohj.net/projects/fleet-ledger/

Coding agents leave thousands of session transcripts on disk, and the only way to ask them anything is [grep](https://www.gnu.org/software/grep/).
Fleet Ledger ingests those logs once, incrementally, into [PostgreSQL](https://www.postgresql.org/) so they can be queried.

It answers the questions I currently work out by hand: what a piece of work cost, which model and effort level ship the most per dollar, and whether an error has come up before.

A [Python](https://www.python.org/) ingest feeds tables, materialized views and full-text and semantic search.
A [Flask](https://flask.palletsprojects.com/) API with an [OpenAPI](https://www.openapis.org/) spec serves a React dashboard, and an [MCP](https://modelcontextprotocol.io/) server lets the agents ask the same questions in one call instead of parsing raw files themselves.

In progress.
The write-up and numbers land here when it ships.
