At the end of Part 2, I had a prompt several thousand lines long that got me close but not all the way there. The fix wasn't a better prompt. It was taking that prompt apart and sorting it, the same way I sort the laundry before I fold it.
The rules didn't need to change. They needed a home: somewhere they could be organized, versioned, and found by the agent at the moment they apply. That home is the harness.
Start with design
The first thing I sorted out wasn't code. It was design.
The tiny vibe-coded apps from Part 2 had mediocre UX because the model had no design to follow, so it made one up every time. My huge prompts tried to fix that with paragraphs of description. Words are a poor way to carry a design system.
So I built a design framework for every platform I'm likely to build on. One set of decisions about color, type, spacing, components, and interaction patterns, expressed natively for every platform CodeLifter builds on: web, desktop on Windows, Linux, and Mac, and mobile. Any desktop app that ships to Windows is built on Avalonia. Most mobile heads are native SwiftUI, and two apps are a single SwiftUI codebase for Mac and iOS. On the web it's Next.js for the brand site, React front ends on two apps, and Blazor on one. A table is a table whether it renders on the web, on a desktop, or on a phone. It should look and behave like it belongs to the same family.
The design system got its own repo, Platform-Design: tokens, components, UI kits, and brand marks, with a prompt file per component telling the agent how to use it. The harness rule on top of it is blunt. New UI comes from the design system, or it stops. If a screen needs a component or token that doesn't exist, the agent doesn't invent one. It builds the rest of the feature and asks me to add the missing piece.
That gave the agent something concrete to build against instead of something to imagine.
A centralized rule system: Platform-Standards
The rest of the thousand-line prompt moved into a dedicated harness repo: Platform-Standards. Every rule I'd been pasting into prompts now lives in one place, sorted by what it applies to.
HARNESS.mdis the always-loaded core: the non-negotiables and a routing table. CI holds it under 150 lines.- Detail docs hold everything else, sorted by area:
design/,architecture/(desktop, web, mobile),process/(CI, versioning, testing, parity, releases), andservices/(external services and secrets). - Templates and tools hold the parts that shouldn't be prose at all: CI workflows, the repo
CLAUDE.mdtemplate, a baseline permissions file, and scripts.
The 150-line cap is the laundry sort in practice. The agent always sees the core. It only reads architecture/desktop.md when it's doing desktop work, and only reads process/testing.md when it's writing tests. Each pile gets pulled when it's needed, not dumped in up front.
Because it's a repo, the rules get everything code gets: history, review, and CI. When I learn something the hard way, I fix it once here instead of hunting through a dozen prompts.
Links up and down
A rules repo only helps if every agent loads it, and if it knows every app. So the links run both ways.
Down: every session inherits the harness. All the repos live side by side in one CodeLifter-Platform folder. At the root of that folder is a CLAUDE.md that's just a symlink to Platform-Standards/HARNESS.md. Claude Code loads CLAUDE.md from every parent directory, so any session in any app repo gets the harness automatically. Nothing to copy, nothing to keep in sync.
Each app's own CLAUDE.md starts from a template with a pointer line naming Platform-Standards and Platform-Design. If the harness isn't on disk, in CI, a cloud session, or a lone clone, the pointer tells the agent to fetch it from GitHub first. Below the pointer, the app file holds only what's unique to that app. The precedence rule is explicit: the app wins on app specifics, the harness wins on platform-wide standards, and a conflict gets flagged to me.
Up: the harness knows every app. tools/repos.json is the registry, 19 repos today. New repos come in through an /init-repo skill that creates the repo in the org, wires in the pointer and baseline settings, and opens a PR registering it in Platform-Standards.
The registry is what the conformance checker walks. tools/conformance.mjs audits every repo against the harness: the pointer line, versioning, CI runners, test coverage on every platform, pipeline health, and more. It runs on demand and weekly through GitHub Actions, and it reports only. It never edits an app. As the repo puts it: a standard nobody verifies is a preference. The first time the checker ran, it found 34 failures across 14 repos; I wrote that one up in The harness that only tested itself.
The upward link is what makes the opener of Part 2 possible. "Update the table in all of our apps" only means something because the harness knows what "all of our apps" is, and can check afterward that each one followed the rules.
Next up, in Part 4: what changed once the harness was in place, told through one request for a light mode.