Answer: To configure a deep scan, use the options with `--mode deep`: `--workers N`, `--subagents N`, `--stop-after-no-new N`, `--max-discovery-runs N`, and `--max-time MINUTES`. You can also save these limits in a project configuration file under `scan` with `mode: deep`. Status: Confirmed Entry: tool/codex/commands-and-shortcuts/configure-deep-scan Revision: 2 Digest: sha256:83c97e17d0b90dbc (changes whenever the content changes) Timeline: Created: 2026-11-13T03:53:12Z Last changed: 2026-11-20T13:41:45Z (max-time default and maximum: 5,760 minutes → 5,760) Last verified: 2026-11-20T13:41:45Z Next check: 2026-11-21T13:41:45Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Unit | Source | As of mode flag | --mode deep | | [1] | 2026-11-20 workers default | 4 | | [1] | 2026-11-20 subagents default | 3 | | [1] | 2026-11-20 stop-after-no-new default | 4 | | [1] | 2026-11-20 max-discovery-runs default | 40 | | [1] | 2026-11-20 max-time default and maximum | 5,760 | minutes | [1] | 2026-11-20 stop_after_consecutive_errors default | 3 | | [1] | 2026-11-20 Sources: [1] OpenAI. "Codex Security CLI reference". https://learn.chatgpt.com/docs/security/cli/reference.md Role: primary. Accessed: 2026-11-20T13:41:45Z Quote: "Use these options with `--mode deep` to control discovery:" (Supports: mode flag) Quote: "Maximum standard reviews running at once. Defaults to `4`." (Supports: workers default) Quote: "Subagents available to each worker. Defaults to `3`." (Supports: subagents default) Quote: "Stop after `N` consecutive completed worker scans find no new issues. Defaults to `4`." (Supports: stop-after-no-new default) Quote: "Maximum reviews started, including failed attempts. Defaults to `40`." (Supports: max-discovery-runs default) Quote: "The default and maximum are 5,760 minutes." (Supports: max-time default and maximum) Quote: "`scan.deep.stop_after_consecutive_errors` to change how many consecutive worker errors stop discovery. The default is `3`." (Supports: stop_after_consecutive_errors default) Snapshot SHA-256: 7918173e808c58c5324c5881fc074e87b7b9ec1476aa9f129f0bb5d32b9c5a2b (captured 2026-11-19T13:32:01Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-19T13:32:01Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:41:45Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:41:45Z Last attempt: 2026-11-20T13:41:45Z Notes and limitations: Extracted automatically from a single official source (section "Configure deep scans"). Related: https://latestn.com/tool/codex/commands-and-shortcuts/create-custom-prompt How do I create a custom prompt in Codex? https://latestn.com/tool/codex/commands-and-shortcuts/custom-prompt-metadata-arguments How do I add metadata and arguments to a Codex custom prompt? https://latestn.com/tool/codex/commands-and-shortcuts/exec-non-interactive How do I run Codex non-interactively with codex exec? https://latestn.com/tool/codex/commands-and-shortcuts/cli-one-off-overrides How do I override Codex configuration options for a single run from the CLI? https://latestn.com/tool/codex/commands-and-shortcuts/codex-cli-image-flag How do I pass one or more image files to Codex from the command line? https://latestn.com/tool/codex/commands-and-shortcuts/codex-ide-extension-commands What commands and default key bindings does the Codex IDE extension provide? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T13:41:45Z | changed | max-time default and maximum: 5,760 minutes → 5,760 | [1] 2026-11-13T03:53:12Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/commands-and-shortcuts/configure-deep-scan/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/codex/commands-and-shortcuts/configure-deep-scan POST: https://latestn.com/dispute/tool/codex/commands-and-shortcuts/configure-deep-scan with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/commands-and-shortcuts/configure-deep-scan?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure a deep scan with the Codex Security CLI? Revision 2, last verified 2026-11-20T13:41:45Z. https://latestn.com/tool/codex/commands-and-shortcuts/configure-deep-scan (accessed 2026-11-21T10:06:23Z). @misc{LatestN_tool_codex_commands_and_shortcuts_configure_deep_scan_r2, title = {How do I configure a deep scan with the Codex Security CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/commands-and-shortcuts/configure-deep-scan}}, note = {Revision 2; digest sha256:83c97e17d0b90dbc; last verified 2026-11-20T13:41:45Z; accessed 2026-11-21T10:06:23Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/codex/commands-and-shortcuts/configure-deep-scan