Skip to content
Maxwell CollinsContact

Owner's rep, an AI agent watchdog inside the coding tool

An owner's representative inside the AI coding tool, watching the agent for an owner who judges work by evidence.

What it achieved

Catches AI agents dropping part of the job or claiming unproven work, and writes the one-key correction.

The short version

An owner directing AI coding agents learns the moment one drops part of the job or claims work it hasn't proven, with the correcting message already written for one keypress. Maxwell built this owner's representative (owner-rep) to sit inside the AI coding tool. It watches the agent for an owner who judges work by its evidence instead of reading every line. It works out the job from the owner's own messages and shows where things stand above the prompt. It flags dropped or unproven work and writes the correcting message so one keypress sends it. On request, it checks the agent's claims against the real files and tests. Anyone can install it free under the MIT licence, and his own AI sessions report to it.

The problem

An owner who directs AI agents sees only what the agent says unless something checks it against the evidence. Agents drop parts of the request, claim work they haven't proven, report success without running a test, or take the easy route and describe it as the hard one. The owner finds out later, when the thing he paid for doesn't work. On a building site, an owner's rep exists for exactly this: someone who reads the drawings, walks the site and tells the owner what is really true.

In use

  1. As the owner talks to the agent, owner-rep writes the job down from his messages only: the result, what it's for, what counts as done, and the current step.
  2. A row above the prompt shows at a glance where things stand.
  3. When the agent drops something or claims something unproven, a short note appears with the correcting message already written. One key sends it.
  4. Press 3 and it checks the agent's claims against the real files and tests.

What it achieved

  • His own AI sessions report to it, and it has kept records for 32 sessions at once.
  • The owner corrects course with one keypress instead of writing a paragraph: each problem arrives with the correcting message already written.
  • Claims are judged by the real work, not the agent's word. On request it opens the files and runs the tests in a sealed copy of the project, in about two minutes, and marks each claim as holds, false or not shown.
  • It is proven to catch what it should: a self-check plants 837 known mistakes and the rep must catch every one, and twelve real agent sessions replay as tests.
  • It works wherever the AI coding tool runs, on Ubuntu, macOS and Windows, tested across four versions of the tool.

The software

Screens of the running system, on invented demo data.

Terminal: the owner's request for a yoga studio booking tool, and below it the rep's row stating the job and 'working'.
1The rep writes the job from the owner's first message and shows it in a row while the agent works.
Terminal briefing card: Done means 12 things, Stands, Means, a Left out list, Next, and a boxed message with numbered keys.
2Pressing 1 opens the briefing: what stands, what was left out, and a message ready to send.
Terminal card after Check it: claims marked false, not shown and since then, Checked: 5 hold, and a new boxed message.
3Pressing 3 checks the briefing's claims against the session record and the project files.
Terminal prompt filled with the rep's correcting message listing three fixes and a hold on tests until the owner says go.
4One key puts the rep's correcting message into the prompt, ready for the owner to send.

The full record

On this page
In one sentence

Maxwell built owner-rep, an owner's representative that runs inside the AI coding tool and watches the agent on behalf of an owner who judges the work by the evidence it produces instead of reading every line, building the objective from the owner's messages alone, flagging work dropped or claimed without proof, writing the correcting message so one press sends it, and on request checking each claim against the real files and tests; it measures 11,719 lines of application code, 32,814 lines of tests in 12 files (759 test cases), a self-check that plants 837 known defects, 2,959 lines of Markdown and YAML explaining its rules, and 791 commits. He builds by directing AI agents, and he built this system that way.

lines of application code
11,719
lines of tests
32,814
planted defects caught
837
commits
791

What it does

Holds the objective in the owner's words

  • Built from the owner's messages only. An Opus call reads every message the owner typed in the session, weighted by kind, and writes the objective in four parts: the result he wants, what it is for, the conditions for done, and the current step. The agent's own summaries never feed it. A plan the owner approved counts as his ask.
  • Six expectations per job. Each job carries the standing expectations an owner has of any contractor, held beside the objective.
  • "Works" and "fact" conditions. Every condition for done is typed: something that must work where the user meets it, or a fact that must be true. Sign-off on a condition comes only from someone who did not build it.

Shows the owner where things stand, at a glance

  • A row above the prompt. It shows the wanted result in the rep's words and what the agent is doing now. A mark appears when the session needs the owner.
  • The briefing card, on 1. The result, with a count of done conditions shown and still open; where the work stands; what the agent's last message means in plain words; what was left out; the next step; and a ready message that one press puts in the prompt.
  • "Owner rep:" notes. The owner can speak to the rep directly by starting a message with "Owner rep:", and it adjusts the objective or its watch.

Speaks up only when it costs the owner

  • Heads up. The rep takes a quiet look every eighth model request and at each stop. It stays silent unless something costs the owner: work he asked for was dropped, a claim was made but not shown, a test was never run, or the agent took the easy option.
  • An output gate. While conditions for done are open, the rep refuses the agent's attempts to end the turn with a stop sentence.

Checks every claim against the real work

  • 3, Check it. An independent claude -p run in a throwaway copy-on-write clone of the project, under the sandbox with a computed write-deny list and the network closed. It reads the full session record (through AgentsView when present), opens the files, runs the project's tests, and marks each of the agent's claims as holds, false, not shown, or changed since.
  • Measured cost. A check runs in about two minutes on roughly 210,000 fresh tokens plus 2.25 million cache tokens.

Keeps a record that can be replayed

  • One record per session. The rep keeps its objective, notes and findings per session; it has held records for 32 sessions at once.
  • A call log with replay commands. /owner-rep-counts shows what the rep spent and found; /owner-rep-replay re-runs a past call so its reasoning can be inspected.
  • Prompt-injection fencing. Text from the agent and the project is fenced so nothing in a file or tool output can instruct the rep.

Runs anywhere Claude Code runs

  • No servers, no telemetry and no dependencies. It runs on macOS, Linux and Windows and draws in the terminal, the desktop app and VS Code. It installs from a public plugin marketplace under the MIT licence.

What it achieved

  • 791 commits, 683 of them on the main line.
  • 759 test cases in 32,814 lines of tests, nearly three lines of tests for every line of application code.
  • The doctor plants 837 known defects and requires the rep to catch each one.
  • Twelve real-session scenarios captured from actual agent runs serve as end-to-end tests.
  • Proven across versions. CI runs on Ubuntu, macOS and Windows, and the rep is tested on Claude Code 2.1.286, 2.1.310, 2.1.325 and the newest release.
  • It serves any owner who directs AI agents and judges their work by tests, gates and recorded proof, and it is the rep his own sessions report to.

The problem it solves

An owner who directs AI agents, and judges their work by evidence rather than by reading every line, sees only what the agent says unless something checks it. Agents drop parts of the request, claim work they have not proven, run no test and report success, or take the easy route and describe it as the hard one. The owner finds out later, when the thing he paid for does not work where his user meets it.

A human owner's representative on a construction job exists for this reason: someone who reads the drawings, walks the site and tells the owner what is really true. owner-rep puts that role inside every session, holds the objective in the owner's words so it cannot drift toward what the agent prefers, and turns each problem into a ready message so the owner corrects course with one press instead of a paragraph.

How he built it

  • A pure core and a thin adapter. hooks/rep.ts (7,826 lines) holds every decision as pure logic that tests can drive directly; hooks/register.tsx (3,893 lines) connects it to Claude Code's hooks and screen. The application sits in 3 files and its tests in 12.
  • A governing document. NORTH_STAR.md states what the rep is for and settles every design question against it.
  • Objective from the owner, never the agent. The rule that the objective comes from the owner's words is enforced in code: the builder reads only the owner's messages.
  • Tests outweigh code. The 837-defect doctor, the twelve captured scenarios and the three-platform CI mean each behavior is proven against a known failure before it ships.
  • Independent checks by construction. Check it runs in a disposable clone with writes denied and the network closed, so verifying a claim can never change the project.
  • Maxwell built it by directing AI agents, and the rep watched the agents building it.