// Codebase analysis using Codex CLI with read-only sandbox. Trigger when user needs architecture overview ("analyze this codebase with Codex", "have Codex map dependencies"), onboarding to unfamiliar code, understanding legacy systems, or identifying technical debt.
| name | codebase-analysis |
| description | Codebase analysis using Codex CLI with read-only sandbox. Trigger when user needs architecture overview ("analyze this codebase with Codex", "have Codex map dependencies"), onboarding to unfamiliar code, understanding legacy systems, or identifying technical debt. |
Use Codex for codebase analysis with read-only sandbox.
If the codex MCP tool is available, use it directly:
mcp__plugin_codex_cli__codex({
"prompt": "Analyze this project structure and architecture. Do not make any changes. Respond with analysis only.",
"sandbox": "read-only"
})
If MCP is unavailable, use shell command:
codex exec "Analyze this project structure and architecture. Do not make any changes. Respond with analysis only." --sandbox read-only 2>&1
Full project analysis:
mcp__plugin_codex_cli__codex({
"prompt": "Analyze this project. Report on:\n- Overall architecture\n- Key dependencies\n- Component relationships\n- Potential issues\n\nDo not make any changes. Respond with analysis only.",
"sandbox": "read-only"
})
Flow mapping:
mcp__plugin_codex_cli__codex({
"prompt": "Map the authentication flow in this codebase. Identify all components involved. Do not make any changes. Respond with analysis only.",
"sandbox": "read-only"
})
Dependency analysis:
mcp__plugin_codex_cli__codex({
"prompt": "Analyze dependencies in this project:\n- Direct vs transitive\n- Outdated packages\n- Circular dependencies\n- Bundle size impact\n\nDo not make any changes. Respond with analysis only.",
"sandbox": "read-only"
})
sandbox: "read-only" to prevent file modificationssandbox: "danger-full-access" - this is forbiddendangerouslyDisableSandbox: truereferences/setup.md for troubleshooting