GitHub

One command, output for whoever reads it

readerly tells a person at a terminal from CI, a coding agent and a program that asked for JSON, and gives each the output and the prompts it can use.

Add readerly to this CLI and send each command's output through createOut, following https://readerly.loadsheet.dev/guide.
Replace console output with out.log, out.error and out.warn, prompts with out.confirm, and the exit with return out.end().
Run each command plain, with AI_AGENT=claude-code, with CI=true and with --format json, and check that each output reads right.
text

acme check

✖ 2 errors, 1 warning in 212 files (0.8s)

error ACME001  src/app.ts:14:3  Route handler reads process.env at module scope
├▶ why: The value is fixed at build time
╰▶ fix: Read it inside the handler
error ACME004  src/db.ts:3:1  Top-level await in a server entry
╰▶ fix: Move the call into the plugin setup
warn  ACME010  vite.config.ts:8:5  Alias shadows a workspace package
? Apply 2 safe fixes? (y/N) 

reader terminalbecause stdout.isTTY

readerly finds a coding agent by AI_AGENT or by a variable its harness sets, and gives it a short report that fits a character budget. See every agent and marker.

Claude Code

CLAUDECODE

Codex

CODEX_THREAD_ID

Cursor

CURSOR_AGENT

Gemini CLI

GEMINI_CLI

GitHub Copilot

AI_AGENT=github_copilot

OpenCode

OPENCODE

Cline

CLINE_ACTIVE

Amp

AMP_CURRENT_THREAD_ID

Windsurf

WINDSURF_CASCADE_TERMINAL

Replit

REPL_ID