10 universal patterns for building CLI tools that AI agents can use
reliably: non-interactive, --json, --dry-run, idempotent, lazy auth,
progressive help, and more. Includes a bash scaffold template, Python
API client reference, advanced edge-case patterns, MCP-vs-CLI decision
framework, and an improvement cycle for iterating on shipped tools.
Principles grounded in real failures from building 15+ agent-facing
CLIs across multiple API services.
Signed-off-by: Jasper <magnus@groktop.us>