<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Anish Kumar</title>
    <description>The latest articles on DEV Community by Anish Kumar (@anish_kumar_234t).</description>
    <link>https://dev.to/anish_kumar_234t</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4283464%2F6fec0524-6c1c-45e7-9f97-70ca0c36d3e6.png</url>
      <title>DEV Community: Anish Kumar</title>
      <link>https://dev.to/anish_kumar_234t</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anish_kumar_234t"/>
    <language>en</language>
    <item>
      <title>Same rule, three teams: what a 1959 language says about AI agents and code review</title>
      <dc:creator>Anish Kumar</dc:creator>
      <pubDate>Fri, 04 Dec 2026 20:48:30 +0000</pubDate>
      <link>https://dev.to/anish_kumar_234t/same-rule-three-teams-what-a-1959-language-says-about-ai-agents-and-code-review-gfg</link>
      <guid>https://dev.to/anish_kumar_234t/same-rule-three-teams-what-a-1959-language-says-about-ai-agents-and-code-review-gfg</guid>
      <description>&lt;p&gt;&lt;em&gt;I wrote this as part of Kiroween Hackathon 2026. #KiroweenHackathon26&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The question
&lt;/h2&gt;

&lt;p&gt;If AI agents write 90% of our pull requests, who reviews them? Agents got fast at writing code. People did not get&lt;br&gt;
faster at reviewing it. I wanted a tool that gives a manager an answer for their own team, not a blog-post opinion.&lt;/p&gt;
&lt;h2&gt;
  
  
  Same rule, three teams
&lt;/h2&gt;

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

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

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

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0auugrbjy7f2d5h8y4ae.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0auugrbjy7f2d5h8y4ae.png" alt="Start screen: 1959 punch cards feed a live 2026 pipeline" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  The old idea
&lt;/h2&gt;

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

&lt;p&gt;This is what the model looks like, in the original 1959 card syntax (L is a level, R a rate, A an auxiliary):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;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
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;Ghostflow is a DYNAMO interpreter in TypeScript and a model of a software team, written in the original 1959 card&lt;br&gt;
syntax. It reads a public GitHub repository's history, fits the model to it, and lets you change the rules: the agent&lt;br&gt;
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&lt;br&gt;
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&lt;br&gt;
without this change, you need about 25% more review capacity: about 89 more reviewers (447 instead of 358)."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgu1hckjngqk8zrig3f4w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgu1hckjngqk8zrig3f4w.png" alt="Grafana's twin: the answer first, then the cards you can drag" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The demo (2:28):&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/QGWGMULCy_4" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  How I used Kiro, step by step
&lt;/h2&gt;

&lt;p&gt;Ghostflow was planned and mostly built with Kiro.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Steering first.&lt;/strong&gt; Six short files. The key one says the engine owns every number, so no AI text may invent one.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;3. Four hooks.&lt;/strong&gt; A hook is a small action Kiro runs by itself:&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Make your first hook in five minutes.&lt;/strong&gt; You need Node 22 or newer. In your project root, add&lt;br&gt;
&lt;code&gt;.kiro/hooks/protect-fixtures.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"v1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"hooks"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"protect-fixtures"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"trigger"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"PreToolUse"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"matcher"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"write"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"action"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"node scripts/hooks/guard-fixtures.mjs"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"enabled"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;chunk&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stdin&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="n"&gt;chunk&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="s1"&gt;'{}'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tool_input&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;file_path&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;\\&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'/'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'engine/fixtures/'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`BLOCKED: ${target} is a reference result. A human edits it, never an agent.`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Test it in ten seconds, before any agent runs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s1"&gt;'{"tool_input":{"path":"engine/fixtures/test.json"}}'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; node scripts/hooks/guard-fixtures.mjs&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"exit $?"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You should see &lt;code&gt;BLOCKED: ...&lt;/code&gt; and &lt;code&gt;exit 2&lt;/code&gt;. That line is for macOS, Linux or Git Bash. In Windows PowerShell:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="s1"&gt;'{"tool_input":{"path":"engine/fixtures/test.json"}}'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;node&lt;/span&gt; &lt;span class="n"&gt;scripts&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;hooks&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;guard&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;fixtures&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mjs&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="s2"&gt;"exit $LASTEXITCODE"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

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

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

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

&lt;p&gt;&lt;strong&gt;6. MCP.&lt;/strong&gt; A small local server lets Kiro run the twin itself while it builds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7. IDE, CLI and Crew.&lt;/strong&gt; The IDE for thinking through the first spec, the CLI for one clear job, Crew for a list of tasks&lt;br&gt;
that runs while I do something else.&lt;/p&gt;

&lt;h2&gt;
  
  
  What went wrong
&lt;/h2&gt;

&lt;p&gt;My first test against real history failed on all three repos. One measure was off by 867%. The model had no path for&lt;br&gt;
pull requests that close without merging, and I was not even fetching open ones. A bugfix spec fixed both, and that error&lt;br&gt;
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&lt;br&gt;
treat it as a policy lab for comparing choices, not a crystal ball.&lt;/p&gt;

&lt;h2&gt;
  
  
  What surprised me
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;Try it on your own repo: &lt;a href="https://ghostflow-six-gamma.vercel.app" rel="noopener noreferrer"&gt;https://ghostflow-six-gamma.vercel.app&lt;/a&gt; (or take the 60-second guided tour: &lt;a href="https://ghostflow-six-gamma.vercel.app/?judge=1" rel="noopener noreferrer"&gt;https://ghostflow-six-gamma.vercel.app/?judge=1&lt;/a&gt;)&lt;br&gt;
Code: &lt;a href="https://github.com/Anish-Kumar-09/ghostflow" rel="noopener noreferrer"&gt;https://github.com/Anish-Kumar-09/ghostflow&lt;/a&gt;&lt;/p&gt;

</description>
      <category>kiro</category>
      <category>ai</category>
      <category>hackathon</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
