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
Evidence: src/docker-manager.ts defines container_name: 'awf-agent' (line 955); awf-copilot does not exist
Issue 2 — --image-tag description is inconsistent between main command and predownload
Location: src/cli.ts, line 1179 vs line 1839
Issue: The main command option says "applies to both squid and agent images", but the predownload subcommand says "applies to squid, agent, and api-proxy images". The main option description is outdated — --image-tag also applies to the api-proxy image.
Current (main): 'Container image tag (applies to both squid and agent images)'
Expected: 'Container image tag (applies to squid, agent, and api-proxy images)'
Issue 3 — --ruleset-file not documented anywhere
Location: src/cli.ts, line 1131; absent from all documentation
Issue: YAML rule file for domain allowlisting is completely undocumented
Issue: --enable-api-proxy is present in docs/usage.md but not in the cli-reference.md Options Summary table, and there are no sections for any of the related API Proxy flags
Suggestion: Add an "API Proxy" section to cli-reference.md covering all 8 flags
Issue 9 — --copilot-api-target, --openai-api-target, --anthropic-api-target not documented in user-facing docs
Location: src/cli.ts, lines 1265–1276; absent from both docs/usage.md and cli-reference.md
Issue: API target override flags have no documentation. Users who need GHEC or custom endpoints cannot discover these flags.
Suggestion: Add to both documentation files under the API Proxy Sidecar section
Issue 10 — --rate-limit-bytes-pm and --no-rate-limit not documented anywhere
Location: src/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)'
Suggestion: Add to cli-reference.md and docs/usage.md API Proxy sections
Issue 11 — --agent-timeout missing from cli-reference.md
Location: docs-site/src/content/docs/reference/cli-reference.md; present in docs/usage.md line 24 (in help text block only)
Issue: --agent-timeout is shown in usage.md's help text block but never explained, and is completely absent from cli-reference.md
Implementation: 'Maximum time in minutes for the agent command to run (default: no limit)'
Suggestion: Add to cli-reference.md summary table and Logging & Debug section
Issue 12 — predownload subcommand not documented
Location: src/cli.ts, line 1832; absent from docs/usage.md and cli-reference.md
Issue: The awf predownload subcommand 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.
Suggestion: Add a predownload subcommand section to cli-reference.md Subcommands section and mention it in docs/usage.md
📋 Recommendations
🔴 High Priority
Fix incorrect container name in cli-reference.md line 171: replace awf-copilot → awf-agent
Add --enable-api-proxy and all API Proxy flags to cli-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 doc
Document predownload subcommand in cli-reference.md and docs/usage.md
🟡 Medium Priority
Add --memory-limit to both cli-reference.md and docs/usage.md — users may hit OOM errors without knowing this exists (default: 2g)
Add --agent-timeout to cli-reference.md — present in usage.md help text but unexplained
Add --enable-dlp to user-facing docs with a security explanation
Add --dns-over-https to both docs with usage examples
Add --ruleset-file to both docs with schema example
Fix --image-tag description in src/cli.ts line 1179: "both squid and agent" → "squid, agent, and api-proxy"
🟢 Low Priority
Add --enable-dind with prominent security warning to both docs
Document --rate-limit-bytes-pm and --no-rate-limit in the API Proxy sections
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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