All projects

Case study · 2025 · AI · Team tooling

AI Orchestrator

How we turned a fast coding assistant with no memory into a pipeline of agents that knows our rules, applies them, and gets reviewed by someone whose only job is to catch them out.

  • Claude Code
  • MDX
  • YAML

01 Fast, but with no memory

When I discovered Claude Code, I saw right away what it could bring, and I shared it with the team. But on a codebase like Malta Warehouse, with dozens of business contexts and strict conventions, an assistant on its own soon showed its limits. Our rules had to be repeated every session, it forgot a layer, it wrote code that worked without looking like ours. We had the speed, not the consistency.

An assistant on its own The orchestrator

Conventions to repeat every session

A doctrine on disk, read by every agent

A session that forgets everything when it closes

Every step recorded, resumable

One agent doing everything

One specialist per layer

About two thirds of the code to our standards

More than 90% of the code to our standards

02 Writing the rules once

Rather than write ever longer prompts, we took our rules out of the prompts and wrote them into the project itself. Our conventions live in a knowledge base, and every folder of the code carries a file stating its own, so the agent loads them as soon as it touches that folder, whether we work by hand or through the orchestrator. And because a rule only really exists if the machine can enforce it, a check blocks the commit and the CI as soon as a rule gets duplicated elsewhere.

knowledge/
knowledge/
core.md
backend/ tests, use cases, persistence…
frontend/ design system, components…
review/ attack patterns, security…
# 62 convention files
 
code/<module>/CLAUDE.md
# one rule file per folder, 191 in all
# loaded as soon as an agent touches the folder

Where the rules live

03 Built by the whole team

We did not impose it, we built it together, starting from the structure of BMAD. Those of us strongest on the front end wrote the interface agents, so they follow our design system exactly, while others handled the domain and the infrastructure. Then we confronted our approaches in pairs, front-end developers coming to see the back end and the other way round, and iterated until we had a pipeline where every layer has its specialist, and where a reviewer, backed by a second one who challenges each of its findings, hunts 21 attack patterns.

13specialist agents

04 Testing the tester

A prompt cannot be tested like code, and a harmless-looking change can be enough to blind a reviewer. So after every significant change, we have it review a spec deliberately riddled with ten defects, five of them critical. If it lets a single critical one through, we do not conclude the code is fine, but that the orchestrator is broken.

  • F1 critical
  • F2 critical
  • F3 critical
  • F4 critical
  • F5 critical
  • F6
  • F7
  • F8
  • F9
  • F10

10 planted defects, 10 found

otherwise, the tool is broken

05 The team’s memory

The agents do not only write code. They help us keep the documentation up to date as things change, record every decision in an ADR, without ever guessing who approved it, and run pre-mortems before risky work. One of them, on a rework of access rights, imagined the failure before it happened, and it turned our plan around completely.

0014-severity-scale.mdpremortem-access-rights.md
0014 · A three-level severity scale
status accepted
approved by # never guessed
 
Context
Decision
Alternatives rejected
Consequences
Risks

An ADR

Pre-mortem · access rights rework
premise six months from now, it failed
 
Causes · likelihood · impact
Warning signs
Blind spots
Countermeasures
Accepted risks

A pre-mortem

The initial plan After the pre-mortem

One big project

Two decoupled projects

Enforcement switched on at once

An observation mode before blocking

A one-way data migration

A backup and a two-step migration

What I would do differently

What we cannot do yet is prove the gain other than through our reviews. The reviewer test is still run by hand, and I chose not to tool too early the check that would make sure the documentation follows the code. I would rather see a rule live for a few weeks before automating it, because a guardrail set too early ends up worked around. The orchestrator is not frozen code, it evolves with us, and that is how it should be.