PayPal's developer tools team says interactive CLIs need a data channel agents can read
Mark Lummus and Navinkumar Patil (PayPal) ran a workshop on CLIs whose prompts agents cannot see. Their suggestions, in order: run the CLI in tmux, add a side channel that exposes state and input as JSON, and tell the agent the constraint behind each question.
Watch from 2:25Recording by AI Engineer.
The idea
The speaker’s argument, in our words.Lummus's case for interactive CLIs is that the next question can depend on the previous answer or on what an API just returned, which flags cannot express without multiplying. The problem is that an arrow-key prompt is a question to a human and a redraw loop to an agent, and harnesses that do not handle interaction lose that UI state without an error. He compares the fix to accessibility: the same interface, a different reader.
The team's three suggestions go from low to high effort. Run the CLI inside tmux so the agent can send keys and capture the pane. Add a side channel, like adding a REST API next to a web page, that returns the current question and options as JSON and accepts answers as data. And inject context the agent needs to act sensibly, such as stock running low, so it knows what to confirm with the user. In the Q&A, after participants gamed the leaderboard with deterministic solvers, one of the presenters argued that the CLI itself should be deterministic, leaving the non-determinism to the agent.
What they found
From the talk. Figures are self-reported unless stated.With an interactive arrow-key prompt the human sees a question, the agent sees a redraw loop, the harness loses the UI state, and the failure is silent.
Their framing of the problem; no data on how common it is.
Speaker opinion
3:35Flags suit flows known up front with independent options; they break down when the next question depends on context or on live API responses.
Argument from the speakers.
Technical recommendation
5:02As a first step, run the CLI in a detached tmux session and drive it with send-keys and capture-pane, starting from the help output.
Hint given during the workshop.
Technical recommendation
26:23Add a side channel that exposes the CLI's state and accepts input as JSON, the way an API sits next to a web interface.
Second hint; shown on their sample coffee-ordering CLI. The third hint adds the constraint behind each question (31:44).
Technical recommendation
29:35
Why it matters
Our reading. Not said in the talk.Two other talks argue for machine-readable CLIs from different evidence. Ayush Bhardwaj read the filters agents pipe around his CLI's output as missing features, and Apify's Jan Čurn gave every mcpc command a --json flag so agents can chain calls. PayPal's team covers a case neither addresses: a prompt that waits for an answer the agent cannot see.
What one could try
- Run your own interactive CLI through an agent and check whether it can see and answer every prompt.
- Add a machine-readable mode that prints the pending question and options as JSON and accepts the answer as an argument or on stdin.
Limitations
Original sources
AI Engineer World's Fair 2026 · Oct 11, 2026
Burn Your Flags: Interactive CLIs for Agents
Mark Lummus, Navinkumar Patil · PayPal · 54 min
This is our synthesis of the talk, checked against the transcript at the linked moments.


