Ayush Bhardwaj reads agents' repeated pipes as missing CLI features
Ayush Bhardwaj audited about 20,000 agent tool calls from his own coding sessions. The head, tail, grep and Python filters agents keep writing around a command, he argues, show what the tool should offer directly.
Watch from 0:48Recording by AI Engineer.
The idea
The speaker’s argument, in our words.Bhardwaj argues that agents rarely report friction with a tool; they write a small program around it instead. One pipe into head or a Python JSON filter means little, but the same pipe written again and again for the same subcommand points to something the tool is missing. He treats coding-agent transcripts as product analytics: in his own sample, 83% of pipes followed a pattern seen at least ten times.
For his own session-search tool he turned the recurring pipes into features (select messages around a match, a compact output mode, several sessions in one call) and reports that piped reads fell sharply afterwards. He also flags a correctness risk: without pipefail, a failing command piped into head can report success, and tail can cut the error away entirely, so he advises tools to put a short failure summary in their last lines.
What they found
From the talk. Figures are self-reported unless stated.About 20,000 agent calls across 14 CLIs: a quarter fed output into filters such as head, grep, tail, python, sort or wc; for read-heavy commands it was more than half, and git show and cargo test were piped 62% of the time each.
Self-reported, from the speaker's own coding-agent transcripts (Claude Code, Codex, Cursor). One developer's workflows, not a census. He notes some harnesses pipe far less; Codex, for example, lets the agent set an output limit per call.
Measured result
1:4083% of pipes fell into a pattern seen at least 10 times (same CLI subcommand and same pipe tools).
Same sample of everyday CLIs. Offered as the answer to the objection that agents can simply pipe output themselves.
Measured result
4:14In about 4 of 5 cases where an agent opened an old session with his tool, output went into a filter; after adding selection flags, a compact mode and batching, piped reads fell from 82% to about a quarter.
Self-reported on his own small tool, from an October audit of about 1,000 calls. The 80% (3:21) and 82% figures appear to describe the same baseline. One long session was 1.2 million characters in full and about 3,000 around the search match (4:33).
Case study
7:22After a flag became a no-op but the skill still recommended it, 95 of 95 searches still passed it; two sessions that loaded a rewritten skill never passed it and both tried new flags on their first read.
Deliberate experiment on the speaker's own tool; self-reported. The rewritten-skill side is two sessions, so it is an anecdote, not a rate.
Measured result
6:50
Why it matters
Our reading. Not said in the talk.Anyone shipping a CLI or MCP server now has agent users who do not file issues, and the evidence of friction already sits in session logs. The stale-skill experiment adds a second point: a new flag does nothing for agents until the skill file and help text stop pointing at the old path.
What one could try
- Search your agent transcripts for your tool's name followed by a pipe, rank the recurring patterns and consider the top ones as flags (ranges, fewer fields, batch inputs).
- When you add, change or remove a flag, update the skill file and help text in the same change, then check transcripts to confirm agents switched.
Limitations
- All numbers come from one developer's transcripts and tools; the speaker presents it as a small case study, and gives two sample sizes (about 20,000 calls overall, about 1,000 in the October audit of his own tool).
- The drop in piping on his tool came after both new flags and a rewritten skill file, so the effect of each change is not isolated.
- The stale-skill experiment is tiny on the corrected side (two sessions), so it is an anecdote, not a rate.
Original sources
AI Engineer CODE Summit 2026 · Nov 12, 2026
Your agent hates your CLI
Ayush Bhardwaj · 12 min
This is our synthesis of the talk, checked against the transcript at the linked moments.

