[CLI Flag Review] CLI Flag Consistency Report — 2026-03-18 #1353
Closed
Replies: 1 comment
-
|
This discussion was automatically closed because it expired on 2026-03-25T14:34:43.196Z.
|
Beta Was this translation helpful? Give feedback.
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.
-
Weekly automated analysis comparing
src/cli.tsagainst all documentation files.📊 Summary
src/cli.ts(main command)predownload,logs,logs stats,logs summary)cli-reference.mddocs/usage.md✅ Flags Coverage Status (Main Command)
cli.tsdocs/usage.mdcli-reference.mdREADME.md-d, --allow-domains--allow-domains-file--ruleset-file--block-domains--block-domains-file--ssl-bump--allow-urls-b, --build-local--agent-image--image-registry--image-tag--skip-pull-e, --env--env-all-v, --mount--container-workdir--memory-limit--tty--dns-servers--dns-over-https--enable-host-access--allow-host-ports--enable-dind--enable-dlp--enable-api-proxy--copilot-api-target--openai-api-target--anthropic-api-target--rate-limit-rpm--rate-limit-rph--rate-limit-bytes-pm--no-rate-limit--log-level-k, --keep-containers--agent-timeout--work-dir--proxy-logs-dirSubcommand Coverage
cli.tsdocs/usage.mdcli-reference.mdawf predownloadawf logsawf logs statsawf logs summaryIssue 1 —
--keep-containerscleanup note uses wrong container namedocs-site/src/content/docs/reference/cli-reference.md, line 171awf-copilotdocker stop awf-squid awf-copilot && docker network rm awf-netdocker stop awf-squid awf-agent && docker network rm awf-netsrc/docker-manager.tsdefinescontainer_name: 'awf-agent'(line 955);awf-copilotdoes not existIssue 2 —
--image-tagdescription is inconsistent between main command andpredownloadsrc/cli.ts, line 1179 vs line 1839predownloadsubcommand says "applies to squid, agent, and api-proxy images". The main option description is outdated —--image-tagalso applies to the api-proxy image.'Container image tag (applies to both squid and agent images)''Container image tag (applies to squid, agent, and api-proxy images)'Issue 3 —
--ruleset-filenot documented anywheresrc/cli.ts, line 1131; absent from all documentation'YAML rule file for domain allowlisting (repeatable). Schema: version: 1, rules: [{domain, subdomains}]'cli-reference.mdsummary table anddocs/usage.mdDomain Whitelisting sectionIssue 4 —
--memory-limitnot documented anywheresrc/cli.ts, line 1213; absent from all documentation'Memory limit for the agent container (e.g., 1g, 2g, 4g, 512m). Default: 2g', default'2g'cli-reference.mdsummary table under Container Configuration, and todocs/usage.mdIssue 5 —
--dns-over-httpsnot documented anywheresrc/cli.ts, line 1231; absent from all documentationcli-reference.mdanddocs/usage.mdNetwork & Security sectionsIssue 6 —
--enable-dindnot documented anywheresrc/cli.ts, line 1246; absent from all documentation'Enable Docker-in-Docker by exposing host Docker socket. WARNING: allows firewall bypass via docker run'cli-reference.mdanddocs/usage.mdwith a security cautionIssue 7 —
--enable-dlpnot documented in user-facing docssrc/cli.ts, line 1252; absent fromdocs/usage.mdandcli-reference.mdAGENTS.mdtechnical notes)'Enable DLP (Data Loss Prevention) scanning to block credential exfiltration in outbound request URLs.'cli-reference.mdsummary table and add adocs/usage.mdsectionIssue 8 —
--enable-api-proxymissing fromcli-reference.mdsummary tabledocs-site/src/content/docs/reference/cli-reference.md, lines 20-46--enable-api-proxyis present indocs/usage.mdbut not in thecli-reference.mdOptions Summary table, and there are no sections for any of the related API Proxy flags--enable-api-proxy,--copilot-api-target,--openai-api-target,--anthropic-api-target,--rate-limit-rpm,--rate-limit-rph,--rate-limit-bytes-pm,--no-rate-limitcli-reference.mdcovering all 8 flagsIssue 9 —
--copilot-api-target,--openai-api-target,--anthropic-api-targetnot documented in user-facing docssrc/cli.ts, lines 1265–1276; absent from bothdocs/usage.mdandcli-reference.mdIssue 10 —
--rate-limit-bytes-pmand--no-rate-limitnot documented anywheresrc/cli.ts, lines 1285-1292; absent from all documentation--rate-limit-bytes-pm:'Max request bytes per minute per provider (requires --enable-api-proxy)'--no-rate-limit:'Disable rate limiting in the API proxy (requires --enable-api-proxy)'cli-reference.mdanddocs/usage.mdAPI Proxy sectionsIssue 11 —
--agent-timeoutmissing fromcli-reference.mddocs-site/src/content/docs/reference/cli-reference.md; present indocs/usage.mdline 24 (in help text block only)--agent-timeoutis shown in usage.md's help text block but never explained, and is completely absent fromcli-reference.md'Maximum time in minutes for the agent command to run (default: no limit)'cli-reference.mdsummary table and Logging & Debug sectionIssue 12 —
predownloadsubcommand not documentedsrc/cli.ts, line 1832; absent fromdocs/usage.mdandcli-reference.mdawf predownloadsubcommand for pre-pulling Docker images is completely absent from all user-facing docs. Its options (--image-registry,--image-tag,--agent-image,--enable-api-proxy) are only described indirectly via the main command flags.predownloadsubcommand section tocli-reference.mdSubcommands section and mention it indocs/usage.md📋 Recommendations
🔴 High Priority
cli-reference.mdline 171: replaceawf-copilot→awf-agent--enable-api-proxyand all API Proxy flags tocli-reference.md— these flags (--enable-api-proxy,--copilot-api-target,--openai-api-target,--anthropic-api-target,--rate-limit-rpm,--rate-limit-rph,--rate-limit-bytes-pm,--no-rate-limit) are entirely missing from the reference docpredownloadsubcommand incli-reference.mdanddocs/usage.md🟡 Medium Priority
--memory-limitto bothcli-reference.mdanddocs/usage.md— users may hit OOM errors without knowing this exists (default:2g)--agent-timeouttocli-reference.md— present in usage.md help text but unexplained--enable-dlpto user-facing docs with a security explanation--dns-over-httpsto both docs with usage examples--ruleset-fileto both docs with schema example--image-tagdescription insrc/cli.tsline 1179: "both squid and agent" → "squid, agent, and api-proxy"🟢 Low Priority
--enable-dindwith prominent security warning to both docs--rate-limit-bytes-pmand--no-rate-limitin the API Proxy sections📁 Files Analyzed
src/cli.tsdocs/usage.mddocs-site/src/content/docs/reference/cli-reference.mdREADME.mdAGENTS.mdCLAUDE.mdBeta Was this translation helpful? Give feedback.
All reactions