For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Run a deep security scan

Run a slower, more thorough review of a repository or scoped folder.

Run a deep scan when you need a more thorough review and can allow for a longer runtime. Deep scans search a repository more extensively and can reduce variability between runs.

Start with a standard scan to check your scope and results. Then use a deep scan when you need a more thorough assessment.

Choose between standard and deep scans

Standard scanDeep scan
Best forFirst runs and routine repository or folder reviewMore thorough reviews after a standard scan
VariabilityStandardReduced
ScopeRepository or explicit folderRepository or explicit folder
Runtime and resourcesLowerHigher
Pull requests and diffsUse the change-review workflowNot supported; use the change-review workflow instead

Start the deep scan

In the desktop app, open Security, select Scans, and select + Scan. Choose a repository or another folder, select Codebase, and turn on Deep scan. The scan covers the entire selected repository or folder.

You can also start a repository-wide deep scan from a Codex conversation:

Use $codex-security:deep-security-scan to run a deep security scan of this repository.

For one component in a monorepo, identify the folder explicitly:

Use $codex-security:deep-security-scan to run a deep security scan of /absolute/path/to/repository/services/payments.

For a scoped deep scan in the desktop app, select the folder as the codebase. The scan covers the entire selected folder.

Confirm setup and preflight

For the best scan quality, use gpt-5.6-sol with xhigh reasoning effort.

  1. Select Codebase and turn on Deep scan.
  2. Confirm that the repository or selected folder is the code you intended to scan.
  3. Choose a model and reasoning effort.
  4. Open Additional context for concrete attack vectors, sensitive application areas, or repository context that the code can’t reveal.
  5. Select Start scan.
  6. Review any setup or capability warning before you approve a configuration change.

Deep scans require delegated workers. If the current runtime doesn’t meet the capability requirements, use a standard scan or try again when enough capacity is available.

Discovery workers inherit your selected model and reasoning settings. Follow the saved scan from Scans, or select View activity to inspect its Codex task. Check the plugin changelog before you update the plugin or start a long-running scan.

Track the active deep-scan phase and inspect its Codex activity before reviewing the completed result.

Review the result

Deep scans use the same saved scan details and complete scan directory as standard scans. Open the completed scan in Scans or review its findings in Findings. When available, report.md links to one detailed report for each reportable finding and a structural hardening portfolio when findings remain. Keep the linked findings/ and hardening/ directories with the report when sharing or archiving the result.

Review the coverage summary before the findings. Even a deep scan has limits, so check deferred surfaces and remaining proof gaps before drawing a conclusion. For a finding you accept, continue with Fix and verify a finding.

To review a pull request, commit, branch range, or local patch, use Review code changes. A deep scan never substitutes for the diff-focused workflow.