Trevin Chow outlines 10 principles for agent-native CLIs, focusing on non-interactive defaults and consistent JSON output to prevent agent breakage. Drawing from Cloudflare and HeyGen, he emphasizes consistency to reduce token costs and retries.
Highlights
CLIs must run non-interactively by default, using flags like --force to avoid hanging on prompts.
Uniform JSON output to stdout and errors to stderr ensures reliable agent parsing.
Idempotent mutations with --dry-run and bounded pagination prevent unexpected side effects.
Consistent naming and output formats reduce complexity for both agents and maintainers.
Design shifts from defensive rules to compounding benefits as agents use the CLI more.