A Go command-line tool that loads six AI coding assistants' session logs into SQLite and reports failures, token use and repeated mistakes.
At a glance
Outcome: Loads the session logs of six AI coding assistants (claude,
codex, gemini, pi, hermes and antigravity) into SQLite and reports failed
tool calls, token use and repeated mistakes. It also backs up an assistant’s
whole setup and switches between saved setups.
Status: Public; install with go install or build from a clone. All six
log readers ran against real installs on June 18, 2026. Since then claude and
codex run against real logs and the other four against sample files.
Role: Solo: owns problem selection, architecture, acceptance criteria,
review and debugging; implementation is AI-assisted.
Stack & libraries: Go 1.25, SQLite through the pure-Go
modernc.org/sqlite driver; builds to a single program.
Validation: Tests feed each log reader sample files in its assistant’s
format and check what lands in the tables. On every change, the repo
rebuilds the README figures from the sample logs and fails if any differ.
Tests: Other tests check that an assistant’s own error flag overrides
the text scan, that each repeated-mistake check fires on the pattern it
targets, and that a restore asks before overwriting and refuses any file
whose checksum does not match.
Limitations: gemini catalogues one session and antigravity reports zero
failures, both documented in docs/harnesses.md. gemini and hermes
over-count failures. The score only sorts sessions and is calibrated against
nothing. Redirect detection matches English phrases.
AI coding assistants keep a log of every session: what was asked, which tools they ran and which runs failed. Each assistant writes its logs in its own place and format. Without converting them first, “which assistant fails more?” has no honest answer. agent-obs is one Go program that copies the logs of six assistants into SQLite databases that share the same tables.
analyze --compare then ranks the assistants side by side. On this machine in October 2026, claude averaged a 2.7% failure rate across 1,251 sessions, and codex 2.6% across 991. The first screenshot above shows that run.
Those two numbers mean little unless both assistants define a failure the same way. On June 18, 2026, all six readers ran against real installs: about 6,000 sessions and 118,000 tool calls, with none lost between stages.
Failures were then counted partly by scanning output text for words like “error”. That miscounts: a successful file read that contains the word looks like a failure. On June 19, failure counting changed to trust each assistant’s own error flag first and to scan the text only when a log has no flag.
A review of the code on August 27 found the flag covers only claude, codex and pi. gemini and hermes still fall back to the text scan and over-count. antigravity’s logs keep the flag in fields the reader cannot name, so it counts no failures at all.
The proposed next steps are an error flag for hermes and a plain-text copy of antigravity’s logs that does carry one. gemini’s command-line tool is deprecated upstream, so its reader is to be frozen, with the over-count documented.
Made backups safe to script: the password is typed at a prompt, a flag answers confirmations, and switching back restores the previous setup.
REAL OUTPUT
discover and analyze --compare on this machine's own session logs, October 2026.audit on the same data. Its WARN>85 flag is a coarse prompt to re-check a parser, not a finding.