You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Output for scripts and agents: empty stdout with exit 0, --version not machine-readable, agent detection changes nothing #105
Three things that break scripts and agents parsing cf's output:
Empty stdout with exit 0.cf zero-trust access applications cas list prints nothing (0 bytes) and exits 0. Other lists print JSON ([] when empty), so cf ... | jq fails only on this one.
cf --version isn't machine-readable. It prints 🍊☁️ cf · v1.0.0-beta.5 plus a box rule. There's no bare semver, which scripts need to pin or compare versions (--version --quiet, or cf version --json).
Agent detection doesn't change the output.CLAUDECODE=1 cf d1 list | wc -c gives 4,293 bytes, byte-identical to running without it, still pretty-printed. The launch post describes condensed output for agents.
Expected:
every list prints JSON, [] when empty;
a bare version output;
compact JSON when an agent is detected, or remove the claim.
cf --version: this now prints only the bare version on stdout, with the banner on stderr, so it's safe to use in scripts.
Compact output for agents: cf currently pretty-prints JSON whether or not it detects an agent. Agent detection changes other things, such as the help text. Changing the JSON format would be a change to the product, which we track at Compact JSON output when cf detects an AI agent #765, so please follow and upvote it there.
Activity
workers-devprod commentedon Nov 24, 2026
Thanks for the detailed report!
cf --version: this now prints only the bare version on stdout, with the banner on stderr, so it's safe to use in scripts.