Ayush Bhardwaj: Agent workarounds are feedback for your CLI

An audit of coding sessions shows where output, errors and stale instructions force agents to improvise.

ABAyush BhardwajPonente · Allos AI
Canal
AI Engineer
Publicado
10 nov 2026
Vídeo
12:20
Lectura
3 min
Diapositivas
1
Original
inglés
Abrir en YouTube
Al desplazarte, el vídeo se reduce a la esquina inferior derecha y sigue reproduciéndose. Los subtítulos siguen tu idioma de lectura.
Idioma de lecturaDisponible en 2 idiomas
Este artículo aún no está en español, así que se muestra el original en inglés.
RESUMEN

En 30 segundos

After examining roughly 20,000 calls in his own agent sessions, Ayush Bhardwaj found repeated pipelines that revealed missing CLI features. His fixes included selecting relevant messages, compact search results and batch inspection. He also shows how a pipeline can hide a failed test, why stale skill instructions persist, and why smaller output must be evaluated against correct answers and fewer turns.

  1. 1Repeated filtering can expose missing tool featuresIn his own sample, Bhardwaj found agents frequently piped CLI output through filters.
  2. 2A successful final pipe command can mask a failed testThe real error or exit status may be lost unless the tool and shell preserve it.
  3. 3Agents kept using a no-op flag while instructions still named itAll 95 observed searches used the old flag; revised instructions changed the behavior in two sessions.
  4. 4Replay real commands as test casesUse the next agent action as a rough clue and reserve examples for evaluation.
  5. 5Fewer output tokens alone do not prove a better workflowMeasure correct answers and turns as well as output size.

Conclusiones

  1. Inspect repeated pipes and retries in real agent sessions.
  2. Make errors visible and preserve the real failure status.
  3. Offer selection, compact output and batch operations where usage warrants them.
  4. Update skills and help text when the interface changes.
  5. Replay held-out traces and measure useful outcomes, not only output size.
TEXTO COMPLETO

Lee el texto editado por capítulos

Solo la transcripción
01

Read workarounds as product feedback

Bhardwaj audits agent calls and shows how filtering can also hide failures.

I built a command-line tool that lets coding agents retrieve context from previous sessions. Watching agents use it taught me that their workarounds are feedback: they can silently write a program around a tool rather than report a bug.

I extracted about 20,000 calls involving 14 command-line tools from my transcripts. Around a quarter piped output into filters such as head, tail, grep or Python; the proportion was higher for read-heavy commands. These are observations from my own sessions.

Pipelines can also hide failures. Without pipefail, a shell pipeline normally reports the final command’s exit status, so a successful head or tail can mask a failed test. Trimming output can remove the actual error too; I recommend a concise failure summary and a path to the full log.

02

Turn repeated filters into CLI features

His session-search tool adds selection, compact results and batch inspection based on observed usage.

My chat-history CLI searches past sessions from several coding tools. In a smaller audit of my own usage, agents often opened a session and immediately filtered it again. That repeated cut suggested the interface should offer better selection rather than making the agent rebuild it each time.

One full session was around 1.2 million characters, while the messages around a match were about 3,000. A generic size cap limits volume but does not identify the relevant section, so I added ranges, matching messages and recent-message options.

Repeated Python processing of JSON suggested a compact search format with fewer fields; repeated loops over sessions suggested a batch inspection command. The commands agents wrote around my command became a product roadmap.

03

Teach changes and test with real traces

Stale instructions kept a no-op flag in use. Recorded commands can become replay tests.

Help text and skill files are part of the interface. I made a flag do nothing but left it in the skill instructions; all 95 observed searches still used it. After two sessions loaded revised instructions, neither used the obsolete flag and both tried new options.

Transcripts can provide replay tests: run the same commands against old and new versions, then inspect whether a result the agent used remains available. What the agent did next is only a rough clue about its intention, so hold back cases for evaluation.

Replay transcripts as test cases
DIAPOSITIVA 1 / 1Replay transcripts as test casesCompare the same commands across versions and inspect the agent’s next action as a rough answer key.
04

Measure the outcome, not just shorter output

Concise agent modes help only if they improve the task. The speaker recommends designing deliberately and checking real behavior.

I would first add useful ranges and limits, teach agents the options, and keep default output concise while explaining how to retrieve more. A flag only helps if agents know when to use it.

An agent-specific mode can present concise output and clear errors. But one example reduced tool-output tokens without materially improving overall cost or runtime. Measure correct answers and turns as well as the number of characters returned.

I do not expect an agent to design the best agent-facing interface in one shot. People should decide what the tool needs to do, then use real transcripts and tests to help the agent find and fix friction.

Back up your transcripts, search for a tool followed by a pipe or repeated retries, and inspect what happened next. Those workarounds are the product analytics for an agent-facing tool.

Más de este canal

4 diapositivas38:50EN
AI Engineer· 10 nov 2026LinkedIn’s self-improving agent first had to fix its judgesZiwei Guo, Saloni Gandhi · LinkedInA prompt-optimization loop improved a career agent, but unreliable evaluators required human calibration first.Ingeniería de agentesEvaluaciones y observabilidadAgent orchestration+1
12:48EN
AI Engineer· 10 nov 2026Brian Douglas: Turn agent corrections into reusable review knowledgeBrian Douglas · Paper ComputeThe Paper Compute developer captures expert pushback in coding sessions and tests ways to reuse it during review.Agentes de programaciónFlujos de desarrollo y pruebasSoftware engineering+1
5 diapositivas12:57EN
AI Engineer· 10 nov 2026Harvey’s agents scaled until their platform and merge queue brokeJoey Wang · HarveyAfter an alert spawned 900 agents and one engineer launched 950 tasks, Harvey added deduplication and fair scheduling.Ingeniería de agentesAgent orchestrationDeveloper productivity+1
Diapositivas23:00EN
AI Engineer· 10 nov 2026A passing PR check needs evidence tied to the submitted codeStephen Chin, Cassandra Chin · Neo4jStephen and Cassandra Chin show how Tracetoon connects agent traces, code changes and checks before writing a reviewable pull request.Agentes de programaciónFlujos de desarrollo y pruebasSoftware engineering+1
4 diapositivas22:49EN
AI Engineer· 10 nov 2026When many coding agents share one codebase, delivery must handle concurrencyPatrick Debois · TesslPatrick Debois explains how shared planning, merge strategies and risk-based review can help teams coordinate agents.Agentes de programaciónSoftware engineeringFábricas de software
2 diapositivas15:41EN
AI Engineer· 10 nov 2026Meta’s on-call AI teammate earns autonomy one action at a timeChinmay Gandhi, Swaapnika Motapothula, Vlad Tsvang · MetaThe team connects incident context and shared memory while keeping critical decisions and code review with people.AI agentsInfraestructura y despliegueIngeniería de agentes+1