I wrote this as part of Kiroween Hackathon 2026. #KiroweenHackathon26

The question

If AI agents write 90% of our pull requests, who reviews them? Agents got fast at writing code. People did not get
faster at reviewing it. I wanted a tool that gives a manager an answer for their own team, not a blog-post opinion.

Same rule, three teams

I ran one rule on three open-source teams: agents write 90% of pull requests, nothing else changes. After 13 weeks:

  • Grafana: the review queue grows by 37%, from 727 to 999 waiting pull requests, and lead time from 2.9 to 4.4 weeks.
  • Supabase: reviewers get ahead, and the queue falls from 166 to 99. Its agent PRs are smaller and quicker to review.
  • Twenty: reviews keep up, but fix-up work more than triples, from 41 to 132.

Same rule, three different answers. That is why a single industry number is not enough. These are comparisons inside a
model fitted to each team's history, not forecasts. Agents write at least 5 to 10% of these teams' pull requests today, so
90% is far beyond the data: trust the direction more than the size.

Start screen: 1959 punch cards feed a live 2026 pipeline

The old idea

In 1959 a group at MIT built DYNAMO, a language for systems where work piles up, waits and comes back. Jay Forrester's
group used it to explain why a factory swung between hiring and layoffs. A pull-request queue is the same kind of system:
work arrives, waits for review, merges, and some of it comes back as fixes. I call that last part ghost work.

This is what the model looks like, in the original 1959 card syntax (L is a level, R a rate, A an auxiliary):

R OPENA.KL=ARRIVE.K*AGSHR L BACKLOG.K=BACKLOG.J+(DT)(OPENH.JK+OPENA.JK+REWK.JK-START.JK-ABANDB.JK) R START.KL=MIN(BACKLOG.K/DT-ABDB.K,CAPAC.K) A CAPAC.K=REVIEWERS*REVRATE/SIZEMX.K 

What I built

Ghostflow is a DYNAMO interpreter in TypeScript and a model of a software team, written in the original 1959 card
syntax. It reads a public GitHub repository's history, fits the model to it, and lets you change the rules: the agent
share, the number of reviewers, a test gate, a cap on agent PR size. The cards are the controls: drag a number on a card
and the engine re-runs in your browser. Each twin opens with an answer. For Grafana at 90% agents, it reads: "To keep the review queue as short as it would be
without this change, you need about 25% more review capacity: about 89 more reviewers (447 instead of 358)."

Grafana's twin: the answer first, then the cards you can drag

The demo (2:28):

How I used Kiro, step by step

Ghostflow was planned and mostly built with Kiro.

1. Steering first. Six short files. The key one says the engine owns every number, so no AI text may invent one.

2. Then specs. Eight in all: five features and three bugfixes. Features went requirements, design, tasks (some design-first). Bugfixes
went "what happens now, what should happen, what must not change". My first spec came out too big, so I cut it down
before building.

3. Four hooks. A hook is a small action Kiro runs by itself:

  • I save an engine file: the engine tests run.
  • An agent tries to write to the reference results: the write is blocked.
  • A spec task ends: the type check and all tests run.
  • An agent finishes a turn: one line goes into my log.

Make your first hook in five minutes. You need Node 22 or newer. In your project root, add
.kiro/hooks/protect-fixtures.json:

{ "version": "v1", "hooks": [{ "name": "protect-fixtures", "trigger": "PreToolUse", "matcher": "write", "action": { "type": "command", "command": "node scripts/hooks/guard-fixtures.mjs" }, "enabled": true }] } 

And the script it runs, scripts/hooks/guard-fixtures.mjs. Kiro sends the tool call as JSON on standard input, and
exit code 2 blocks it:

let input = ''; for await (const chunk of process.stdin) input += chunk; const args = JSON.parse(input.trim() || '{}').tool_input ?? {}; const target = String(args.path ?? args.file_path ?? '').replace(/\\/g, '/'); if (target.includes('engine/fixtures/')) { console.error(`BLOCKED: ${target} is a reference result. A human edits it, never an agent.`); process.exit(2); } 

Test it in ten seconds, before any agent runs:

echo '{"tool_input":{"path":"engine/fixtures/test.json"}}' | node scripts/hooks/guard-fixtures.mjs; echo "exit $?" 

You should see BLOCKED: ... and exit 2. That line is for macOS, Linux or Git Bash. In Windows PowerShell:

'{"tool_input":{"path":"engine/fixtures/test.json"}}' | node scripts/hooks/guard-fixtures.mjs; "exit $LASTEXITCODE" 

Always pipe JSON in: run on its own, the script waits for input. One limit: the matcher write guards the write tool, not shell commands, so
keep the folder read-only in your agent's shell rules too.

Start with this one. It stops an agent from changing the answer sheet to pass the test. (My real script also
handles other field names and letter case; it is in the repo.)

4. A reviewer that cannot edit. My custom agent model-reviewer has no write tool. It runs the model checker and the
tests and reports. In one review it found that a negative setting could create pull requests out of nothing. The fix
and its test are in the repo.

5. Property tests. 15 property-test files (26 test files in all use fast-check), with rules such as "pull requests are never created from nothing".

6. MCP. A small local server lets Kiro run the twin itself while it builds.

7. IDE, CLI and Crew. The IDE for thinking through the first spec, the CLI for one clear job, Crew for a list of tasks
that runs while I do something else.

What went wrong

My first test against real history failed on all three repos. One measure was off by 867%. The model had no path for
pull requests that close without merging, and I was not even fetching open ones. A bugfix spec fixed both, and that error
fell to 258%. The twin still does not beat a simple forecast on held-out weeks, and the app says so on its Trust tab. I
treat it as a policy lab for comparing choices, not a crystal ball.

What surprised me

Honestly, the biggest surprise was how often the spec caught me, not the agent. When the model missed by 867%, my first instinct was to tune it, and writing "what happens now, what should happen" showed me the bug was in my data. Next time I'd test against real history much earlier, and keep my first spec half the size.

Try it on your own repo: https://ghostflow-six-gamma.vercel.app (or take the 60-second guided tour: https://ghostflow-six-gamma.vercel.app/?judge=1)
Code: https://github.com/Anish-Kumar-09/ghostflow