# CLI-047 Tasks

## TC-01: Success = exit code 0

- [ ] Verify transport returns 0 on success (already handled by headless runner)

## TC-02: API key missing = exit code 3

- [ ] Add try/catch in runPrintMode to detect config errors and exit(3)

## TC-03: stream-json error_code field

- [ ] Add error_code field to stream-json error result events

## TC-04: README exit code table

- [ ] Add exit code documentation to packages/agent-cli/README.md
