Loading...
Loading...
Use Codex CLI in full-auto mode to fix issues iteratively until tests pass. Autonomous debugging and test-fixing loop with sandbox safety.
npx skill4agent add dnyoussef/context-cascade codex-iterative-fix.claude/library/catalog.json.claude/docs/inventories/LIBRARY-PATTERNS-GUIDE.mdD:\Projects\*| Match | Action |
|---|---|
| Library >90% | REUSE directly |
| Library 70-90% | ADAPT minimally |
| Pattern exists | FOLLOW pattern |
| In project | EXTRACT |
| No match | BUILD (add to library after) |
full-autosandboxyolo# Standard iterative fix
./scripts/multi-model/codex-yolo.sh "Fix all failing tests" task-id "." 15 full-auto
# With sandbox protection
./scripts/multi-model/codex-yolo.sh "Fix tests" task-id "." 10 sandbox
# Via delegate.sh
./scripts/multi-model/delegate.sh codex "Fix all failing tests and verify they pass" --full-autoUser: "CI is failing with 12 test errors"
Codex Process:
1. Run tests, capture failures
2. Analyze first failure
3. Implement fix
4. Re-run tests
5. Repeat until all pass
Output:
- Fixed: 12 tests
- Changes: 8 files modified
- Root causes: Missing null checks, outdated mocksUser: "TypeScript build has 47 type errors"
Codex Process:
1. Run tsc, capture errors
2. Fix type errors systematically
3. Re-run after each batch
4. Verify build succeeds
Output:
- Fixed: 47 type errors
- Patterns: Missing types, incorrect generics
- Added: 3 new type definitions| Mode | Command | Use Case | Risk |
|---|---|---|---|
| full-auto | | Standard iteration | Medium |
| sandbox | | Risky refactors | Low |
| yolo | | Speed critical | High |
META-LOOP IMPLEMENT PHASE:
|
+---> codex-iterative-fix
| |
| +---> Codex: Run tests
| +---> Codex: Fix failures
| +---> Codex: Iterate until pass
|
+---> Continue to TEST phase (verification)multi-model/codex/iterative-fix/{project}/{task_id}# Via router (automatic detection)
./scripts/multi-model/multi-model-router.sh "Fix all failing tests"
# Direct Codex call
bash -lc "codex --full-auto exec 'Fix all failing tests and verify they pass'"codex-safe-experimentsmart-bug-fixtesting-qualitymulti-model-discovery