C:\GRIFFIN\PROJECTS\TOOLS\AGENT-OBSERVABILITY>

[@] MAP
###C########P###
#...........$..#
#.^_^......|.|.#
#......@.......#
#.|.|......^_^.#
#..............#
###H########O###
TOOLS/AGENT-OBSE

Doors are hotkeys. Or click the screen and walk with the arrow keys.

Agent Observability

Status
Open source, in daily use
Stack
Go · SQLite · Data Pipeline · Developer Tooling · AI Agents
Source
github.com/Griffinhale/agent-observability
  1. #1 Griffin Hale

    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.
  2. #2 Griffin Hale

    • Source: GitHub, MIT license.
    • 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.
  3. #3 Griffin Hale

    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.

  4. #4 Griffin Hale

    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.

  5. #5 Griffin Hale

    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.

  6. #6 Griffin Hale

    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.

  7. #7 Griffin Hale

    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.

  8. #8 Griffin Hale

    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.

  9. #9 Griffin Hale

    Checked all six log readers against real installs: about 6,000 sessions and 118,000 tool calls, with no tool calls lost between stages.

  10. #10 Griffin Hale

    Prepared the repo for public use under the MIT license, with a README and tests that run on every change.

  11. #11 Griffin Hale

    Added sample logs to the repo, so anyone can run every command without touching their own logs.

  12. #12 Griffin Hale

    Made backups safe to script: the password is typed at a prompt, a flag answers confirmations, and switching back restores the previous setup.