<?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: Luccas Beck</title>
    <description>The latest articles on DEV Community by Luccas Beck (@luccas_beck_0f6eb3c4aef34).</description>
    <link>https://dev.to/luccas_beck_0f6eb3c4aef34</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%2F4216893%2F0467d92f-63d1-4ce4-b972-5406fd7245eb.jpg</url>
      <title>DEV Community: Luccas Beck</title>
      <link>https://dev.to/luccas_beck_0f6eb3c4aef34</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/luccas_beck_0f6eb3c4aef34"/>
    <language>en</language>
    <item>
      <title>The pre-merge checklist I run on every line my AI agent writes</title>
      <dc:creator>Luccas Beck</dc:creator>
      <pubDate>Fri, 30 Oct 2026 09:33:34 +0000</pubDate>
      <link>https://dev.to/luccas_beck_0f6eb3c4aef34/the-pre-merge-checklist-i-run-on-every-line-my-ai-agent-writes-2hp4</link>
      <guid>https://dev.to/luccas_beck_0f6eb3c4aef34/the-pre-merge-checklist-i-run-on-every-line-my-ai-agent-writes-2hp4</guid>
      <description>&lt;p&gt;AI coding agents are fast, and confidently wrong about 1 in 5 times. They ignore your conventions, "fix" a failing test by deleting it, and quietly refactor things you never asked about.&lt;/p&gt;

&lt;p&gt;The fix is not a better model. It is a system. Here is the checklist I run before any agent-written code hits &lt;code&gt;main&lt;/code&gt;, plus the red flags I watch for in the agent's output.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pre-merge checklist (for agent-written code)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] I read the whole diff, not just the summary&lt;/li&gt;
&lt;li&gt;[ ] No files changed that I did not expect (&lt;code&gt;git diff --stat&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;[ ] Tests cover the behaviour, and would fail if the code were wrong&lt;/li&gt;
&lt;li&gt;[ ] No test deleted, skipped, or loosened&lt;/li&gt;
&lt;li&gt;[ ] Lint, types, build pass (output seen, not claimed)&lt;/li&gt;
&lt;li&gt;[ ] No new dependency, or it is justified&lt;/li&gt;
&lt;li&gt;[ ] Errors handled; no swallowed exceptions; no silent fallbacks&lt;/li&gt;
&lt;li&gt;[ ] Input validated at the boundary; no secrets or PII in code, logs or fixtures&lt;/li&gt;
&lt;li&gt;[ ] No dead code, debug prints, commented-out blocks, stray TODOs&lt;/li&gt;
&lt;li&gt;[ ] Migrations and config changes reviewed by a human&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Red flags in agent output
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Red flag&lt;/th&gt;
&lt;th&gt;What it usually means&lt;/th&gt;
&lt;th&gt;Do this&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;"This should work"&lt;/td&gt;
&lt;td&gt;It did not run it&lt;/td&gt;
&lt;td&gt;Ask for the command output&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Test changed in the same diff as the code, to pass&lt;/td&gt;
&lt;td&gt;Behaviour changed or bug hidden&lt;/td&gt;
&lt;td&gt;Revert test, re-check&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Huge diff for a small ask&lt;/td&gt;
&lt;td&gt;Scope creep or reformatting&lt;/td&gt;
&lt;td&gt;Re-prompt, tighter scope&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New helper that duplicates an existing one&lt;/td&gt;
&lt;td&gt;Did not search&lt;/td&gt;
&lt;td&gt;"Search for existing utilities first"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Catch-all try/except&lt;/td&gt;
&lt;td&gt;Masks failures&lt;/td&gt;
&lt;td&gt;Require specific errors&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Confident claim about a file it did not open&lt;/td&gt;
&lt;td&gt;Hallucination&lt;/td&gt;
&lt;td&gt;"Cite file:line"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Same failing fix repeated&lt;/td&gt;
&lt;td&gt;Stuck loop&lt;/td&gt;
&lt;td&gt;Stop and reset context&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The single highest-value habit
&lt;/h2&gt;

&lt;p&gt;Keep a short rules file (&lt;code&gt;CLAUDE.md&lt;/code&gt; / &lt;code&gt;AGENTS.md&lt;/code&gt; / &lt;code&gt;.cursorrules&lt;/code&gt;) and add a "Known traps" line every time the agent makes the same mistake twice. That one section compounds more than any prompt trick.&lt;/p&gt;

&lt;p&gt;I put the full universal rules file plus this checklist in a free gist here:&lt;br&gt;
&lt;a href="https://gist.github.com/luccasbeckreistakehometest/b0095f5ef7ba7935bd5c305a4f7075b6" rel="noopener noreferrer"&gt;https://gist.github.com/luccasbeckreistakehometest/b0095f5ef7ba7935bd5c305a4f7075b6&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And I packaged the whole system I use, a drop-in rules file with 6 stack blocks, 42 prompts (understand to ship), 5 workflows and 4 checklists, into a kit if it saves you time:&lt;br&gt;
&lt;a href="https://luccasbreis.gumroad.com/l/bvhxerp" rel="noopener noreferrer"&gt;https://luccasbreis.gumroad.com/l/bvhxerp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What is on your pre-merge checklist for agent code? Curious what I am missing.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
