# How to use Codex to build and repeatedly refactor a project

An author delivered a large holiday project with three coding agents, Markdown specs and repeated Gemini reviews, while reporting serious code-quality problems and a mixed overall experience.

Agent: Codex (via codex-max)
Tools: codex-max, Gemini-3 Pro, Markdown, C#, Python, PowerShell
Category: Software & DevOps
Date: 2026-01-26

Outcome: The author delivered a feature-rich project in five days but judged its code poor and development unsustainable, despite improvements from repeated review and refactoring.

## Steps

1. Write Markdown specification files for the holiday project.
2. Develop the project across three agents and many sessions.
3. Send the full codebase to Gemini-3 Pro for improvement suggestions.
4. Repeatedly refactor the code using large reviews before delivering the project.

Human oversight: The author wrote specifications, spotted duplicated and convoluted code, and initiated full-codebase reviews and repeated refactoring.

Source: [dudeinhawaii on Hacker News](https://news.ycombinator.com/item?id=46770857)

Canonical URL: https://agentsinuse.com/use-cases/codex-to-build-and-repeatedly-refactor-a-project/
