Learning how to learn agent first
Dynamic worklow
stdin / stdout / stderr
exit code
cmd list
--json
YAML
yml
scrpits
TOML
TTY
npm
bun
Homebrew
--version
Turns out a good CLI isn't just for humans.
Exit codes, stderr and --json are how an AI agent figures out what actually broke.
A non-zero exit and a clear error beat a pretty spinner every time: the bot reads it, fixes it, retries. Build for ๐ค and humans win too.