Harness Engineering: How We Keep Claude Code and Codex in Sync

We keep our AI agents' instructions, skills, and settings in source control so every engineer gets the same results. Then one settings file broke Chrome for about a month.

By Bernie Pruss
Harness Engineering: How We Keep Claude Code and Codex in Sync - Cloud Data Consulting

We do most of our data engineering with AI coding agents now. Claude Code and Codex build our dbt and Coalesce models, help design databases, and work with our data models in DbSchema. On a normal day, that makes a small team very productive.

Every so often, something goes bump in the night. In September, the Codex app started losing its ability to control Chrome. It took about a month to find the cause: one settings file that was a link to our Git repository instead of a regular file.

The story is worth telling because of where the problem lived. It was in the harness.

What is harness engineering?

A harness is everything around the AI model that shapes how it works:

  • Instruction files the agent reads at the start of every session: CLAUDE.md for Claude Code and AGENTS.md for Codex.
  • Skills that teach it how we do specific work, such as building dbt models, designing a database, or editing a model in DbSchema.
  • Plugins and settings, including what the agent may do without asking first.

Harness engineering is building and maintaining that environment with the same discipline we apply to any other code. For us, that means the harness lives in source control.

Why the harness belongs in source control

We learned this one the hard way. When our analytics engineer started building dbt models, his machine didn’t have our dbt skills configured the way mine did. The requests were the same kind of work, but the instructions behind them were different, and his models came out wrong in ways we didn’t catch until later. Cleaning that up took me real time.

Now the harness lives in one Git repository. Each engineer’s Claude Code and Codex folders link back to it with symbolic links (symlinks), which are pointers from one location on disk to a file somewhere else. A change to a skill can be deployed consistently: each engineer runs git pull, and their tools pick up the same version. Every change has a history we can review, and two engineers asking for the same model get work built to the same standard.

The same reasoning applies to our CI/CD pipeline, which runs an AI code review on every pull request. We vendored our dbt skills into the project repository, meaning we copied them in and track them there, so the automated reviewer checks the work against the same standards the engineers used to write it.

One Git repository holds the team harness: instructions, skills, plugins, and settings. Symlinks connect it to each engineer's Claude Code and Codex folders. AGENTS.md is a link to CLAUDE.md. The Codex browser settings file is the exception: Codex rejects a link there, so it is a regular copy that our doctor check compares with the repository.

Keeping Claude Code and Codex in sync

Running Claude Code and Codex side by side adds its own work, because they read the same kinds of files in slightly different ways. Three practices keep them aligned.

One instruction file. Our AGENTS.md is a symlink to CLAUDE.md, so both tools read exactly the same instructions and the two can’t drift apart.

No @ references. In Claude Code, writing @path/to/file in an instruction file pulls that file’s contents into the session. Codex treats the same text as plain text, so the referenced file never loads. Instead of maintaining two versions, we stopped using @ in shared instructions.

Progressive disclosure. The main instruction file stays short and points to detail the agent reads only when the task needs it: the dbt conventions when it’s writing dbt, the modeling standards when it’s designing tables. Each session stays focused on the work in front of it. That only works if the harness is organized so both tools find the same files in the same places.

The week Codex lost Chrome

The Codex app can drive Chrome directly: open a page, read it, click through it, and test what we built. Starting in September, that began to fail. At first Codex said it couldn’t verify its saved browser permissions. After an app update on October 9, it returned Browser is not available: chrome, even though Chrome opened fine for me.

We went at it repeatedly, using GPT-6.1 Sol and GPT-6 Astra on their high reasoning settings. Each attempt reinstalled Chrome or Codex, matched versions, updated everything, and restarted. Nothing changed. Then I tried Codex on my Mac mini (M4), and Chrome worked there. We created a brand-new user account on my MacBook Pro (M5), and it worked there too. That narrowed the problem to something in my own account on the MacBook Pro.

Finally, I switched to the strongest setting available, GPT-6 Astra on Ultra. It compared my account with the working one and found the difference. On the MacBook Pro, the Codex browser settings file, ~/.codex/browser/config.toml, was a symlink into our repository. The Mac mini had never received that link. Codex refuses to read that file through a symlink. Replacing the link with a regular file containing the same settings brought Chrome back immediately.

Why I call it a bug

Codex may have a good reason to reject a symlinked settings file, since a link can point somewhere an application shouldn’t trust. The problem is how it failed.

  • It changed without notice. As far as we can tell, the file worked as a link for about two months, from early July until September, before Codex stopped accepting it.
  • The error pointed the wrong way. Codex said the browser was unavailable. The actual reason, Codex TOML path must not be a symlink, is written into the Codex computer-use component installed on the Mac. It never reached the screen. That one sentence would have sent us straight to the file.
  • The rule is unstated. The Codex source has a setting, allow_symlinked_codex_home, whose description gives the reasoning: a link’s target can change between commands or point outside the Codex home. The setting appears on no documentation page, and Issue #46787, open since September 20, reports that the computer-use component ignores it even when it is set. Codex reads AGENTS.md through a symlink without complaint, so nothing told us which files the rule covers.
  • We are not the only ones. Other users have reported the same rejection on OpenAI’s public issue tracker. Issue #35310, “full-CDP silently disabled when CODEX_HOME is a symlink,” has been open since July 25 with a bug label. Issue #44988, open since September 12, describes Chrome control failing with the same symlink message. Neither has a response from OpenAI.

We sent our own report from inside the Codex app on October 5. A clear error naming the file would have saved us most of a month. Three changes would close this: document the setting, honor it in the browser component, and show the TOML error on screen. If we have misread this, OpenAI, tell us and I’ll update this post.

What we changed

We kept the source-control approach. The browser settings file is now a regular copy, and our setup instructions no longer create the link.

We also extended doctor.sh, the setup check every engineer runs on their machine. It already confirms that each symlink points into the repository. Now it also fails if the browser settings file is a link, and it compares the settings in the local copy with the version in the repository, so a change on either side shows up the next time anyone runs it. Claude Code and Codex each have their own doctor commands, but those check the tool. Ours checks the harness.

When a tool changes under us, we fix it once, in the harness, and every engineer and agent picks up the fix with their next pull.

How this carries into client work

An AI agent is only as consistent as the environment around it. We give that environment the same version control, review, and testing as the data pipelines it helps us build, and we bring the same approach to client teams putting agents to work on their data.

Next, we’re looking at observability: using OpenTelemetry to record what our agents actually do during a session.

If your team is using AI agents for data work and wants them to produce the same results for everyone, let’s talk.

Share: