Iterative Repair Loops with Codex
Independent PiSkill directory guide. The original prompt remains hosted by OpenAI Cookbook.
What does this prompt do?
Shows how to structure an iterative coding loop that observes failures, changes a bounded implementation, reruns checks, and stops on success or a defined limit.
Primary use case
Build a controlled test-and-repair workflow for code.
Expected output
A bounded repair loop with verification evidence.
Inputs or variables
- repository
- test command
- repair goal
Related prompts
Codex Prompting Guide
Provides a source-linked recipe for structuring coding tasks, context, constraints, tool use, iteration, and verification when working with Codex-oriented models.
Autofix GitHub Actions with Codex
Demonstrates a Codex workflow that reads failed GitHub Actions evidence, identifies the responsible change or configuration, proposes a focused repair, and validates it.
Claude Vulnerability Detection Agent
Builds an agent that inspects code for vulnerability evidence, uses tools to gather context, reports uncertainty, and produces actionable remediation rather than unsupported alarms.
Deep Research API Workflow
Shows how to frame a research question, provide source access, run a deep-research workflow, and return a cited synthesis with transparent limitations.
Evaluate LLM SQL Generation
Builds an evaluation workflow for generated SQL using representative cases, execution-aware checks, correctness criteria, and reproducible comparison rather than subjective inspection alone.
Long-Document Entity Extraction
Extracts defined entities from long documents through structured chunking, grounded outputs, reconciliation, and checks that preserve traceability to source material.