2026-10-271 min
CLIs an agent can drive
Data on stdout, logs on stderr, failures as exit codes
Agents are good at shells. A CLI built for them keeps a contract: data on stdout, logs on stderr, and failures stated as exit codes a script can branch on.
agtcli
agent-cli-scaffold (opens in a new tab), or agtcli, is a runtime and scaffold for CLIs agents can drive: structured output, typed exit codes, credential handling, request guards, and contract tests.
har2cli
har2cli (opens in a new tab) turns browser network captures into redacted HTTP contracts, tests a selected GET request, and hands it to agtcli to generate a CLI. Credentials stay separate from exported contracts, and authentication probes have request limits.