[CLI Flag Review] CLI Flag Consistency Report — Weekly Review #1425
Closed
Replies: 1 comment
-
|
This discussion was automatically closed because it expired on 2026-04-01T14:28:33.374Z.
|
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.
-
📊 Summary
src/cli.ts(main command)predownload,logs,logs stats,logs summary,logs audit)✅ Flags Status
src/cli.tsdocs/usage.mdcli-reference.mdREADME.md-d, --allow-domains-dalias)--allow-domains-file--ruleset-file--block-domains--block-domains-file--ssl-bump--allow-urls-b, --build-local-balias)--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--openai-api-base-path--anthropic-api-target--anthropic-api-base-path--rate-limit-rpm--rate-limit-rph--rate-limit-bytes-pm--no-rate-limit--log-level-k, --keep-containers-kalias)--agent-timeout--work-dir--proxy-logs-dir--audit-dirSubcommands Status
src/cli.tsdocs/usage.mdcli-reference.mdpredownloadlogslogs statslogs summarylogs audit🔴 High Priority — Completely Undocumented Flags
1.
--ruleset-file (path)— No documentation anywheresrc/cli.ts:1132–1136docs/usage.mdoptions block andcli-reference.mdoptions table.2.
--memory-limit (limit)— No documentation anywheresrc/cli.ts:1214–12186gand description "Memory limit for the agent container (e.g., 4g, 6g, 8g, 512m). Default: 6g" has no documentation.3.
--dns-over-https [resolver-url]— No documentation anywheresrc/cli.ts:1231–1234[resolver-url].--dns-serverswith a note about the default resolver URL (`(dns.google/redacted)4.
--enable-dind— No user-facing docs (mentioned only in AGENTS.md)src/cli.ts:1246–1251AGENTS.mdas architectural background.docs/usage.mdand the cli-reference table. This flag is security-sensitive and users should understand the risks.5.
--enable-dlp— No user-facing docs (mentioned only in AGENTS.md)src/cli.ts:1252–1257AGENTS.md.docs/usage.mdandcli-reference.md. Consider a dedicated section explaining what patterns are scanned.6.
--copilot-api-target,--openai-api-target,--anthropic-api-target— No documentationsrc/cli.ts:1266–1281docs/usage.mdunder the API Proxy section, and add tocli-reference.mdoptions table. Also reference fromdocs/enterprise-configuration.md.7.
--openai-api-base-path,--anthropic-api-base-path— No documentationsrc/cli.ts:1274–1285/serving-endpoints) are completely undocumented.8.
--rate-limit-bytes-pm (n)— No documentationsrc/cli.ts:1294–1297--rate-limit-rpmand--rate-limit-rphappear indocs/usage.mdexamples, the bytes-per-minute rate limit flag is entirely absent.docs/usage.mdandcli-reference.mdoptions table.9.
--no-rate-limit— No documentationsrc/cli.ts:1298–130110.
--audit-dir (path)— No documentationsrc/cli.ts:1327–1330docs/usage.mdandcli-reference.md, especially important given it works withlogs audit.11.
predownloadsubcommand — No documentationsrc/cli.ts:1850–1866predownloadsubcommand (pre-pull container images for offline use) is not mentioned in any documentation.docs/usage.mdand an entry incli-reference.mdunder Subcommands. Include its flags:--image-registry,--image-tag,--agent-image,--enable-api-proxy.12.
logs auditsubcommand — No documentationsrc/cli.ts:1953–1983awf logs auditsubcommand (firewall audit with policy rule matching) is absent from all documentation.docs/usage.mdandcli-reference.mdalongside the otherlogssubcommands. Document its options:--format,--source,--rule,--domain,--decision.🟡 Medium Priority — Incomplete Documentation
13.
--rate-limit-rpmand--rate-limit-rph— Examples-only, no options table entrydocs/usage.md:454–455(usage example only)docs/usage.mdoptions block andcli-reference.mdoptions table.--enable-api-proxy.14.
--agent-timeout (minutes)— Missing fromcli-reference.mddocs/usage.md:24(present);cli-reference.mdoptions table (absent)--agent-timeoutappears indocs/usage.md's help-block reproduction but has no entry in thecli-reference.mdOptions Summary table or any detailed subsection.cli-reference.mdOptions Summary table and a### --agent-timeoutsubsection.🟠 Naming / Accuracy Errors
15. Wrong container name in
--keep-containersnote (cli-reference.md)docs-site/src/content/docs/reference/cli-reference.md:171docker stop awf-squid awf-copilot && docker network rm awf-netbut the agent container is namedawf-agent, notawf-copilot.docker stop awf-squid awf-agent && docker network rm awf-netdocker stop awf-squid awf-copilot && docker network rm awf-net16. Short aliases
-dand-bmissing fromcli-reference.mdoptions tabledocs-site/src/content/docs/reference/cli-reference.mdOptions Summary table--allow-domainsand--build-localwithout their short aliases (-dand-brespectively). The table correctly includes-eand-vbut is inconsistent about other aliases.\-d, --allow-domains (domains)`and`-b, --build-local``.17.
--image-registryparameter name inconsistencycli-reference.mdOptions Summary rowcli-reference.mdshows--image-registry (url)butsrc/cli.tsuses(registry)as the metavar. This is a minor cosmetic inconsistency.--image-registry (registry)(as in cli.ts) for consistency.📋 Recommendations
🔴 High Priority (Fix Soon)
cli-reference.md:171—awf-copilot→awf-agent. This is an actionable error that will break user workflows.--ruleset-file— Policy-as-code feature for domain allowlisting; important for enterprise users.predownloadsubcommand — Needed by users in air-gapped or pre-warmed environments.logs auditsubcommand — Completes the logs subcommand family and pairs with--audit-dir.🟡 Medium Priority (Next Docs Pass)
--copilot-api-target,--openai-api-target,--openai-api-base-path,--anthropic-api-target,--anthropic-api-base-path) — Critical for GHEC/enterprise configurations.--rate-limit-rpm,--rate-limit-rph,--rate-limit-bytes-pm,--no-rate-limitshould all appear in the options summary, not just in examples.--audit-dir— Pairs withlogs auditfor audit workflows.--memory-limit— Users hitting OOM errors would not know this is tunable.--agent-timeouttocli-reference.mdtable.🟢 Low Priority (Polish)
--dns-over-https— Niche but useful for restricted environments.--enable-dindand--enable-dlp— Even a brief mention with security caveats is better than silence.cli-reference.md— Add-dfor--allow-domainsand-bfor--build-localto the options table.--image-registrymetavar — Minor: change(url)→(registry).📁 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