Interface cards split down the middle, dark on the left and light on the right, with a toggle switch where the two halves meet.
AI Engineering

Faster with less work

November 15, 20264 min read

I asked for a light mode in one app. I got a light mode in every app I own: 12 repos, 20 UIs, fully tested. My part was a few decisions about shading.

agent-harnessharness-engineeringclaude-codetheming

I wanted a light mode in one of my apps. That's all. One app, one theme, the kind of small request that used to turn into an afternoon.

What I got back was a light mode in every app I own: 12 repos, 20 UIs, fully tested, passing sanity checks, and built to the same standards everywhere. My part was a few decisions about shading.

This is what the harness from Part 3 looks like when it pays off.

The agent stopped, and that was the right move

I asked Claude to add a light mode. Before writing anything, it searched the design system for a light theme. There wasn't one.

In the thousand-line-prompt days, this is where things went wrong. The model would invent a palette, approximate the tokens, and hand me something that looked fine in one app and off everywhere else. The harness doesn't allow that. New UI comes from the design system, or it stops.

So it stopped. Then it checked the harness, saw that theming is a platform-wide standard rather than an app-level choice, and asked me a better question than the one I'd asked it: did I want light mode across the whole platform?

I did. I just hadn't thought to ask for it.

Choosing the shades

A light theme isn't an inverted dark theme. Every surface, border, and text color needs its own deliberate value, and the per-app accents have to hold up on a light background too.

Claude walked me through it as a set of shading evaluations: options side by side, with the trade-offs laid out. I made the calls. It didn't guess at taste, and I didn't hand-tune hex values.

That's the right split. Design decisions are mine. Turning a decision into tokens, then into every app, is the agent's job.

The rollout: 12 repos, 20 UIs

Once the shades were chosen, the work fanned out the way the harness is built to support. The new values went into the design tokens first, defined once by semantic role. Then they were ported into each platform's own theme: Avalonia on desktop, SwiftUI on Apple platforms, CSS on the web.

Every app got the same thing:

  • a light theme and a dark theme, both deliberate rather than auto-inverted
  • a runtime toggle to switch between them
  • the user's choice persisted across launches
  • styling that binds to tokens, never to raw colors
  • tests covering all of it

Twelve repos and twenty UIs, across Windows, Linux, macOS, iOS, and the web. Each one fully tested, sanity checks passed, and built to the same standards.

One request flows into a few shading decisions, then into the design tokens, then into Avalonia, SwiftUI, and CSS themes, then into 12 repos and 20 UIs, checked by the existing UI and style tests.
One request flows into a few shading decisions, then into the design tokens, then into Avalonia, SwiftUI, and CSS themes, then into 12 repos and 20 UIs, checked by the existing UI and style tests.

Why it worked: the tests were already there

The agent didn't get lucky twelve times in a row. It worked because I already had standard UI and style tests that run against the real apps.

Those tests didn't come from this change. They were already part of the harness, written to check that every app follows the platform rules. So when twenty UIs changed at once, there was an existing, trusted way to check every one of them. Nothing depended on the agent's own opinion of its work, or on me clicking through twenty apps.

This is the part of the harness that's easiest to skip and most expensive to lack. Rules tell the agent what to do. Tests are how you find out whether it did.

What "less work" actually means

Look at where my effort went. I asked for one thing. I answered one scoping question. I made a few shading decisions. That was it.

I didn't open twelve repos. I didn't port a palette into three UI frameworks by hand, write the tests, or check each app for a missed hard-coded color. All of that came from rules and tests I'd written once, earlier, in Platform-Standards.

That's the trade the harness makes. You do the slow work once: sorting your rules, writing them down, building tests that check them. After that, the per-change work collapses into the decisions only you can make. The more apps you have, the better that trade gets.

Next up, in Part 5: how the harness changed the way I talk to agents, and why vibe coding stopped feeling silly.

Series
Sorting the Laundry

Six posts on what a year of building with agents taught me: the model is the hands, and the rules you write down around it are the part worth investing in. From thousand-line prompts to one-sentence changes across every app I own.

  1. Part 1This morning I realized I'm teaching an agent to think the way I sort laundry
  2. Part 2The thousand-line prompt
  3. Part 3Building the harness
  4. Part 4Faster with less work
  5. Part 5From vibe coding to harnessed coding
  6. Part 6Where this leaves us

Loading discussion…

Written by

Andrew @ CodeLifter

All Posts