Blog · one project, 8 to 15 November 2026
A client questions tracker went from a list of GitHub issues to a finished product on a live staging site, then into main. An AI agent did the building and a second one reviewed it. This page is about the whole project: how the loop works, one issue followed from start to finish, what review caught, where the agent stopped for a person, what the project forced back into the harness, and what the logs say once they are audited.
Counted on 15 November 2026 from GitHub (all 53 issues and 72 pull requests: 71 merged into staging and one release into main), the project's own logs and its last CI run. About 8,400 lines of product code and 13,700 lines of tests on main, migrations excluded. The reviewer-run count is a minimum. It is counted after removing entries that the hooks logged twice, and the usage log records none after 12 November, although pull requests 113 to 124 have triage comments. Staging is live on Render.
The owner started with eleven issues, labelled them ready, and typed one command: /work-the-queue (/harness:work-the-queue if you installed the harness as a plugin). From there the agent repeated the same six steps for each issue, and added issues of its own when it found work, such as local PostgreSQL and a faster test suite. By the end there were 53 issues and all of them were closed. Nothing about the order is clever. What matters is that every step ends in something you can check on GitHub.
staging with Closes #n, and a description of what was verified and what was not.staging only. The loop never merges into main, and a hook refuses it. The one release into main (#125) was its own pull request, made at the owner's instruction.The whole setup lives in one file in the project, .claude/harness-loop.json. This is the real one at the end of the project:
{
"base": "staging",
"protected": ["main"],
"queue": { "label": "ready", "parent": null },
"parkedLabel": "waiting",
"autoMerge": true,
"mergeMethod": "merge",
"checks": [
"cd backend && python manage.py check",
"cd backend && python manage.py makemigrations --check --dry-run",
"cd backend && python manage.py test --noinput",
"cd frontend && npm run lint && npm run typecheck && npm test && npm run build"
],
"risky": ["backend/accounts/", "migrations/"],
"stopFor": [
"who can see or change a project",
"anything that sends a message from the app"
]
}
On the first day the list of risky paths also held backend/drafting/ and the stop list named what client data goes to the drafting API. The drafting feature was removed later (#116), and the file shrank with it.
Merged pull requests and closed issues per day (UTC), from GitHub. The first two days were the heaviest. Nothing merged on 13 and 14 November.
| Date | PRs merged | Issues closed | What landed |
|---|---|---|---|
| 8 Nov | 16 | 13 | Backend and frontend scaffolds, CI, accounts, projects and members, questions with status and recorded answers, the Still open view and the question screens, a drafting feature, local PostgreSQL, a faster test hasher, a staging deploy on Render. Three harness updates and a record of two lessons. |
| 9 Nov | 16 | 12 | Per-run test databases and the two regressions their review found (#59, #60), row-lock tests with real threads, a design system and its screens in two rounds, the second from the owner's example. Three harness updates, among them the design-direction skill. |
| 10 Nov | 19 | 12 | One workspace screen per project, an English and Azerbaijani language layer, DESIGN.md, a hook that asks before merging a PR with no review triage (#86), and a run of hardening: the answer form's date near Baku midnight, a check for a missing throttle table, test passwords made in the test, and a README that says what was tested and what was not. |
| 11 Nov | 4 | 4 | Throttle rows purged at every start, the admin sign-in sharing the app's attempt limit, offboarding as deactivation, throttles exact under simultaneous requests. |
| 12 Nov | 8 | 6 | A paginated project list, sign-in returning to the page that asked for it, adding and removing members, the staging database moved to Supabase, and a manual backup and restore routine with its decision recorded. |
| 15 Nov | 9 | 6 | The drafting feature removed (#116), the client answer link in three pull requests, feedback from first use, client accounts, a README saying the screens had been clicked through on staging, and the release of staging into main (#125). |
Issue #4 asked for sign-in and sign-out, with anonymous access to the API denied. It touches backend/accounts/, a risky path, so the plan waited for approval. The PR was open for 29 minutes, and review took three rounds and one decision from the owner.
The PR description carried the evidence: checks with exit codes, 20 backend tests and 11 frontend tests, and three mutation checks, where removing a protection (CSRF on login, the default permission class) makes a named test fail. Then an end-to-end run through the real proxy, which failed the first time. The path rewrite dropped a trailing slash, so every sign-in POST returned a 500 while every unit test passed. The fix and its regression test went into the same PR.
| Finding | Label | Outcome |
|---|---|---|
| The login throttle keyed on a client-controlled header, so a fresh header on each attempt never hit the limit | blocker | Fixed, with a test that failed before (400 instead of 429) |
A database migrated before the user model changed now fails migrate | blocker | README note; no deployed database exists yet |
| Sign-out showed "signed out" even when the backend refused | blocker | Fixed, test failed before the fix |
Two emails differing only in case crashed the admin forms and createsuperuser | blocker | Fixed; three tests failed before |
Cookies are not marked Secure | nit | Deployment hardening, moved to the deploy issue |
The fix for the forged header made every sign-in reach Django from the web server's own address. The throttle became one bucket for everybody, so ten bad attempts a minute from anyone would lock everyone out. The plan's rule, "10 per minute per IP", had no trustworthy IP behind a proxy.
decision The agent did not pick a rule. It asked the owner, who chose a throttle per account. Round 3 verified it through the real proxy: the tenth bad attempt on one email got a 400, the eleventh a 429, even with a forged header on every attempt, and another account signed in right after.
65 of the 72 pull requests carry a review triage comment, and so do 51 of the 54 that touched backend or frontend code. The three code pull requests without one are #84, #93 and #125, the release. Where a triage ends in the status line triage-review prescribes, the project has 64 rounds. 8 of them ended not ready, and those lines report at least 126 blockers fixed. 15 of the 65 triage comments use another format and are not in that count. These are the catches worth remembering, because none of them showed up in a green test run:
retry-after (drafting, #9). The API client would have waited as long as the server told it to.-k is --keepdb in a comment, in the code and in the README. In Django's test runner it filters tests by name. The review caught it in round 1.The one pull request merged without its review (#59, a per-process test database name) is covered under the logs. The review that ran afterwards found two regressions. The reviewer is read-only on git. On an earlier project a reviewer ran git checkout and left the shared checkout on a detached HEAD, so now it may only read, and anything it wants to run goes in a throwaway file outside the repo.
The agent is allowed to be wrong about a function. It is not allowed to decide who can see client data. Three early places where the loop stopped on purpose:
| Issue | Why it stopped | What the person decided |
|---|---|---|
| #5 projects | On the stop list: who can see or change a project | The access table: owners and members, a 404 for outsiders, no delete in v1 |
| #4 accounts | A throttle with no trustworthy client IP | Throttle per account |
| #9 drafting | Stop list and a risky path: what client data goes to the Claude API | Send only question text, why it matters and what it blocks. No names, answers or dates. No stored drafts. Sonnet by default. After the owner checked the data-retention terms, one addition: the endpoint refuses to start on a model with a longer retention period. The whole feature was removed later (#116) |
The plan for #9 listed five decisions with a recommended answer for each, and said plainly that it had not verified the account's data terms, because that is a fact about the account. It then waited. The deploy issue (#10) was parked the same way. The agent prepared everything in the repository, then waited for the owner to create the service in Render. The owner ran the smoke test against the live site: 12 checks, 12 passed.
The project was also the harness's first full test. Whenever the run hit a problem in the harness itself, the project session reported it and the fix went upstream, with a test, through the same issue loop. Seven of the project's 72 pull requests touched only the .claude folder: harness updates and recorded lessons.
| What happened | What changed in the harness |
|---|---|
| A guard update took five review rounds. Each fix for a false alarm removed a block the old command splitter had caught by accident. | Guards are never weaker than the plain split by construction, proved by a fuzz test of 8,000 generated commands and a replay of 6,359 real commands, none weaker (#11, #12 and #14). |
Hundreds of chained evals made a guard run for 22 seconds against a 10 second hook limit. A hook that times out decides nothing. | Capped the expansion. 5,000 chained evals now take under 10 ms, and a test pins eight extreme shapes. |
| The dependency review proposed packages released three to six days earlier. | A release-age rule: pin the newest release at least two weeks old. The drafting feature got anthropic 2.3.0, not the 2.6.0 released three days before. |
| Only skills the loop named ever fired. The rest sat unused. | The loop now names the skill at each step where it matters. |
| Reviews found real defects, and some skills guard data and secrets. | The reviewer and five high-stakes skills are pinned to Opus, and pins only go up. A test stops anyone pinning a skill down, because a skill's model lasts for the rest of the turn. |
/promote-lesson edits a skill, and the installer then skipped every later update to it. | Updates merge recorded incidents only when that provably loses nothing. It took three fresh-eyes rounds to get right. |
| A lesson could reach the shared vault with a placeholder instead of a rule. | --rule is now required on the first record. |
| A pull request was merged before its review ran (#59). The review afterwards found two regressions. | The project added a hook that asks before merging a PR with no triage, and the harness now has it as guard-review-before-merge, a deny rather than an ask (see the logs below). |
The project's guards asked 17 times about rm -rf, many of them for scratch folders the agent had just made. | Scratch space the guard can prove from the command no longer asks. A variable is trusted only when every write to it is a plain assignment, which took two fresh-eyes rounds to get right. |
| The plugin and the project install both registered every hook, so each ran twice and the logs counted both. | The plugin's copy stands down when the project has its own, and a test covers all five hooks. |
The usage log never recorded a reviewer called by its plugin-qualified name, harness:fresh-eyes-reviewer. | The harness: prefix is stripped, as the skill path already did. |
| 15 of 65 triage comments did not use the status line the merge guard looks for. | triage-review now says the line is required exactly, and the guard's denial says how to recover. |
| The harness's own hook tests wrote their fixtures into the project's decisions log. | The tests log to a temporary directory. |
| Four large heredocs were refused with "unexpected EOF" and no guard decision. | Tested and ruled out: the guards allow them in under 10 ms. The cause is not the hooks. |
The honest part. Three of the harness's own changes (#6 to #8) were merged on a green CI run without a fresh-eyes review. A later review found the guards had become weaker. That is why "never weaker" is now a test, and why the riskier harness changes since then went through the same review the project's code gets.
By issue #9 the backend test suite took between eight and eleven minutes (510 seconds at 146 tests, 683 at 233). The agent kept waiting on full runs, issue after issue, until the owner asked why it took so long.
Timing one unit explained it. On Windows, localhost tries the IPv6 address first. Nothing listened there, so each database connection waited 10.03 seconds against 0.06 seconds for 127.0.0.1. A suite of repeated connections multiplied it. Pointing the test servers at 127.0.0.1 took one group of tests from 130 seconds to 12.
Both findings were recorded as lessons in the project (localhost-ipv6-windows and time-one-unit-before-waiting), with the cost of each, so the next project does not repeat them. By the end the backend suite had grown to 512 tests, and the last CI run read "Ran 512 tests in 24.840s".
The harness records which skills load, by name only and never the prompt, and every guard decision. These are the project's logs for the whole run, 8 to 15 November, after removing the entries the hooks logged twice (explained below). The chart counts what the usage log recorded, and the reviewer bar is a minimum.
rm -rf of something not on the regenerable list, 12 on wiping a data store, and 3 on a migration or production config. The denials were 6 shell writes to .env, 2 of rm -rf on a broad path, and 1 push to the base branch. 10 of the 62 came on the first day.rm -rf asks were scratch folders the agent had just made, which is prompt fatigue, the thing the guard tests are written to prevent. That is fixed in the harness for the cases the guard can prove from the command. Several of the data-wipe asks were DROP DATABASE on scratch databases made in earlier commands. The guard cannot tell those from a real one without guessing at names, so it still asks. I did not count how many of the asks were mistakes; a guess would flatter the guards.auto mode, and the merges that followed went ahead. An ask that nobody answers is not a gate, so the harness version of that hook is a deny. It also showed that triage comments do not all follow one format, so the harness version looks for the status line the skill asks for.CLAUDE.md), a new endpoint breaking hand-built test mocks (the scope-change skill already says to check mocks), and slow runs waited on instead of timed (the profiling skill already says to measure). A written rule did not fire at the moment it was needed. That is the finding the harness has no good answer to yet.The honest part. One project, one owner, and the same person ran the harness and wrote this up. The audit found the harness doing its job (reviews caught real defects, the .env guard denied six times) and also costing something: about thirty prompts around scratch folders and scratch databases, some of them avoidable. It did not find out whether the harness saved time.
You need Claude Code, the gh CLI signed in to GitHub, and a repository with CI.
/plugin marketplace add rmusayevr/claude-harness
/plugin install harness@harnessOr from a checkout: node install.mjs install --profile full --target your-project/harness:start. It asks what you are doing and tells you what to say and what will happen..claude/harness-loop.json like the one above: your base branch, the checks that must pass, the paths that are risky, and the things only a person may decide. Keep main protected.ready. The agent can also write an issue itself when it finds work, but only from a concrete finding./harness:work-the-queue (/work-the-queue if you used the installer). Approve the plans it posts, answer its decisions, and say "merge" when you are satisfied. It will not merge into main.Give it a small project first. Check the project's .claude/harness-usage.log after a week with npm run usage in the harness checkout, and delete what you never use.
main merged on 15 November. The sentence from the first-day write-up that no real client data was used in the repository, the tests or the fixtures was not re-checked for this update.