AI Engineer World's Fair 2026

Designing CLIs for Agents, Not Humans — Pedro Lopez, Airbyte

Loading slides…

Read the talk

Designing CLIs for Agents, Not Humans

Selected presentation frame from Designing CLIs for Agents, Not Humans — Pedro Lopez, Airbyte at 125 secondsOpen full source frame
A platform diagram groups SDK, UI, MCP, and CLI around a shared center.

Pedro Lopez explains how Airbyte exposes the same data platform through MCP and a CLI—and why discovery, authentication, structured output and client limits determine which interface works for an agent.

From a talk by Pedro Lopez

At a glance

Ideas worth remembering

  • Keep interfaces thin over shared APIs, and use OpenAPI specifications to help them follow a frequently changing platform.

  • Progressive discovery keeps initial context small: MCP retrieves connector schemas on demand, while CLI skills load detailed command references when needed.

  • MCP authentication must fit real client UIs and long-lived session expectations; protocol features such as URL elicitation still depend on client support.

  • An agent-oriented CLI uses structured input and output, predictable command names, discoverable skills and noninteractive configuration.

  • MCP makes conversational access convenient and updates centrally; a CLI supports longer tasks and Unix output processing, while adding package-versioning and runaway-loop concerns.

One data platform, several ways to reach it

Company data lives across tools: support tickets in Zendesk, payments in Stripe, contacts elsewhere. Airbyte’s move from data movement into agent tooling builds on connecting those systems. In this talk, Pedro Lopez, a software engineer at Airbyte, introduces the Context Store: a search-optimized index between those sources and an agent, designed to let the agent retrieve and combine information across them.

Selected presentation frame from Designing CLIs for Agents, Not Humans — Pedro Lopez, Airbyte at 86 secondsOpen full source frame
A Context Store sits between an agent and several connected services.

An SDK serves developers building their own agents; a web UI provides direct access. MCP and the CLI bring the same platform into existing agent environments such as ChatGPT and Claude. Each interface needs to support three kinds of work:

  • Manage resources. Work with organizations, workspaces and connectors.
  • Connect services safely. Authenticate third-party systems without exposing their credentials to the agent.
  • Ask and act. Search the Context Store, read records and write changes to connected systems.

MCP and the CLI remain thin interfaces over shared platform APIs. They accept a request, call the platform and format the result. That separation matters when the platform changes more than ten times a day: duplicating its behavior in each interface would create several implementations to keep synchronized. OpenAPI specifications supply the API source of truth, and much of the interface code builds on those specifications.

0:120:42
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

0:12 · section reference included

From available connectors to five paying customers with tickets

MCP offers a convenient entry point for someone who wants company data inside a chat application. Airbyte demonstrates its ChatGPT listing, while installation outside a marketplace can use a hosted MCP URL. The user connects a service to an existing conversational interface rather than setting up a command-line workflow.

The demonstration starts with a small discovery question: which connectors are available? The response identifies four connectors in the workspace. The next request is more useful: “Show five paying customers with Zendesk support tickets.” Answering it requires information from two systems. The agent searches the Context Store, combines Zendesk support information with Stripe payment information, and returns five people with open support tickets.

The observable change is from a list of available data sources to a cross-system customer answer. Connector discovery establishes what can be queried; retrieval supplies the relevant records; cross-referencing combines the payment and support conditions. The demonstration establishes that result, but does not specify the identity-matching rule used to associate records across Zendesk and Stripe.

3:564:26
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

3:56 · section reference included

Describe capabilities before executing them

A connector can expose many entities and actions. Multiplying those by all available connectors could produce a large catalog of MCP tools, with a description for every operation. Airbyte instead keeps the connector execution interface to two main tools:

  • Describe. Retrieve the connector schema so the agent can learn how to query it.
  • Execute. Perform an operation, including reading, writing or deleting records.
Selected presentation frame from Designing CLIs for Agents, Not Humans — Pedro Lopez, Airbyte at 376 secondsOpen full source frame
A slide presents describe_connector and execute as two MCP tools.

The choice moves detailed knowledge into progressive discovery. The agent learns the relevant connector’s capabilities when it needs them, rather than receiving every entity and action in its initial tool context. Lopez reports that keeping descriptions narrow helped MCP performance; the talk gives a design observation rather than a quantified comparison.

Where does the operation-specific information enter the agent’s context? The diagram shows the extra discovery step between a compact tool interface and execution. The schema carries the detail that would otherwise have expanded the initial tool catalog.

Discover a connector’s schema, then execute

AgentStarts with a small connector execution tool interface.
Describe connectorReturns the schema needed to understand queries and capabilities.
Agent with relevant schemaLoads connector-specific information through progressive discovery.
Execute operationSupports reading, writing and deleting records.
Two general tools expose connector-specific capabilities on demand, keeping the initial descriptions small.
Read the diagram as text
  • Agent. Starts with a small connector execution tool interface.
  • Describe connector. Returns the schema needed to understand queries and capabilities.
  • Agent with relevant schema. Loads connector-specific information through progressive discovery.
  • Execute operation. Supports reading, writing and deleting records.
  • Agent → Describe connector: Request connector schema.
  • Describe connector → Agent with relevant schema: Return capabilities on demand.
  • Agent with relevant schema → Execute operation: Use the discovered operation schema.
5:265:56
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

5:26 · section reference included

Authentication has two jobs—and client support decides the flow

First, the user must authenticate to Airbyte’s MCP server. In the demonstrated OAuth flow, clicking Connect opens an Airbyte sign-in, the user accepts the requested privileges, and the connected services become available. Other authentication mechanisms are technically possible, but the client’s installation UI may make them impractical. The Anthropic custom-connector registration shown in the talk provides no place to enter a bearer token, so OAuth is the usable path there.

Session duration is part of that experience. Users expect MCP access to behave like a mobile app: available when needed, without repeated sign-ins. Airbyte therefore keeps long-lived offline sessions separately from web-app sessions, with their own lifecycles. Reusing a web login’s lifecycle would miss the expectation that the agent connection stays available independently.

Second, the user must authorize the third-party service itself. For a request to connect HubSpot, Airbyte generates a link. Opening it displays a widget where the user selects entities to connect, then redirects to HubSpot’s OAuth flow. This gives the user a place to complete sensitive authorization outside the agent’s conversation.

MCP elicitation offers a protocol mechanism for requesting information from the user. Form-mode elicitation is unsuitable for sensitive credentials; URL-mode elicitation is closer to Airbyte’s link-based flow. Yet specification support does not guarantee client support. In the recorded Claude Desktop example, URL-mode elicitation is unsupported, so Airbyte uses its own link flow. That limitation applies to the demonstrated client behavior, rather than establishing that URL elicitation cannot work in other clients or later releases.

6:266:56
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

6:26 · section reference included

The same customer question, through JSON and predictable commands

The CLI demonstration repeats the customer question. This time, the agent loads a skill describing the CLI, uses commands to discover the available connectors, queries the Context Store and aggregates the data. It returns the same five users. The data platform and task remain the same; the route into the platform changes.

Designing that route for an agent changes what counts as convenient. Airbyte accepts JSON input and returns JSON output. For complicated query inputs, a structured object lets the agent express the request directly instead of guessing how to distribute it across many flags. On the output side, JSON preserves structure that another program can select and transform.

That output format makes Unix composition useful. A response can flow through a pipe into jq, which selects fields or trims the result. A long response therefore does not have to enter the agent’s context in full: another program can reduce it first. This is a practical advantage of the CLI environment, where the agent can work with both the data interface and the surrounding operating-system tools.

Command consistency reduces another kind of guesswork. Airbyte uses a noun followed by a verb: connectors list, connectors create, and workspace list. Once the agent learns the pattern for one resource, it has a useful expectation for another. The goal is to make the right command “dead obvious” without requiring repeated documentation searches.

Repeated agent mistakes are also design feedback. If agents keep calling the same nonexistent command, consider making that command the supported interface. A recurring error may reveal that the naming scheme is less obvious than its designer thought. The proposed response is to improve the command vocabulary so agents can more easily find the intended operation.

9:5510:25
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

9:55 · section reference included

Ship discovery instructions, and never wait for a prompt

Installing a CLI does not, by itself, tell an agent that the tool exists or when to use it. Airbyte ships a skill with the CLI to supply that missing discovery layer. Its description makes connector-related requests a reason to load the skill and invoke the tool; its instructions help the agent use the CLI effectively.

Selected presentation frame from Designing CLIs for Agents, Not Humans — Pedro Lopez, Airbyte at 848 secondsOpen full source frame
A slide about shipping CLI skills is paired with a skill file shown on screen.

The skill needs the same restraint as the MCP tool catalog. A large main skill would consume context before the agent knows which details matter. Airbyte separates detailed command information into reference files and lets the main skill point to them. Both interfaces therefore use progressive discovery: expose enough to find the capability, then load the detail needed to use it.

Interactive prompts introduce a different failure mode. A human-oriented CLI may stop to ask for an answer, but an agent invocation cannot assume a person is present to type one. The process can simply get stuck. Inputs must be supplied through flags or other noninteractive configuration; credentials can be prepared in environment variables or configuration files before invocation. JSON handles complex query data, while these mechanisms handle setup that should not interrupt execution.

This requirement extends beyond authentication. Any command that pauses to ask a human a question can block the agent’s work. Preparing configuration out of band lets the command run with the information it needs already available.

13:2513:55
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

13:25 · section reference included

Choose the execution environment as well as the interface

The closing comparison adds operational constraints to the design choices. MCP features vary across clients, and providers impose limits beyond the protocol itself. Lopez cites a two-kilobyte limit on server and tool-call descriptions in Claude, along with limits on tool execution duration. These are reported constraints from the environment discussed in the recording, not universal MCP limits. Execution deadlines make long-running processes harder to fit into that interface.

A hosted MCP server has an update advantage: the provider can update the server centrally. A CLI package installed elsewhere needs versioning and distribution, and keeping those installations current takes work. The CLI’s freedom from the same client-imposed limits also has a cost. Repeated calls can go wrong and leave the agent spinning in a loop; fewer external restrictions do not automatically produce better execution.

The useful division follows the task and user:

  • MCP for convenient conversational access. Nontechnical users can connect data, prototype quickly, build one-off reports and work within the MCP ecosystem.
  • CLI for longer work and large outputs. Technical users can run longer tasks and use Unix tools to redirect results to files, inspect the beginning with head, inspect the end with tail, or transform structured output through pipes.
Selected presentation frame from Designing CLIs for Agents, Not Humans — Pedro Lopez, Airbyte at 1068 secondsOpen full source frame
A comparison slide lists technical users, longer-running tasks, and Unix tools under CLI.

The customer example shows why both can belong in one product: each reaches the same Context Store and returns the same five customers. The decision turns on how the agent discovers capabilities, how the user authenticates, where execution happens, and what must happen to the output afterward.

15:5416:24
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

15:54 · section reference included

Transcript download
Full transcript

Loading transcript…