What problem does it solve?
Command-line tools often expose textual output that is hard for agents to interpret and for humans to verify. This guide defines patterns for agent-first CLIs that always emit JSON envelopes, expose discoverable command trees via a root discovery, and protect context in outputs to maintain useful, concise results.
Core Features & Use Cases
- JSON-only responses for all commands, enabling reliable agent parsing and orchestration.
- HATEOAS-driven, self-documenting command trees so agents and humans can discover next steps without external docs.
- Context-protecting output and streaming capabilities for long-running operations, with consistent error envelopes that include actionable fixes.
- Use Case: Build a new CLI tool or extend an existing one to support agent-driven workflows and predictable integration with automation.
Quick Start
Install the CLI and run the root command to see the full command tree and example JSON envelopes.