This article introduces TRIAD - a protocol invented to keep three parties in sync while an application is built: the developer, Claude.ai (plans, writes the tasks, reviews every report) and Claude Code (builds the code and does all git and GitHub work). The two Claude instances never talk to each other; everything passes through the developer, and the developer decides every step.

Most writing about AI-assisted development asks how to get better answers out of the model: better prompts, better context files, better instructions. This article is about a different question, the one a developer actually lives with: how do you keep mistakes out of the conversation while an application is being built?

TRIAD is the answer one developer arrived at. It is a protocol for three parties working on one app: the developer, Claude.ai and Claude Code. It is not a way to write better prompts. It is a way to make sure that what is said between the three is checked before anyone acts on it.

The two Claude instances never talk to each other. Everything passes through the developer: the task goes from Claude.ai to the developer to Claude Code, and the report comes back the same way. That sounds slow. In practice it is the point: the developer sees every exchange, and every exchange is a place where a mistake can be caught.

Splitting the work between a planning AI and a building AI is a known pattern; several published workflows describe it, some with human approval gates and independent checks. The trend in the tools goes the other way: newer Claude Code features let an AI, not a person, decide what runs next.

What TRIAD adds is the combination, all of it written down and kept:

Three real moments from one week of building a small feedback app, Feedbox, show it better than rules do.

A wrong number, caught before anything ran. A report from Claude Code said a database script had 533 lines. The developer, checking the script at the step before running it, saw 535 and stopped. Nothing had been run. The fix was not to correct one number but to rewrite the whole step list, and to add a rule: Claude.ai checks every script's line count and first and last lines against the repository before giving steps.

An email that never arrived. A test step asked the developer to sign in as a second person, using a "+" variant of his own address. The email never came; his mail service did not deliver such addresses. He wrote "not OK" under that step and stopped. The trio did not patch the old steps; it wrote a new, complete set, and the history shows both.

Steps written from memory. Claude.ai gave steps for adding a mail account on the Mac from memory of an older macOS. They were wrong. The developer said he had learned to worry about steps from memory. That became a rule too: steps for other people's products are checked against their current documentation or the developer's screenshots, and name their source; otherwise Claude.ai says it does not know.

None of these mistakes reached the app. Each one became a rule that makes the next one less likely. From the developer's side, that is the whole value: not flawless, but no fault got through.

A common recommendation is to give Claude Code a CLAUDE.md file in the repository: a standing description of the project and its conventions, read at the start of every session. Recently it has drawn criticism. A study from ETH Zurich, Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents? (Gloaguen, Mündler, Müller, Raychev and Vechev, 2026; presented at an ICLR 2026 workshop), measured such context files on real coding tasks, both files generated by a model and files written by developers. Across several coding agents and models, the context files tended to lower task success compared with giving no repository context at all, while raising cost by more than twenty percent. The agents did follow the files' instructions; the extra requirements simply made the tasks harder. The authors' advice was not to delete the file, but to keep human-written files to minimal requirements.

TRIAD's experience fits that advice. Its context does not live in one big standing file. It lives in each task: Claude.ai writes the task fresh, after checking the current state of the repository, with only what that task needs, and the developer reads and approves it before it is sent. It works like an interview rather than a manual: the developer's request and Claude.ai's questions produce exactly the context for the next step, much like the AI-assisted interview that drafts a system prompt from a user's own answers.

The standing file still has a job, but a small one: the rules that cannot be found in the code. Who runs database scripts. Who does git. How reports are written and where they go. Everything else can be read from the repository, and should be.

The developer also builds from an iPad when away from his Mac. One small change this week made that easier than any setup guide: moving his email to a provider whose app keeps everything in sync. Installing one app on the iPad brought over every address the project uses, so signing in to the app as the owner or as a test member, and answering users, now work there too, with nothing set up twice. The parts of the loop that run through email no longer tie him to one machine.

You do not need a new kind of AI, or a perfect prompt, to build safely with the models we have. Keep a human in the loop who decides every step. Give each AI one job. Make every claim checkable and check it. Write down every exchange, and turn every caught mistake into a rule.

That is TRIAD: a conversation between one human and two Claudes, built so that mistakes are found in the conversation and not in the app.

Thibaud Gloaguen, Niels Mündler, Mark Müller, Veselin Raychev, Martin Vechev. Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents? arXiv:2602.11988, 2026. https://arxiv.org/abs/2602.11988

原文来源:dev.to