Codeplane Engineering demo

A coding agent that knows why the test exists

A DNS demo: one past decision changes what the agent edits.

0 vs 5Grep and glob sweeps per task, with CortexDB against stock
½The turns, to the same correct answer
~40%Fewer tokens, same repo, same model
~40%Faster, to the same correct answer

Our own measured side-by-side, 2 Nov

Open on YouTube ↗ The final test run fell outside the recording.

01The moment

Why would an agent remove one dot?

A DNS name ends with a dot. Removing it looks like clean-up, until the agent finds the upstream history that explains the behaviour and its regression test.

The code alone does not say why the dot is there. The reason lives in a past decision, upstream in etcd 3.5.3.

PR 13712issue 13948revert PR 13949etcd 3.5.3
What “clean-up” would change Illustrative
names.py · fictional code
# the zone this service answers for
- ZONE = "shop.example."
+ ZONE = "shop.example"
test_names.py · the regression test
- assert fqdn("shop.example") == "shop.example."
+ assert fqdn("shop.example") == "shop.example"
Two tidy edits: the name loses its dot, and the regression test is changed to agree. The stock agent made this kind of change before it found the upstream decision. Fictional code, not taken from the recording.

02What they built

A coding agent that reads the decision first

The connected agent starts the task with the stored context, then checks it against the code's upstream history before it edits anything.

The source

A past decision

Why the behaviour exists, and the regression test that goes with it, stored as context.

Memory

CortexDB

Hands that context to the agent at the start of a related task.

The workflow

Coding agent

Reads the stored context, checks it against upstream history, then decides what to edit.

The person who decides

Engineer

Reviews the change, with the reason the agent gave for keeping the behaviour.

03What the walkthrough shows

Two agents, one task

Both agents were asked to do the same thing. One started from the code. The other started from the code and the decision behind it.

Stock agent

Starts from the code
  1. 1
    Changes the code

    Removes the dot, as clean-up.

  2. 2
    Changes the test

    Edits the regression test to match.

  3. 3
    Finds the upstream decision

    The history explains the behaviour and its test.

  4. 4
    Rolls both back

    The code and the test return to how they were.

Ends where it began, after two edits and two roll-backs.

CortexDB-connected agent

Starts from the decision
  1. 1
    Reads the stored context first

    The past decision arrives before any edit.

  2. 2
    Checks it against upstream history

    Before deciding what to edit.

  3. 3
    Keeps the behaviour

    The recording shows the agent choosing to preserve it. Its refusal cites PR 13712, issue 13948 and revert PR 13949 (etcd 3.5.3).

    Final test run: not in the recording

Prior decisions give a coding agent a better place to start.

Same task, different starting point.

04What we measured

Fewer searches, the same correct answer

We ran a CortexDB-connected coding agent and a stock one side by side on 2 Nov, on the same repo with the same model. These are our own measurements.

The numbers at the top of this page

Zero grep and glob sweeps against five per task, half the turns, about 40% fewer tokens and about 40% faster, each time to the same correct answer.

Installs in one lineEverything exportable, no lock-in

The trap task

Both agents were offered a wrong optimisation. The CortexDB arm declined it early. The stock arm applied it, then reverted it.

Tokens

Stock
With CortexDB

Time

Stock
With CortexDB

The CortexDB arm finished at about a third of the stock arm's tokens and time. The bars show that ratio, not exact values.

05Read it carefully

What this shows, and what it does not

What this shows

  • The connected agent read the stored context first, checked it against upstream history, and kept the behaviour.
  • The stock agent changed the code and the test, found the upstream decision, and rolled both back.
  • Prior decisions give a coding agent a better place to start.
  • In our 2 Nov side-by-side, the connected agent ran no grep or glob sweeps (the stock agent ran 5 per task) and reached the same correct answer in half the turns, with about 40% fewer tokens and in about 40% less time.

What it does not show

  • The final test run. The recording shows the connected agent choosing to preserve the behaviour. Its final test run fell outside the recording.
  • Your codebase. The numbers are our own measurements from one side-by-side run, on one repo with one model.
  • The real code. The diff on this page is illustrative, with fictional code.