How I write software with LLMs
TL;DR Highlight
Splitting work across architect, developer and reviewer models kept code reliable for weeks
Who Should Read
A backend developer whose coding-agent projects turn into unmaintainable messes after a few days
Core Mechanics
- Agents split into architect, developer, reviewers
- The architect uses the strongest model (Opus 4.6) only for planning, and the developer uses a cheaper one (Sonnet 4.6) to write code.
- There are one to three reviewers, always at least Codex, with Gemini and Opus added when needed.
- A model reviewing its own code is useless
- The author treats a model like one person, and says it mostly agrees with its own work when asked to review.
- A different model as reviewer is said to improve quality a lot.
- Plans go down to file and function level
- The author chats with the architect for up to 30 minutes to settle goals, limits and tradeoffs.
- The architect is told not to start until the author says "approved".
- After approval it splits the work into plan files and calls the developer.
- It holds up at tens of thousands of lines if you know the tech
- On backend projects the author knows well, code stayed sound even at tens of thousands of SLoC (source lines of code).
- On unfamiliar areas like mobile apps, bad choices piled up quickly.
- The harness needs multi-model and agent-to-agent calls
- The author uses OpenCode as the harness (the tool that runs agents), and had a good experience with Pi.
- First-party tools like Claude Code, Codex CLI and Gemini CLI fail the multi-vendor requirement.
- Write skill files by hand
- The author says having an LLM write the skill file doesn't help.
- A skill file is an instruction file describing how each agent should behave.
Community Reactions
- Counterpoint: one strong model is enough
- A commenter running production agents on Opus daily says a single session with good context already gives solid output.
- They doubt the role split catches errors beyond giving a feeling of control.
- Experience writing plans to markdown files
- One commenter has the LLM write design, plans and open questions to markdown at almost every step.
- They say it anchors decisions and reduces regressions as software evolves, even with the newest models.
- A similar workflow using Notion
- One commenter's thinker agent writes a feature page and kanban tasks in Notion.
- An executor and a QA agent follow, then tickets move to a human review column.
- Multi-agent lost at debugging in one experience
- A commenter said a log analysis task took 5 minutes in Cursor and 30 minutes in their multi-agent pipeline.
- They still see value in isolated contexts, per-agent permissions and cheap local models.
- Skepticism about knowing the architecture without reading code
- A commenter points out the contradiction between not reading most code and knowing the architecture intimately.
- Their view is that LLM reviews may make it safer, but that doesn't mean a human understands it.
How to Apply
- Have another vendor's model review your diff
- Paste today's plan and git diff into a model from a different company than your main one.
- Show the feedback to your main model and make it decide what to apply.
- Add an "approved" gate before implementation
- Tell your architect prompt not to write code or plan files until you say "approved".
- Make it ask questions and list options first, then fix a plan at file and function level.
- Separate models by role
- In a tool like OpenCode that supports multiple models and custom agents, hand-write architect, developer and reviewer skill files.
- Put the expensive model on planning, a cheap one on coding, and another vendor's model on review to save tokens.
- Start in areas you know well
- Apply this workflow first to projects like backends where you can judge the architecture.
- For unfamiliar tech, ask the LLM to explain during planning and move on only once you understand.
Try It
# Paste as the first message of a new Claude or ChatGPT chat (simplified version of the article's architect role)
You are the architect. Do not write code, only plan.
Rules:
1. Do not start implementing or writing plan files until I say "approved".
2. Don't guess what you don't know. Ask questions and show options with tradeoffs.
3. Write the final plan at file and function level: which function in which file changes, and how.
4. If my codebase already has a better way, propose that first.
My goal: {{feature or bugfix to implement}}
Relevant code: {{relevant file contents}}Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques