Codex-Native Feature Development
Use this workflow when a feature request needs structured discovery before implementation. Keep update_plan current throughout, and use parallel explorer subagents for research only when their scopes are independent.
Source of truth
-
eferences/feature-dev-command.md
eferences/agent-prompts/code-architect.md
eferences/agent-prompts/code-explorer.md
eferences/agent-prompts/code-reviewer.md
Core Principles
- Ask clarifying questions early when behavior, edge cases, or scope are underspecified.
- Understand before acting by reading existing code patterns first.
- Read the files surfaced by subagents instead of relying on summaries alone.
- Prefer simple, maintainable designs over clever abstractions.
- Use update_plan to track progress and checkpoints.
Phase 1: Discovery
Goal: Understand what needs to be built.
Actions:
- Create a plan that covers discovery, design, implementation, and review.
- If the request is underspecified, ask concrete clarifying questions.
- Summarize your understanding and confirm it with the user.
Phase 2: Codebase Exploration
Goal: Understand relevant code and patterns.
Actions:
- Spawn 2-3 explorer subagents in parallel with disjoint research scopes.
- Ask each subagent to return the 5-10 most important files to read next.
- Read the returned files yourself and consolidate the patterns you found.
Phase 3: Clarifying Questions
Goal: Resolve ambiguities before design.
Actions:
- Review the request and the exploration findings.
- Identify missing details around scope, data flow, UX, errors, compatibility, and testing.
- Present the open questions clearly.
- Wait for user answers before designing architecture.
Phase 4: Architecture Design
Goal: Compare implementation approaches with trade-offs.
Actions:
- If the feature is large enough to justify it, spawn 2-3 explorer or worker subagents to propose different architectural approaches.
- Compare the approaches by change size, maintainability, risk, and implementation speed.
- Recommend one approach and explain why it fits best.
- Ask the user to confirm the direction.
Phase 5: Implementation
Goal: Build the chosen solution.
Actions:
- Do not start coding until the user approves the design.
- Re-read the relevant files before editing.
- Implement the approved approach with minimal, focused changes.
- Update update_plan as work progresses.
Phase 6: Quality Review
Goal: Catch bugs, unnecessary complexity, and convention drift.
Actions:
- Spawn review subagents with different lenses such as correctness, simplicity, and conventions.
- Consolidate the findings into a short actionable list.
- Present the findings and recommended fixes.
- Address the agreed changes before final handoff.
Phase 7: Summary
Goal: Hand off the finished work clearly.
Actions:
- Mark the plan complete.
- Summarize what was built, key decisions, files touched, and suggested next steps.
1---2name: feature-dev-23description: Use when the user asks to build a new feature and wants a structured Codex CLI workflow with discovery, clarifying questions, architecture comparison, implementation, and review.4---56# Codex-Native Feature Development78Use this workflow when a feature request needs structured discovery before implementation. Keep update_plan current throughout, and use parallel explorer subagents for research only when their scopes are independent.910## Source of truth11- 12eferences/feature-dev-command.md13- 14eferences/agent-prompts/code-architect.md15- 16eferences/agent-prompts/code-explorer.md17- 18eferences/agent-prompts/code-reviewer.md1920## Core Principles2122- **Ask clarifying questions early** when behavior, edge cases, or scope are underspecified.23- **Understand before acting** by reading existing code patterns first.24- **Read the files surfaced by subagents** instead of relying on summaries alone.25- **Prefer simple, maintainable designs** over clever abstractions.26- **Use update_plan** to track progress and checkpoints.2728## Phase 1: Discovery2930**Goal:** Understand what needs to be built.3132**Actions:**331. Create a plan that covers discovery, design, implementation, and review.342. If the request is underspecified, ask concrete clarifying questions.353. Summarize your understanding and confirm it with the user.3637## Phase 2: Codebase Exploration3839**Goal:** Understand relevant code and patterns.4041**Actions:**421. Spawn 2-3 explorer subagents in parallel with disjoint research scopes.432. Ask each subagent to return the 5-10 most important files to read next.443. Read the returned files yourself and consolidate the patterns you found.4546## Phase 3: Clarifying Questions4748**Goal:** Resolve ambiguities before design.4950**Actions:**511. Review the request and the exploration findings.522. Identify missing details around scope, data flow, UX, errors, compatibility, and testing.533. Present the open questions clearly.544. Wait for user answers before designing architecture.5556## Phase 4: Architecture Design5758**Goal:** Compare implementation approaches with trade-offs.5960**Actions:**611. If the feature is large enough to justify it, spawn 2-3 explorer or worker subagents to propose different architectural approaches.622. Compare the approaches by change size, maintainability, risk, and implementation speed.633. Recommend one approach and explain why it fits best.644. Ask the user to confirm the direction.6566## Phase 5: Implementation6768**Goal:** Build the chosen solution.6970**Actions:**711. Do not start coding until the user approves the design.722. Re-read the relevant files before editing.733. Implement the approved approach with minimal, focused changes.744. Update update_plan as work progresses.7576## Phase 6: Quality Review7778**Goal:** Catch bugs, unnecessary complexity, and convention drift.7980**Actions:**811. Spawn review subagents with different lenses such as correctness, simplicity, and conventions.822. Consolidate the findings into a short actionable list.833. Present the findings and recommended fixes.844. Address the agreed changes before final handoff.8586## Phase 7: Summary8788**Goal:** Hand off the finished work clearly.8990**Actions:**911. Mark the plan complete.922. Summarize what was built, key decisions, files touched, and suggested next steps.