Method

How I build with agents, and how I check the work.

Coding agents write the code. I define the product, the rules and the checks, I make the decisions, and the agents work within them. I have used AI every day since late 2024; this method took its current shape with Nexcan in 2026.

01

Written rules

Every agent session starts from the same written rules: what the product must never do, how decisions are recorded, what counts as done. When a lesson changes how the next session should work, it becomes a rule, short enough to be read every time.

02

An independent review

Each change is reviewed by a second agent that has not seen the first one's reasoning and tries to break it. A check is only trusted once it has been made to fail on purpose.

FILM 5
an agent writes
another one tries to break it
fixed, and checked
the lesson becomes a rule
shippedAdd a discount line to the invoice total
written rulesA discount never exceeds the line it applies to.
changeAdd a discount line to the invoice totalfix: cap the discount at the line amount
reviewcase: a discount larger than the line
check · total stays positivepasses
illustration · invented example
03

Tests and CI do the checking

Anything a machine can check is written as a test, and the pipeline runs it on every change.

  • ≈ 1,400
    test files on Nexcan, TypeScript and Python
  • 208
    test files check that one firm never sees another firm's data
  • 4
    parallel runs
  • Every migration replayed from an empty database, then on synthetic data, down and up again
  • Screens captured at desktop and phone width
  • Totals computed by code, never checked by eye
  • A local check before every push; light suite for drafts, full suite when ready, weekly run on main
The details

Rules and reviews are not enough on their own: anything a machine can check is written as a test, and the pipeline runs it on every change. On Nexcan that means about 1,400 test files (TypeScript and Python), including 208 that check one firm can never see another firm's data, split across four parallel runs. Every database migration is replayed from an empty database, then on a database filled with synthetic data, down and up again. Screens are captured automatically at desktop and phone width. Totals are computed by code, never checked by eye.

Before any push, a local check runs what the pipeline would run on that change. The pipeline then runs only what the change touches: a draft gets the light suite, a change marked ready the full suite, and a weekly run on the main branch catches what the day's runs skip.

The pipeline itself is treated as a product. When a measurement shows waste, it changes: one week, label edits were relaunching the whole suite, 43 runs cut short and redone for nothing, about 1,800 minutes; the trigger moved to a ten-second check of its own.

04

The product keeps itself up to date

Documentation, release notes and onboarding usually fall behind the product. I build them as outputs of the code, so they move with it.

  1. 01 · pull requestOne line and a screenshotEvery change a client will notice says so, next to the code.

  2. 02 · releaseThe pages publish themselves"What's new" and the help pages are built from the repository.

  3. 03 · in the appThe help is the same pageThe "?" opens it beside the screen; a help agent quotes it and points at the spot.

  4. 04 · when someone is stuckA help agent has already read the screen, answers by quoting the help page, points at the spot with numbered markers, never does anything that cannot be undone, and hands over to support in writing.

The loop is the point: what users ask and where they get stuck flows back into the documentation and the product, and every improvement shows up in the help without a separate project.

The details

On Nexcan, every change a client will notice says so in its pull request, in one line, with a screenshot committed next to the code. After each successful release, the "What's new" page assembles itself from those lines and publishes, and the help pages publish from the repository the same way. A check refuses a change to the engine when the help page that describes it has not moved. The screenshots come from one versioned recipe on invented data, so the documentation, the release notes and the visual tests show exactly the same screens.

In the app, those pages become the help: the "?" opens the right page beside the screen, and short guided tours are drawn from its "what you see on screen" section. A help agent adds to it: it has already read the screen, answers by quoting an exact passage of the documentation, points at the spot on the screen with numbered markers, never does anything that cannot be undone, and hands over to support in writing. Its model was chosen on a bench of 33 invented questions.

05

Measure before choosing

Where an error costs most, I set the threshold first, then measure. Results are kept even when they are bad, and a choice is revised when a new measurement contradicts it.

06

My own back office: three agents

On OpenClaw I run three agents: Fred, my accounting agent; Timo, a personal assistant; and Lili, a community manager I have not really put to work yet. I draw each one as a little character and give it a personality, to make the whole thing feel alive.

Fred is the one I use most, and the one that does a real job. I wrote the skills he needs to do an accountant's work, and it works well: he keeps the books of my companies, and I talk to him on Telegram. His role, his memory and his procedures are files I can read and improve. A monthly close follows a checklist (bank, receipts, intercompany flows, VAT) and ends on one of three verdicts: ready, needs review, not ready. On Pennylane he reads by default; nothing is written before he has checked the supplier, the expense account and the VAT treatment, and before I say go. Between requests, he watches accounting and tax changes and only tells me what matters.

What it taught me: an agent's reliability lives in the setup around the model. When a case goes wrong, a procedure or a check gets updated, so the same mistake does not come back.

FILM 7
monthly close
Bank
Receipts
Hosting · March · €24.00
Intercompany flows
VAT
readyneeds reviewnot ready
proposed entryHosting · March · €24.00gonothing is written before I say go
illustration · invented data
07

This site

This site is built the same way, and its code is public: the rules, the reviews and the screenshots are in the repository.

↗ The code on GitHub
Method · Yoann Coumes-Gauchet