<?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: Wonil Cho</title>
    <description>The latest articles on DEV Community by Wonil Cho (@monglong0214).</description>
    <link>https://dev.to/monglong0214</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%2F4118827%2Fd0700b1b-3754-4125-94b9-bfef358a44db.jpg</url>
      <title>DEV Community: Wonil Cho</title>
      <link>https://dev.to/monglong0214</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/monglong0214"/>
    <language>en</language>
    <item>
      <title>An AI code reviewer that remembers its findings still needs a stop condition</title>
      <dc:creator>Wonil Cho</dc:creator>
      <pubDate>Thu, 10 Sep 2026 08:00:58 +0000</pubDate>
      <link>https://dev.to/monglong0214/an-ai-code-reviewer-that-remembers-its-findings-still-needs-a-stop-condition-46o9</link>
      <guid>https://dev.to/monglong0214/an-ai-code-reviewer-that-remembers-its-findings-still-needs-a-stop-condition-46o9</guid>
      <description>&lt;p&gt;An automated code reviewer can get stuck in a loop that looks productive:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;It finds three problems.&lt;/li&gt;
&lt;li&gt;An agent fixes two and changes something nearby.&lt;/li&gt;
&lt;li&gt;The next review finds one old problem again, plus two new ones.&lt;/li&gt;
&lt;li&gt;Repeat until somebody gives up.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The failure is not just that the model is imperfect. It is that the loop has no explicit end state.&lt;/p&gt;

&lt;p&gt;I built an optional review runner in &lt;a href="https://github.com/MongLong0214/frontier-simplify" rel="noopener noreferrer"&gt;frontier-simplify&lt;/a&gt; to make that failure visible and bounded. It is a local maintainer tool, not a hosted service and not a merge gate. The runner keeps concrete findings across review rounds, checks later repairs against those findings, and gives a human the evidence when the automatic budget is exhausted.&lt;/p&gt;

&lt;h2&gt;
  
  
  Remembering findings is the first requirement
&lt;/h2&gt;

&lt;p&gt;A second review should not behave as though the first review never happened.&lt;/p&gt;

&lt;p&gt;The runner stores the original findings and carries them into the next attempt. If the target branch changes, history is rewritten, or the supplied context changes, it performs a fresh scope review without resetting the PR's overall attempt budget. Identical inputs reuse the most recent attempt rather than spending another model call on the same failure.&lt;/p&gt;

&lt;p&gt;That produces a more useful question on the second pass: &lt;em&gt;was this particular concern repaired?&lt;/em&gt; It is not just another open-ended request to inspect the whole pull request.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three is a backstop, not a magic number
&lt;/h2&gt;

&lt;p&gt;I chose three attempts as a practical safety mechanism, not because I have evidence that three reviews is the correct amount for every pull request.&lt;/p&gt;

&lt;p&gt;A cap prevents an unattended agent from turning a small review into an unbounded process. But reaching the cap does &lt;strong&gt;not&lt;/strong&gt; mean the code is unsafe, and staying below it does &lt;strong&gt;not&lt;/strong&gt; mean the code is safe. It means automated review has reached the point where it should stop spending more model calls and preserve what it knows for a person.&lt;/p&gt;

&lt;p&gt;The runner returns a distinct human-handoff result when the budget ends. The handoff includes the original findings, the latest review, and the evidence needed to see what changed. It does not approve, merge, push, or post on anyone's behalf.&lt;/p&gt;

&lt;h2&gt;
  
  
  The hard part is still scope
&lt;/h2&gt;

&lt;p&gt;A useful comment on the project pointed out a limitation: attempt limits cannot decide whether a finding belongs in the current task. A reviewer needs some definition of what the PR is meant to change.&lt;/p&gt;

&lt;p&gt;I do not want to answer that by creating another permanent process document or requiring a human approval step for every PR. My current direction is narrower:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;derive a provisional scope from the PR description, linked issue, diff, and tests;&lt;/li&gt;
&lt;li&gt;require each finding to point to the evidence that makes it relevant;&lt;/li&gt;
&lt;li&gt;mark the review as under-specified when that evidence is missing, instead of silently expanding the task;&lt;/li&gt;
&lt;li&gt;keep the attempt limit as a backstop for ambiguous or badly specified work.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is deliberately not presented as solved. If a model writes the scope and then judges its own work against it, it can rationalize the very expansion the guard is supposed to prevent. The design question is how much independent evidence is enough before a finding stays in the loop.&lt;/p&gt;

&lt;h2&gt;
  
  
  Running it
&lt;/h2&gt;

&lt;p&gt;The review runner is a separate optional skill. It runs from a trusted local maintainer host outside the repository being reviewed:&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;export &lt;/span&gt;&lt;span class="nv"&gt;REVIEW_CODEX_MODEL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;gpt-6-astra
skills/frontier-simplify-review/scripts/review-pr.sh &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$CONSUMER_REPO&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$PR_NUMBER&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; auto codex
skills/frontier-simplify-review/scripts/review-pr.sh &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$CONSUMER_REPO&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$PR_NUMBER&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; status codex
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It has a default 1,800-second executor timeout. A timeout, interrupt, or termination signal preserves the failed attempt instead of quietly losing it. A status check reads evidence without starting a model run.&lt;/p&gt;

&lt;p&gt;The main point is not the number three. It is making the loop accountable: every repeated review should either resolve an earlier finding, produce new evidence, or stop and say why it cannot decide.&lt;/p&gt;

&lt;p&gt;The source, install instructions, local self-tests, and raw benchmark limits are in &lt;a href="https://github.com/MongLong0214/frontier-simplify" rel="noopener noreferrer"&gt;MongLong0214/frontier-simplify&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>devtools</category>
      <category>ai</category>
      <category>opensource</category>
      <category>codereview</category>
    </item>
  </channel>
</rss>
