WhoBuilt

Burn Your Flags: Interactive CLIs for Agents

Oct 11, 2026· 54 min· 5.4K views·Watch on YouTube

Speakers

Mark Lummus, head of developer tools, and Navinkumar Patil, tech lead for developer tools at PayPal, lead an AI Engineer workshop on adapting interactive CLIs for agent workflows.

Why interactive CLIs can fail with agents

Mark explains that some agent harnesses cannot handle interactive prompts reliably. An agent may see a redraw loop instead of the question a person would see, causing a quiet failure. Flags work well for simple, known choices, but become unwieldy when decisions depend on context or live API responses.

A hands-on CLI challenge

Mark introduces the Bris Barista 9000 challenge: participants adapt a coffee-ordering CLI so an agent can use it, with a Mac mini as the prize. Navinkumar encourages participants to experiment with the PayPal Cafe repository and build for agent use. Mark suggests trying mid-tier models such as Haiku or Sonnet to avoid spending high-reasoning tokens on CLI tasks.

Use terminal sessions and structured side channels

Navinkumar recommends using tmux, starting with the help command, and using its panes and captured output to manage interactive sessions. He then suggests adding an IPC side channel so agents can read state and send input as structured data, such as JSON, instead of relying on screen scraping. He compares this to a website paired with an API.

Give agents context and machine-readable choices

Navinkumar describes providing command fields and options, such as coffee sizes, in a format an agent can use directly. He also recommends context injection: for example, tell the agent that only two gallons of oat milk remain and guide it to ask whether two ounces are enough or a backup is wanted. This gives agents relevant state and decision guidance alongside the human-facing flow.

Keep the CLI deterministic

An audience member describes building a deterministic solver that prioritizes completing an order quickly, exposing how the leaderboard could be gamed. Mark says determinism is useful when an LLM uses a CLI: the model can reason, while the CLI acts as a focused tool with repeatable responses. The closing recommendations are to provide good context, a side channel, and tmux.

Takeaways

  • Use flags for simple, predictable commands; use a guided flow when choices depend on context or live results.
  • Give agents structured ways to read CLI state and submit input, such as a JSON side channel.
  • Add relevant environment details and decision guidance so agents can handle situations that humans would resolve interactively.
  • Keep CLI behavior deterministic so an agent can reason over stable tool responses.
  • Use tmux to manage long-running CLI sessions and capture terminal output for agents.

Mentioned in this talk

Search inside this talk

What was claimed 7

  • works at
    Head of Product, Developer Tools
    “I'm head of developer tools at PayPal.”
    YouTube
    Verified2 sources· Talk, Web· archived
  • role at
    Navinkumar Patil is tech lead for the developer tools team at PayPal
    “He's our tech lead for the developer tools team.”
    YouTube
    Unverified1 source· Talk
  • metric
    Mac mini: Workshop challenge prize
    “The winner will win a Mac mini.”
    YouTube
    Unverified1 source· Talk
  • feature
    Bris Barista 9000: Interactive coffee-ordering CLI intended for participants to adapt for agent workflows
    “It's going to take coffee orders, and it's going to fail when you try to run it from an agent because it's interactive.”
    YouTube
    Unverified1 source· Talk
  • feature
    tmux: Supports multiple terminal sessions and split panes; agents can send keys and capture panes
    “tmux lets you use multiple terminal sessions, with a split-pane feature.”
    YouTube
    Unverified1 source· Talk
  • feature
    IPC side channels: Let agents read application state and send input as data
    “Read state and send input as data.”
    YouTube
    Unverified1 source· Talk
  • feature
    deterministic CLI design: A focused CLI should return the same response each time it receives the same command
    “Every time you give it a command, you want it to come back with the same response.”
    YouTube
    Unverified1 source· Talk

Related talks