codex-claude-loop

Orchestrates Claude and Codex for iterative planning, implementation, review, and documentation of complex features via codex-cli in non-TTY environments.

10|Updated Nov 21, 2025
One-click install
npx skills add https://github.com/creator-hian/claude-code-plugins --skill codex-claude-loop-creator-hian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codex-claude-loop
Source: https://github.com/creator-hian/claude-code-plugins/tree/main/codex-plugin/skills/codex-claude-loop
Command: npx skills add https://github.com/creator-hian/claude-code-plugins --skill codex-claude-loop-creator-hian

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge of developing complex features with high quality, security, and performance by orchestrating Claude for planning and implementation, and Codex for rigorous validation and review. This ensures a robust, iterative development cycle, minimizing errors and maximizing code quality.

Core Features & Use Cases

  • Dual-AI Orchestration: Claude handles architecture, planning, and code implementation, while Codex provides critical validation, code review, and quality assurance.
  • Iterative Feedback Loop: Automatically validates plans, reviews implemented code, and facilitates fixes, looping until quality standards are met.
  • High-Quality Code: Ideal for complex feature development, large-scale refactoring, and projects with stringent security or performance requirements.
  • Use Case: Develop a new, complex API endpoint. Claude plans and implements, Codex validates the plan for architectural flaws, then reviews the implemented code for security vulnerabilities and performance bottlenecks, guiding Claude through iterative fixes.

Quick Start

Create a TypeScript function to validate and format phone numbers.

Frequently Asked Questions about codex-claude-loop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a dual-AI code review loop with Claude and Codex?

Dual-AI orchestration coordinates Claude for planning and implementation with Codex for validation and review. Set up a .codex-loop directory, configure git status checks, and use codex exec commands to automate the iterative feedback loop across planning, implementation, and code review phases in non-TTY environments.

What's the best way to validate architecture and catch security issues during feature development?

Use AI orchestration to separate concerns: have Claude handle architecture and code implementation, then route the output to Codex for rigorous validation of architectural flaws, security vulnerabilities, and performance bottlenecks. This structured feedback loop minimizes errors and guides iterative fixes until quality standards are met.

Can I automate code quality checks and validation in a CI/CD pipeline?

Yes. The dual-AI engineering loop runs in non-TTY environments using codex-cli with timeout control and command workflows. It automates pre-flight checks, plan validation, code review, and iterative fixes, producing documented artifacts at each phase suitable for pipeline integration.

How does role separation between planning AI and validation AI improve code quality?

Role separation ensures Claude focuses on architecture and implementation expertise while Codex provides independent validation and review. This division prevents single-point-of-failure reasoning, catches interdependent issues earlier, and enforces quality gates throughout the development cycle.

When should I use orchestrated dual-AI validation instead of single-model review?

Use dual-AI orchestration for complex feature development, large-scale refactoring, and projects with stringent security or performance requirements. The iterative loop is ideal when functional and technical validation must happen in separate specialized phases to meet high quality standards.

What environment setup is required to run an AI orchestration code review loop?

Create a .codex-loop directory for workflow state, ensure git status tracking is configured, and install codex-cli. The skill operates in non-TTY environments with timeout control, automating multi-phase engineering loops from planning through documentation without interactive terminal input.