Technical article · Sanu

Sanu: a whole platform built by three developers with specification-driven agents

Published on

Sanu is made of an API, a back office, an administration console and a cashier application, which three of us build with Claude Code agents; I designed the method, in which a written specification is the single reference for the agents and the developers alike.

Role
Co-founder and technical lead of InosKera; main author of the specification and the plugins, about three quarters of the API commits, in a team of three developers
Period
Specification since May 2026, applications since September 2026
Status
In development. In development, deployed to staging
Technologies
Claude Code, MkDocs, Spring Boot, React, Flutter, GitLab CI
Repositories
Six, including the specification and the plugins
Path of a story in the Sanu methodThe specification, which holds the manual, the backlog and the architecture decisions, also feeds the test book. The orchestrator quotes the extracts a story needs, then hands the work to the roles of each stack: architect, engineer, tester and release owner. The result is reviewed and passes targeted checks before it is merged into the main branch, whose pipeline then runs the full verification.Specificationmanual, backlogand ADRsOrchestratorquoted extractsand routingStack rolesdesign, code,tests, releaseMergereview andtargeted checksstoryTest bookend-to-endflowsPipelinefullverification
Figure 1. The path of a story, from the specification to the main branch. The orchestrator quotes the specification without writing anything itself, and each role hands the next a block of sourced facts.

Context

InosKera, of which I have been co-founder and technical lead since May 2026, brings together five partners and three developers and publishes Sanu, a management and point-of-sale system for retail in West Africa. The current version, started in September 2026, is made of four applications, namely an API in Java, a back office and an administration console in React and a cashier application in Flutter, whose architecture is described in the article on Sanu. This article is about the way these applications are built, that is with Claude Code agents driven from a written specification.

The figures of the API give the measure of this organisation. Between its first commit, on 7 September 2026, and 8 November 2026, it received 544 commits excluding merges, 413 of them mine, and 484 of them carry the co-signature of Claude; the proportion is similar in the back office, the console and the cashier application, and the co-signature is not limited to my own commits. AI is therefore used to build the product, whereas Sanu itself has no AI feature.

Problem

The difficulty lies first in the volume, since an agent produces code faster than three developers can review it, and four applications written in three languages, Java, TypeScript and Dart, drift apart as soon as one rule is stated in several places. An agent given a screen without a reference decides on its own its layout, its permissions and its error cases, so that two screens born from the same rule end up contradicting each other. A summary passed from one agent to the next also turns an assumption into a fact, without anyone having checked it.

What was needed, then, was a single reference that the agents read before writing, a division of the work that prevents each step from deciding again what the previous one had settled, and a control that keeps the team in charge of what enters the main branch.

Answer

The approach belongs to what is known as Spec-Driven Development, in which the specification comes before the code and governs it. It is also close to the BMAD method, which splits the work between agents by role, without being an application of it: it adds a release role and verification gates, and has no agent dedicated to user experience, the screens already delivered serving as the visual model.

A specification that is the single reference

The specification repository holds two parts. The first, published as a static site, is the user manual, organised by profile and by module; the second, kept for the team, holds the accounting rules and the backlog, that is twenty-one epics and more than 230 stories, whose 1,538 acceptance criteria are written on the Gherkin model, in three steps: given, when, then. Each criterion is named by the reference of its story followed by its number, such as CAISSE-04.3, and these references are frozen, since the code of the other repositories quotes them. A writing guide finally sets the vocabulary of the product and the principle that a rule is stated in one page only, which the others link to.

Architecture decisions are recorded as ADRs, kept in the API repository. Five were accepted between 15 September and 18 October 2026, on the access model, the isolation of each company’s data at the level of database rows, the organisation and the catalogue, support access from the console, and dates and time zones. An agent may draft the text, but each one bears the date of its acceptance and the name of the person who gave it, in this case mine, so that the agent that refers to it knows it is applying a decision and not a proposal.

The clickable prototype of the screens served as the visual model until 24 October 2026, when it was retired. Since then, the delivered applications have served as the model for layout, while the specification remains the single reference for the rules, the screens and the way they follow one another; when a delivered screen and the specification disagree, the rule wins and the screen is what gets corrected.

3. Étant donné un règlement en espèces, quand la personne en poste saisit le montant
   reçu au pavé numérique, par un montant rapide ou au clavier physique, alors la
   monnaie à rendre se calcule, s'annonce avant la validation et figure sur le reçu, […]
/** CAISSE-04.3: 10 000 in cash against 7 975 gives 2 025 back, and the drawer keeps the cash net of it. */
@Test
void caisse04_3_computesTheChangeOfACashPaymentAndKeepsTheDrawerNetOfIt() throws Exception {
    JsonNode ticket = created(sell(sale(session, line(crate, 1), pay("CASH", 10000))));

    assertThat(amount(ticket, "/totalAmount")).isEqualByComparingTo("7975");
    assertThat(amount(ticket, "/changeAmount")).isEqualByComparingTo("2025");
    // […]
    assertThat(cashInDrawer()).isEqualByComparingTo("7975");
}
Extract 1. An acceptance criterion of the backlog, in French as the backlog writes it, then the API integration test that quotes it by its reference.

Agents split by role

The work is handed to Claude Code agents whose instructions are kept in the plugin repository I maintain: each technical stack has an architect, an engineer, a tester and a release owner there, as well as an orchestrator that runs the chain. A plugin specific to Sanu adds a higher-level orchestrator, which always starts by reading the specification, extracts the manual pages, the criteria and the permissions that concern the request, then hands the work to the stacks involved, the API first and the clients after it. This orchestrator writes neither code nor rule itself: a missing rule goes to the role in charge of the backlog, and a rule that looks wrong is brought to me.

To deliver several stories at once, a workflow chains these steps. It checks their dependencies, extracts the specification, has the API built in its own worktree, then the React and Flutter clients in parallel once the contract is synchronised, writes or corrects the test book flows, integrates the repositories one after the other and updates the Jira tickets. The contract, that is the OpenAPI document and the error catalogue, is produced by the API tests then copied into the three clients by a script, so that no client holds a hand-written contract, while the permission catalogue, kept in the API repository, remains the only place where a permission is defined.

The context of each agent

An agent knows only what its context holds, and an essential part of the method lies in deciding that context, which is what is called context engineering. Each repository has a CLAUDE.md file that gives its commands and conventions, each skill is loaded only when a request concerns it, and for a story an agent receives only the extracts of the specification that touch it, quoted word for word with their path, their reference and the criterion number, since the summary of a page is not its specification.

One role hands over to the next through the block with fixed fields described in the article on the plugins, copied verbatim into the context of the next role. On Sanu, a behaviour the specification does not cover appears in it as an assumption, phrased so that I can refute it in a word rather than discover it in the code, and the blocks of all the roles make up, at the end of the chain, the report I review.

Verification gates before the merge

Two gates frame every change. The first is human: an architecture decision applies only once its ADR has been accepted, and every change produced by an agent is reviewed then tested like hand-written code before it is merged. The second is automatic: each story is built on a feat/ branch created from the main branch, which receives nothing but the merge of these branches, and that merge happens only once the targeted checks have passed, namely the compilation and the tests of the files changed. The full verification of the API, ./mvnw verify, then runs in the pipeline and chains the format check, the compilation, the unit tests, the check of module boundaries and the integration tests on a PostgreSQL database rebuilt from empty at every run.

The link between the specification and the tests is finally checked by a script, which reads the backlog, searches the tests of the four applications and the steps of the test book for the criteria they quote, and reports any criterion that nothing covers. On 14 November 2026, of the 1,478 criteria of the nineteen epics already built, 1,388 are quoted by at least one automated test and 1,463 by a test or by a step of the test book. The test book is made of 57 end-to-end flows, each step of which quotes the criteria it rests on, and its build fails when a flow quotes a criterion missing from the backlog or when their total duration exceeds two working days for one person; a story that changes a behaviour is moreover delivered with its flow, written or corrected in the same change.

Who does what

My role therefore lies less in writing every line than in keeping the specification and the plugins, settling the architecture decisions and reviewing what enters the main branch, even though I also write, with the agents, about three quarters of the API commits. The two other developers run their own stories within this same frame, so that a team of three people can carry four applications at once while relying on a single shared rule.

All the articles