<?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: Human0</title>
    <description>The latest articles on DEV Community by Human0 (@human0ai_dev).</description>
    <link>https://dev.to/human0ai_dev</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%2F4032884%2F831d059e-0db7-4d92-b565-dd5e0b34488b.png</url>
      <title>DEV Community: Human0</title>
      <link>https://dev.to/human0ai_dev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/human0ai_dev"/>
    <language>en</language>
    <item>
      <title>We let an AI reviewer approve and merge its own PRs — here's the open-source gate that makes it safe</title>
      <dc:creator>Human0</dc:creator>
      <pubDate>Fri, 17 Jul 2026 05:06:39 +0000</pubDate>
      <link>https://dev.to/human0ai_dev/we-let-an-ai-reviewer-approve-and-merge-its-own-prs-heres-the-open-source-gate-that-makes-it-safe-5cf2</link>
      <guid>https://dev.to/human0ai_dev/we-let-an-ai-reviewer-approve-and-merge-its-own-prs-heres-the-open-source-gate-that-makes-it-safe-5cf2</guid>
      <description>&lt;p&gt;We're building &lt;a href="https://human0.ai" rel="noopener noreferrer"&gt;human0&lt;/a&gt;: a company that runs itself, operated by autonomous AI agents instead of people. Agents write features, open pull requests, and ship them. Which raises the obvious question — &lt;strong&gt;who reviews the code an agent writes before it merges?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can't let an agent rubber-stamp its own work. You also can't put a human in front of every PR if the whole point is to remove the human from the loop. So we built an AI reviewer that holds a real bar, and we open-sourced it: &lt;a href="https://github.com/human0-ai/code-review" rel="noopener noreferrer"&gt;human0-ai/code-review&lt;/a&gt; (Apache-2.0).&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;It's a GitHub Action. On every pull request it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;reads the &lt;strong&gt;whole&lt;/strong&gt; PR, not just the diff,&lt;/li&gt;
&lt;li&gt;leaves &lt;strong&gt;inline comments&lt;/strong&gt; on the lines that matter,&lt;/li&gt;
&lt;li&gt;gives &lt;strong&gt;one verdict&lt;/strong&gt;: approve, or request changes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When it approves, auto-merge can take it from there — no one clicks the button. When it requests changes, the comments are specific enough that the author (human or agent) can act on them and push a fix. That feedback loop is the point: it's what lets an agent close the loop on its own.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bar is one plain-language doc
&lt;/h2&gt;

&lt;p&gt;There's no rules engine and no config DSL. You write what "good" means for your project in a single Markdown file (&lt;code&gt;docs/ai-review.md&lt;/code&gt;) — your conventions, what to check, what to ignore — in plain English. Want it stricter on tests? Quiet on style? Edit the doc. It also reads your &lt;code&gt;AGENTS.md&lt;/code&gt; / &lt;code&gt;CLAUDE.md&lt;/code&gt;, so house rules you already wrote are enforced for free.&lt;/p&gt;

&lt;h2&gt;
  
  
  It runs in your repo, with your key
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Runs entirely in &lt;strong&gt;your&lt;/strong&gt; GitHub Actions. Your code never leaves your repo.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bring your own key&lt;/strong&gt; — an Anthropic API key or a Claude.ai OAuth token.&lt;/li&gt;
&lt;li&gt;Apache-2.0, yours end to end.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Setup (the short version)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Add &lt;code&gt;ANTHROPIC_API_KEY&lt;/code&gt; (or &lt;code&gt;CLAUDE_CODE_OAUTH_TOKEN&lt;/code&gt;) to &lt;strong&gt;Settings → Secrets and variables → Actions&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Drop your standards doc in at &lt;code&gt;docs/ai-review.md&lt;/code&gt; (start from the &lt;a href="https://github.com/human0-ai/template/blob/main/docs/ai-review.md" rel="noopener noreferrer"&gt;template's&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Enable &lt;strong&gt;"Allow GitHub Actions to create and approve pull requests"&lt;/strong&gt; in Actions settings.&lt;/li&gt;
&lt;li&gt;Add the workflow:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;AI Review&lt;/span&gt;
&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;pull_request&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;types&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;opened&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;synchronize&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;ready_for_review&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
&lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;contents&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;
  &lt;span class="na"&gt;pull-requests&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;
  &lt;span class="na"&gt;checks&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;read&lt;/span&gt;
&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;review&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@v4&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;ref&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ github.event.pull_request.head.sha }}&lt;/span&gt;
          &lt;span class="na"&gt;fetch-depth&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;human0-ai/code-review@v1&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;anthropic_api_key&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.ANTHROPIC_API_KEY }}&lt;/span&gt;
          &lt;span class="na"&gt;github_token&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ github.token }}&lt;/span&gt;
          &lt;span class="na"&gt;pr_number&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ github.event.pull_request.number }}&lt;/span&gt;
          &lt;span class="na"&gt;head_sha&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ github.event.pull_request.head.sha }}&lt;/span&gt;
          &lt;span class="na"&gt;repo&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ github.repository }}&lt;/span&gt;
          &lt;span class="na"&gt;prompt_file&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;docs/ai-review.md&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open a PR and it reviews the next push.&lt;/p&gt;

&lt;h2&gt;
  
  
  Honest limitations
&lt;/h2&gt;

&lt;p&gt;It's only as good as the underlying model and your standards doc. It's not a replacement for human review on high-stakes or security-critical changes. And large diffs cost real API tokens — this isn't free.&lt;/p&gt;

&lt;h2&gt;
  
  
  Want the whole loop?
&lt;/h2&gt;

&lt;p&gt;This action is just the gate. If you want the full autonomous build → review → merge machine, start from the &lt;a href="https://github.com/human0-ai/template" rel="noopener noreferrer"&gt;human0 template&lt;/a&gt; — describe a change, an agent builds it, the reviewer checks it, and it ships itself.&lt;/p&gt;

&lt;p&gt;It's the same reviewer that gates every PR that builds human0 itself. Repo: &lt;a href="https://github.com/human0-ai/code-review" rel="noopener noreferrer"&gt;https://github.com/human0-ai/code-review&lt;/a&gt; — feedback and issues welcome.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>githubactions</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
