Answer: To configure deep-scan runtime limits, create or edit `~/.codex/codex-security/config.toml` (or `$CODEX_HOME/codex-security/config.toml` if `CODEX_HOME` is set) and set values in the `[deep_scan]` section, such as `max_time_hours` and `workers`. Status: Confirmed Entry: tool/codex/settings/configure-deep-scan-runtime Revision: 2 Digest: sha256:e81efd78da066eca (changes whenever the content changes) Timeline: Created: 2026-11-13T03:53:29Z Last changed: 2026-11-20T13:42:02Z (minimum plugin version for max_time_hours: — → 0.1.19) Last verified: 2026-11-20T13:42:02Z Next check: 2026-11-21T13:42:02Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Unit | Source | As of config file path | ~/.codex/codex-security/config.toml | | [1] | 2026-11-20 max_time_hours default | 96 | hours | [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 stop_after_consecutive_errors default | 3 | | [1] | 2026-11-20 max_discovery_runs default | 40 | | [1] | 2026-11-20 minimum plugin version for max_time_hours | 0.1.19 | | [1] | 2026-11-20 Sources: [1] OpenAI. "Run a deep security scan". https://learn.chatgpt.com/docs/security/plugin/deep-scans.md Role: primary. Accessed: 2026-11-20T13:42:02Z Quote: "create or edit `~/.codex/codex-security/config.toml`" (Supports: config file path) Quote: "| `max_time_hours` | `96` | Limit worker execution to a positive number of hours up to `96`; use fractions as needed." (Supports: max_time_hours default) Quote: "| `workers` | `4` | Number of independent standard-scan workers allowed to run at the same time." (Supports: workers default) Quote: "| `subagents` | `3` | Number of subagents each worker may start. Set `0` to disable them." (Supports: subagents default) Quote: "| `stop_after_no_new` | `4` | Stop after this many consecutive completed worker scans produce no new findings." (Supports: stop_after_no_new default) Quote: "| `stop_after_consecutive_errors` | `3` | Stop after this many consecutive worker errors." (Supports: stop_after_consecutive_errors default) Quote: "| `max_discovery_runs` | `40` | Limit the number of independent standard-scan runs before aggregation." (Supports: max_discovery_runs default) Quote: "The `max_time_hours` setting requires plugin version `0.1.19` or later." (Supports: minimum plugin version for max_time_hours) Snapshot SHA-256: 4b0062f844a5f0836d57bd1b8975dfe0e2383c660ad08a78d695b1f65ebc5f77 (captured 2026-11-19T13:32:16Z) 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:18Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:42:02Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:42:02Z Last attempt: 2026-11-20T13:42:02Z Notes and limitations: Extracted automatically from a single official source (section "Configure deep-scan runtime"). Related: https://latestn.com/tool/codex/settings/configure-default-local-model How do I configure my default local model in Codex? https://latestn.com/tool/codex/settings/configure-env-vars-secrets How do I configure environment variables and network secrets for a Codex Cloud environment? https://latestn.com/tool/codex/settings/configure-local-web-search-custom-provider How do I configure local web search in Codex with a custom model provider? https://latestn.com/tool/codex/settings/config-toml-settings What settings can I configure in Codex config.toml? https://latestn.com/tool/codex/settings/configure-aws-credentials-bedrock How do I configure AWS credentials for Codex to connect to Amazon Bedrock? https://latestn.com/tool/codex/settings/configure-cli-notifications How do I configure CLI notifications in Codex? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T13:42:02Z | changed | minimum plugin version for max_time_hours: — → 0.1.19 | [1] 2026-11-20T13:42:02Z | changed | max_time_hours minimum plugin version: 0.1.19 → — | [1] 2026-11-13T03:53:29Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/settings/configure-deep-scan-runtime/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/settings/configure-deep-scan-runtime POST: https://latestn.com/dispute/tool/codex/settings/configure-deep-scan-runtime with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/settings/configure-deep-scan-runtime?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure the runtime limits for a Codex deep scan? Revision 2, last verified 2026-11-20T13:42:02Z. https://latestn.com/tool/codex/settings/configure-deep-scan-runtime (accessed 2026-11-21T09:54:06Z). @misc{LatestN_tool_codex_settings_configure_deep_scan_runtime_r2, title = {How do I configure the runtime limits for a Codex deep scan?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/settings/configure-deep-scan-runtime}}, note = {Revision 2; digest sha256:e81efd78da066eca; last verified 2026-11-20T13:42:02Z; accessed 2026-11-21T09:54:06Z} } 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/settings/configure-deep-scan-runtime