Cross Domain · specification

CLI Agent Spec

CLI Agent Spec is a behavioral contract for command-line tools invoked by AI agents rather than humans. It documents 74 failure modes an agent hits when calling a CLI built for a terminal — pagers that wait for a keypress, exit 1 that could mean nothing happened or half happened, silent serializer crashes — and answers them with 158 requirements in three implementation tiers, plus five JSON Schema type definitions. The three load-bearing contracts are a reserved 0–13 exit-code table where every code declares retryable and side_effects, a {ok, data, error, warnings, meta} response envelope, and a tool manifest --output json call that replaces iterative --help discovery. MIT, v1.6, one maintainer.

2026First published
Yes — JSON SchemaMachine-readable schema · open
0providers in the catalog

Also known as CLI Agent Specification.

Providers that carry CLI Agent Spec 0

No provider in the catalog carries this standard as a tag yet. That is a statement about the catalog's tagging, not about adoption: a provider that implements CLI Agent Spec and says so in its APIs.json profile appears here on the next build. Add or correct a listing.

Read from the API Evangelist standards directory, facts verified 2026-08-21. Provider links come from the catalog's own identity tags and are rebuilt nightly. If this page is wrong about a standard or a provider, say so.