Back to news
Engineering10 May 20261 min read

Why our AI engineer writes the tests first

The single most important thing Connekz does isn't writing code — it's writing the tests before the code. Here's why that ordering is what makes AI-written work trustworthy.

The CNEX team
Share

Ask most AI coding tools to "build X" and they'll write X, then maybe some tests that conveniently pass. That's backwards — and it's why so much AI output is almost right.

Connekz does it the other way round: the tests come first.

"Done" should mean "proven"

When the acceptance criteria become tests before a line of implementation, "done" stops being a vibe and starts being a fact. The code has to satisfy the behaviour you actually asked for — not just look plausible in a diff.

Acceptance criteria → tests → implementation → green suite → PR. In that order.

It kills the "almost right"

Most of the frustration with AI code is the gap between looks done and is done. Tests-first closes that gap: an edge case that isn't handled is a red test, caught before the PR ever reaches you — not a bug you discover in production on a Friday.

You still review

Tests-first doesn't replace your judgement; it earns your review. What lands in your PR queue already has green tests against clear criteria, so the time you spend reviewing is spent on the things that actually need a human — design, trade-offs, taste — not hunting for obvious breakage.

That's the whole reason we trust Connekz with real work: not because it's clever, but because it proves itself first, every time.

See the tests-first loop

Assign a real task and watch the tests go green before the PR opens.

Learn more

The CNEX team

We build CNEX-Flow in the open — and run our own shop on it. Read the build story →

See CNEX-Flow run your shop.