Vibeleaderboard
← All Intel
Intel / video

Burn Your Flags: Interactive CLIs for Agents — Mark Lummus & Navinkumar Patil, PayPal

Source
youtube.com
Author
AI Engineer
Date

Context

An interactive can ask a question that an agent never recognizes. PayPal's workshop describes a mismatch: people see a menu and use arrow keys, while some agent setups receive screen redraws and lose the current question. The failure is silent, with no error to point to.

One approach the presenters offer, a structured side channel, gives the agent another way to interact with the same . It exposes the current state and accepted inputs as machine-readable data, allowing the agent to read a question and submit an answer. The presenters argue this matters when the next question depends on a previous answer or an API response, so the entire interaction cannot be decided beforehand with command flags.

Key takeaways · AI-distilled
  • PayPal engineers show that an agent can miss an interactive terminal prompt without any error: where a human sees a question and arrow-key options, the agent sees a redraw loop and loses the interface state.
  • They argue adding more command flags only works when inputs are independent and the path is known in advance; it breaks down when later questions depend on earlier answers or live API responses.
  • Three alternatives are presented: tmux sessions to send keys and capture terminal state, IPC side channels that expose structured JSON instead of screen scraping, and that makes options and constraints explicit to the agent.
Terms in this piece · Glossary
  • Terminal — A program that shows text and accepts typed text.
  • Program — A set of instructions stored so that a computer can run it.
  • Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
  • Injection — A flaw where untrusted input is pasted into a command so that the input changes the command's meaning.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source www.youtube.com
Tools in this story
More from AI Engineer
Recommended reads