[CLI Flag Review] Weekly Audit — 2026-08-09 #7145
Closed
Replies: 1 comment
|
This discussion was automatically closed because it expired on 2026-08-16T11:15:53.280Z.
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
📊 Summary
src/cli.ts/src/cli-options.tsroot program): 68 top-level flags, pluslogs/logs stats/logs summary/logs audit/predownloadsubcommands with their own options.docs/usage.md: 53/68 (15 missing)docs-site/.../cli-reference.md: 49/68 (19 missing)✅ Flags Status (key differences only — full flag list checked, showing only rows with gaps in the two full-reference docs)
--container-runtime--no-network-isolation--legacy-security--security-mode(deprecated)--no-enable-api-proxy(removed)--openai-api-auth-header--anthropic-api-auth-header--vertex-api-target--vertex-api-base-path--max-model-multiplier--max-model-multiplier-cap--max-permission-denied--max-cache-misses--enable-token-steering--network-isolation--topology-attach--docker-host-path-prefix--anthropic-auto-cache--anthropic-cache-tail-ttl--reflectAll other flags (allow-domains, block-domains, ssl-bump, build-local, image-, env, mount, memory-limit, tty, dns-servers/dns-over-https, upstream-proxy, enable-host-access, allow-host--ports, enable-dind, enable-dlp, enable-api-proxy(deprecated), copilot/openai/anthropic/gemini api-target/base-path, rate-limit-, difc-proxy-*, log-level, keep-containers, agent-timeout, work-dir, proxy-logs-dir, audit-dir, session-state-dir, diagnostic-logs) are documented consistently in both
usage.mdandcli-reference.md.--container-runtimecompletely undocumented in reference docs (High)src/cli-options.ts:172-178defines this flag (gvisor/sbx isolation runtimes) but it appears in neitherdocs/usage.mdnordocs-site/.../cli-reference.md.--legacy-securityand--no-network-isolationundocumented (High)src/cli-options.ts:250-253, 281-287. These are core security-mode toggles (network-isolation is "enabled by default"), yet neither is mentioned in usage.md or cli-reference.md, even though--network-isolationitself is documented in usage.md.--legacy-security/--no-network-isolationopt out, since this affects the security posture readers rely on.API proxy advanced flags undocumented (Medium)
--openai-api-auth-header,--anthropic-api-auth-header,--vertex-api-target,--vertex-api-base-path,--max-model-multiplier,--max-model-multiplier-cap,--max-permission-denied,--max-cache-misses(cli-options.ts:334-415) are all missing from both usage.md and cli-reference.md, despite sibling flags (e.g.--anthropic-auto-cache,--rate-limit-rpm) being documented in the same "API Proxy" section.--openai-api-target/--rate-limit-rpm.--enable-token-steeringdocumented in cli-reference.md but missing from usage.md (Medium)--network-isolation,--topology-attach,--docker-host-path-prefix,--anthropic-auto-cache,--anthropic-cache-tail-ttldocumented in usage.md but missing from cli-reference.md (Medium)--reflectflag only in README.md, not in either full CLI reference (Low)src/cli-options.ts:475-479defines--reflect(debug flag to query the API proxy/reflectendpoint). It's mentioned in README.md but absent from both usage.md and cli-reference.md.📋 Recommendations
--container-runtime,--legacy-security, and--no-network-isolation— these affect the default security posture and isolation guarantees, and their absence could mislead users about available hardening options.--reflectto the two full reference docs for completeness with README.md.Deprecated/removed flags (
--security-mode,--no-enable-api-proxy,--enable-api-proxy) are correctly hidden or marked deprecated in the CLI help and appropriately omitted or flagged in docs — no action needed there.README.md, AGENTS.md, and CLAUDE.md intentionally document only a curated subset of flags for quick-start purposes; their large "missing" counts reflect this scope, not genuine drift, and are not flagged as issues.
📁 Files Analyzed
src/cli.ts/src/cli-options.ts(implementation, root program options)src/commands/subcommands.ts(logs, logs stats, logs summary, logs audit, predownload)docs/usage.mddocs-site/src/content/docs/reference/cli-reference.mdREADME.mdAGENTS.mdCLAUDE.mdAll reactions