Use after planning or implementing non-trivial tasks - runs Codex MCP background verification/review for quality gates (plan validation + implementation review)
Recommended after the following (plan validation runs only on request/approval):
Do not use for:
CLAUDE.md. Codex is a reviewer for plan/implementation.src/app/page.tsxsrc/store/dashboardStore.ts{tasksRoot}/context.md.mcp__codex__spawn_agentReview this implementation plan and find issues:
[Claude's plan]
Focus on:
- Logic errors and missing edge cases
- Data/flow consistency and API contract violations
- Type safety (narrowing, null/undefined) and error handling
- Performance/resource waste
- Security/auth/input validation
- Framework/language best practices
- Project code conventions and repo rules (CLAUDE.md, etc.)
Constraints:
- Keep Plan/Implementation/Review format, summary only
- Do not mention files/deps not in context; mark "needs confirmation" if unknown
- Cite evidence near file/line
mcp__codex__spawn_agentReview the implementation and check:
- Logic/flow errors, missing edge cases
- Type safety and null/undefined guards, error/exception handling
- API contract and data model consistency
- Performance/resource waste
- Security/auth/input validation
- Framework/language best practices
- Project code conventions and repo rules (CLAUDE.md, etc.)
- Code complexity and maintainability
Constraints:
- Summarize response in Plan/Implementation/Review format
- Do not suggest deps/files outside context; mark "needs confirmation" if required
- Cite file/line evidence for each issue
Codex validation complete:
Critical issues (fix immediately):
- [Issue 1]: [short description] -> [action]
Warnings (improve if possible):
- [Issue 2]: [short description] -> [action]
Suggestions:
- [Issue 3]: [short description]
Codex validation complete:
Critical issues:
- Type safety: PagingResponse<T> missing -> apply PagingResponse type to API response
Warnings:
- Error handling: Either Left case missing -> add fold handling
Suggestions:
- Performance: consider useMemo for list filtering
mcp__codex__spawn_agentmcp__codex__spawn_agentmcp__codex__spawn_agents_parallel for multi-angle checks