Designing CLIs for Agents, Not Humans — Pedro Lopez, Airbyte
Source
youtube.com
Author
AI Engineer
Date
Context
A CLI toolA command-line capability an agent can discover and compose through shell commands.Full definition → built for an agent should accept predictable requests and return structured results without waiting for a person to answer prompts. This talk describes that approach through JSON input and output, consistent command names and usage instructions shipped with the tool.
JSON gives requests and results an explicit data structure. Consistent commands and accompanying instructions make the interface easier for an agent to use repeatedly, while avoiding interactive prompts lets the workflow proceed unattended. The design question is how to make the tool's behavior dependable for its automated caller.
Key takeaways · AI-distilled
Airbyte's MCP serverA program that provides tools, resources and prompt templates to an MCP client; it may run on the same machine as the application or remotely.Full definition → and CLI are both thin interfaces built from OpenAPI specs over one platform, its Context and context windowContext is the information available for a generation; the context window is the capacity available to hold it.Full definition → Store, a search-optimized index of tools like Zendesk, Stripe and HubSpot.
For the MCP server, Lopez recommends keeping the tool count small with progressive discovery, calls OAuth the only realistic sign-in, notes users expect long-lived sessions, and says URL elicitation isn't ready across clients.
For the agent-facing CLI: JSON in and JSON out, consistent noun-verb commands, skills that ship with the tool, and no interactive prompts, including for AuthenticationThe check that a presented credential matches the identity it claims.Full definition →.
Terms in this piece · Glossary
CLI tool — A command-line capability an agent can discover and compose through shell commands.
MCP server — A program that provides tools, resources and prompt templates to an MCP client; it may run on the same machine as the application or remotely.
Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
Authentication — The check that a presented credential matches the identity it claims.