Codex Review: Performance Profile
Find and verify a performance bottleneck with repository-aware safeguards.
- Best tool
- Codex
- Difficulty
- Advanced
- Use case
- Performance Profile
- Prompt type
- Reusable prompt
What this prompt does
Find and verify a performance bottleneck with repository-aware safeguards. It is designed for performance profile and works best with Current Codex coding model configured for the repository.
Copy-ready prompt
This is a reusable natural-language prompt for Codex, not a shell command.
Work in the repository at [REPOSITORY_OR_PATH]. Goal: find and verify a performance bottleneck. Context: [CONTEXT]. Constraints: [CONSTRAINTS]. Definition of done: [ACCEPTANCE_CRITERIA].
Review the current diff for correctness, regressions, maintainability, and missing validation.
Read applicable AGENTS.md guidance and use Codex’s inspection, editing, and verification workflow; keep approval boundaries and the user’s working tree intact.
First read the repository instructions and relevant framework documentation. Preserve unrelated user changes. State assumptions, cite files and lines for findings, and ask only when a missing decision would materially change the result. Do not invent APIs, commands, flags, test results, or file contents. Deliver: baseline, instrumentation, bottleneck, and benchmark. Run the repository’s relevant formatting, lint, type, test, and build checks when authorized, and report exact results.
How to use it
Replace the bracketed variables with real context for performance profile. Attach or paste source material when available, and verify consequential facts before acting.
Related prompts
Codex Inspect: Codebase MapMap architecture, entry points, data flow, and ownership boundaries with repository-aware safeguards.Codex Debug: Bug InvestigationReproduce and isolate a reported defect with repository-aware safeguards.Codex Inspect: Integration TestsDesign integration coverage across boundaries with repository-aware safeguards.Codex Ship: Database MigrationPlan a reversible data migration with repository-aware safeguards.
