I built a tiny CLI to see how my coding agent actually worked
Agent Pigeon reads local Claude Code and Codex session history after a run and turns it into a short Flight report. I built it because a final answer rarely shows the path that led there: the edits, checks, and retries in between. From a long session to one report npx agent-pigeon flight I wanted one command that could turn a long coding-agent session into something I could scan in a few seconds.…
A developer created a simple command-line interface (CLI) to examine the operations of their coding agent, called Agent Pigeon. This tool reads the local session history of Claude Code and Codex and compiles it into a brief Flight report. The goal was to provide a concise summary of the editing, checking, and retrying process behind a long coding session, instead of just the final result.
The developer wanted a single command, "npx agent-pigeon flight," that could transform a lengthy coding-agent session into a quick-to-read report. The report displayed essential information such as the provider and session span, edit counts, verification checks, and whether a previously recognized failure had later passed. The final line indicated the most recent verification state.
Agent Pigeon also allows users to open the original session when more context is required. However, if certain data is missing, such as Read tool calls, the CLI will display "READ: N/A." A "READ: 0" indicates that the parser could not reliably count the reads.
The developer experimented with live warnings and interventions, but encountered challenges due to incomplete event history. These gaps made it difficult to determine whether a check was skipped or if the log had failed to capture it. Consequently, they decided not to treat these gaps as reasons for interruption.
The public CLI operates in read-only mode, meaning it reads completed sessions without making any changes. When the signal is incomplete, observation can be more useful than interjecting. Comparing sessions using "npx agent-pigeon compare session-a session-b" allows users to side-by-side compare the observed facts from two sessions, without any model scores or declared winner.
However, Agent Pigeon has limitations. Verification detection is heuristic, and custom scripts may be missed. Additionally, READ attribution can be unavailable, particularly when the agent is embedded in broader command orchestration. The FAIL→PASS sequence shows the progression, but it cannot pinpoint which edit led to the pass.
The session span runs from the first to the last recorded event, including idle time. EDIT counts file events, not lines changed or the size of the diff. To try the CLI, users can run "npx agent-pigeon@latest flight." The source code is available on GitHub, and the developer encourages feedback on what the tool may miss or misread, especially around edge cases or different provider formats.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.