<?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: Shamaz Khan</title>
    <description>The latest articles on DEV Community by Shamaz Khan (@shamazkhan).</description>
    <link>https://dev.to/shamazkhan</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%2F1387018%2F7b12113e-b0ab-434c-9e86-8811a1ff9e60.png</url>
      <title>DEV Community: Shamaz Khan</title>
      <link>https://dev.to/shamazkhan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shamazkhan"/>
    <language>en</language>
    <item>
      <title>AI writes my code faster. So why am I spending more time reviewing it?</title>
      <dc:creator>Shamaz Khan</dc:creator>
      <pubDate>Sun, 29 Nov 2026 15:16:23 +0000</pubDate>
      <link>https://dev.to/shamazkhan/ai-writes-my-code-faster-so-why-am-i-spending-more-time-reviewing-it-170b</link>
      <guid>https://dev.to/shamazkhan/ai-writes-my-code-faster-so-why-am-i-spending-more-time-reviewing-it-170b</guid>
      <description>&lt;h1&gt;
  
  
  AI writes my code faster. So why am I spending more time reviewing it?
&lt;/h1&gt;

&lt;p&gt;I've been developing software for years, and AI coding assistants have fundamentally changed how I work.&lt;/p&gt;

&lt;p&gt;But something has been bothering me lately.&lt;/p&gt;

&lt;p&gt;A typical development session goes like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ask AI to fix a bug.&lt;/li&gt;
&lt;li&gt;AI fixes the bug.&lt;/li&gt;
&lt;li&gt;AI modifies five unrelated files.&lt;/li&gt;
&lt;li&gt;Previously working functionality breaks.&lt;/li&gt;
&lt;li&gt;Spend another 20 minutes explaining what it shouldn't have touched.&lt;/li&gt;
&lt;li&gt;Start a new session and repeat the same instructions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Sound familiar?&lt;/p&gt;

&lt;h2&gt;
  
  
  We're solving code generation, but what about code control?
&lt;/h2&gt;

&lt;p&gt;The problem isn't that AI can't write good code. It often can.&lt;/p&gt;

&lt;p&gt;The problem is that it doesn't necessarily respect the boundaries of an existing codebase.&lt;/p&gt;

&lt;p&gt;As developers, we have established:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Architectural decisions&lt;/li&gt;
&lt;li&gt;Coding conventions&lt;/li&gt;
&lt;li&gt;Business logic&lt;/li&gt;
&lt;li&gt;Security boundaries&lt;/li&gt;
&lt;li&gt;Previously tested functionality&lt;/li&gt;
&lt;li&gt;Dependencies we intentionally chose&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These aren't suggestions. They're engineering decisions.&lt;/p&gt;

&lt;p&gt;Yet we often rely on prompts to communicate them.&lt;/p&gt;

&lt;p&gt;"Don't modify this file."&lt;/p&gt;

&lt;p&gt;"Follow the existing architecture."&lt;/p&gt;

&lt;p&gt;"Keep the changes minimal."&lt;/p&gt;

&lt;p&gt;"Don't introduce regressions."&lt;/p&gt;

&lt;p&gt;I found myself repeating these instructions more often than I was comfortable with.&lt;/p&gt;

&lt;h2&gt;
  
  
  Better prompts aren't necessarily the answer
&lt;/h2&gt;

&lt;p&gt;Prompts communicate intent, but they don't enforce it.&lt;/p&gt;

&lt;p&gt;Imagine replacing your CI/CD checks with a document asking developers to please not introduce bugs.&lt;/p&gt;

&lt;p&gt;Nobody would consider that sufficient.&lt;/p&gt;

&lt;p&gt;Why should AI-assisted development be fundamentally different?&lt;/p&gt;

&lt;p&gt;I think we need to distinguish between three things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Generation:&lt;/strong&gt; What AI can build.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review:&lt;/strong&gt; Whether the generated code looks correct.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Control:&lt;/strong&gt; Whether the changes respect our engineering boundaries.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The third one is what I've become particularly interested in.&lt;/p&gt;

&lt;h2&gt;
  
  
  A weekend experiment
&lt;/h2&gt;

&lt;p&gt;Out of personal frustration, I spent a weekend building a small open-source project called Stet.&lt;/p&gt;

&lt;p&gt;The idea is to explore how developers can maintain greater control over AI-assisted development without sacrificing the productivity gains.&lt;/p&gt;

&lt;p&gt;I gave it to five developers.&lt;/p&gt;

&lt;p&gt;The initial feedback was positive, and two more developers came through recommendations.&lt;/p&gt;

&lt;p&gt;Seven users isn't traction worth celebrating commercially. But it's enough to justify exploring the problem further.&lt;/p&gt;

&lt;p&gt;I'm deliberately keeping it open source and avoiding unnecessary features.&lt;/p&gt;

&lt;p&gt;My next experiment is to get 25 developers using it on real projects and measure how many continue using it after two weeks.&lt;/p&gt;

&lt;p&gt;Not downloads. Not GitHub stars. Actual usage.&lt;/p&gt;

&lt;p&gt;For anyone curious about the implementation: &lt;a href="https://getstet.dev" rel="noopener noreferrer"&gt;https://getstet.dev&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  I'd rather discuss the problem
&lt;/h2&gt;

&lt;p&gt;I'm particularly interested in hearing from developers using Claude Code, Cursor, Codex or other AI coding assistants.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How do you prevent AI from modifying unrelated functionality?&lt;/li&gt;
&lt;li&gt;How do you enforce project-specific engineering rules?&lt;/li&gt;
&lt;li&gt;Have you experienced regressions introduced by otherwise successful AI-generated fixes?&lt;/li&gt;
&lt;li&gt;Are existing code review tools sufficient for you?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Perhaps I'm solving a problem that already has a perfectly good solution.&lt;/p&gt;

&lt;p&gt;I'd genuinely like to find out.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>codereview</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Your PR is green. Your test is gone.</title>
      <dc:creator>Shamaz Khan</dc:creator>
      <pubDate>Sun, 29 Nov 2026 15:14:31 +0000</pubDate>
      <link>https://dev.to/shamazkhan/your-pr-is-green-your-test-is-gone-23ej</link>
      <guid>https://dev.to/shamazkhan/your-pr-is-green-your-test-is-gone-23ej</guid>
      <description>&lt;p&gt;The build is green. The PR looks clean. The reviewer approves it.&lt;/p&gt;

&lt;p&gt;And a test that used to protect you no longer checks anything.&lt;/p&gt;

&lt;p&gt;That's the quiet failure mode of AI coding agents. Ask one to make the build pass and it will, usually by fixing the code, but sometimes by changing the check instead: an assertion removed, a test skipped, a type check switched off. Nothing fails, so nothing tells you. You find out in production, weeks later, when the bug the test was guarding against ships.&lt;/p&gt;

&lt;p&gt;None of this is malicious. The agent was asked for a green build, and it delivered one. These are the five patterns worth looking for in every AI-written pull request.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The assertion that disappeared
&lt;/h2&gt;

&lt;p&gt;Before:&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="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'applies the discount'&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="o"&gt;=&amp;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;total&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;checkout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cart&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'SAVE10'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;total&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;discount&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toBe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;total&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toBe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;90&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="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;After the agent "fixed" 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="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'applies the discount'&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="o"&gt;=&amp;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;total&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;checkout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cart&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'SAVE10'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;total&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;discount&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toBe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&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="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;The test still exists, still passes and still has the same name. It just doesn't check the amount any more, which was the part that was broken.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to look for:&lt;/strong&gt; count the assertions in each changed test file, before and after. Fewer assertions in a PR that wasn't about tests is a red flag.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The skipped (or focused) test
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;it&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;skip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'rejects an expired token'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or the opposite, which is worse:&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="n"&gt;it&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;only&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'returns the user profile'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;.skip&lt;/code&gt; silences one test. &lt;code&gt;.only&lt;/code&gt; silences every other test in the file, and the run still reports green. In Python it's &lt;code&gt;@pytest.mark.skip&lt;/code&gt;; in Go, &lt;code&gt;t.Skip()&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to look for:&lt;/strong&gt; any new &lt;code&gt;skip&lt;/code&gt;, &lt;code&gt;only&lt;/code&gt;, &lt;code&gt;xit&lt;/code&gt;, &lt;code&gt;xdescribe&lt;/code&gt; or &lt;code&gt;@pytest.mark.skip&lt;/code&gt; in the diff.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The type check that got switched off
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// @ts-ignore&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;User&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;fetchUser&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&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;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;order&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="kt"&gt;any&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reduce&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&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;The type error was telling you something real: &lt;code&gt;fetchUser&lt;/code&gt; can return &lt;code&gt;null&lt;/code&gt;. Now it can't tell you any more, and you find out at runtime.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to look for:&lt;/strong&gt; new &lt;code&gt;@ts-ignore&lt;/code&gt;, &lt;code&gt;@ts-expect-error&lt;/code&gt;, &lt;code&gt;as any&lt;/code&gt;, &lt;code&gt;eslint-disable&lt;/code&gt;, &lt;code&gt;# type: ignore&lt;/code&gt; or &lt;code&gt;# noqa&lt;/code&gt; lines.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The expected value that moved to match the bug
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight diff"&gt;&lt;code&gt;&lt;span class="gd"&gt;- expect(formatPrice(1999)).toBe('$19.99');&lt;/span&gt;
&lt;span class="gi"&gt;+ expect(formatPrice(1999)).toBe('$1999.00');&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This one is the hardest to spot, because the diff looks like a reasonable update. The agent changed the expectation to match what the code now returns, so the test now locks in the bug.&lt;/p&gt;

&lt;p&gt;Snapshot tests make it even easier: run &lt;code&gt;jest -u&lt;/code&gt;, every snapshot is "updated", and the diff is 400 lines nobody reads.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to look for:&lt;/strong&gt; changed expected values or snapshots in a PR that wasn't supposed to change behaviour.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The test file that was deleted
&lt;/h2&gt;

&lt;p&gt;The bluntest version: a test file that kept failing is no longer in the repo. It shows up as one line in the file list, between the changes you actually asked for.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to look for:&lt;/strong&gt; deleted files under &lt;code&gt;test/&lt;/code&gt;, &lt;code&gt;tests/&lt;/code&gt;, &lt;code&gt;__tests__/&lt;/code&gt; or anything matching &lt;code&gt;*.test.*&lt;/code&gt; / &lt;code&gt;*_test.*&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why review alone doesn't catch this
&lt;/h2&gt;

&lt;p&gt;Each of these is small, sits next to real changes, and looks plausible. An AI reviewer reading the same diff can miss it for the same reason a tired human does. And none of them makes the build fail, which is the whole point.&lt;/p&gt;

&lt;p&gt;What works is checking mechanically, on every PR, the same way every time:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Run the tests on the PR and on main.&lt;/strong&gt; Anything that passes on main and fails on the PR was broken by this change. Anything that fails on both was already broken, so don't blame the PR for it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read the diff for the five patterns above:&lt;/strong&gt; assertions removed, tests skipped or focused, checks switched off, and test files deleted. Treat expected values and snapshots as "explain this change".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Put the result where the reviewer already looks:&lt;/strong&gt; on the PR itself.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Automating it
&lt;/h2&gt;

&lt;p&gt;Doing this by hand on every PR doesn't last, so I built a small open-source tool for it, &lt;a href="https://getstet.dev" rel="noopener noreferrer"&gt;Stet&lt;/a&gt;. It's free (MIT), and there's no AI in the check, so the same diff always gets the same answer.&lt;/p&gt;

&lt;p&gt;On every pull request it posts one comment:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;what the PR &lt;strong&gt;broke compared with main&lt;/strong&gt;, and what was &lt;strong&gt;already failing on main&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;red flags&lt;/strong&gt; from the diff: assertions removed (with the before/after count), tests skipped or &lt;code&gt;.only&lt;/code&gt;, &lt;code&gt;@ts-ignore&lt;/code&gt; / &lt;code&gt;as any&lt;/code&gt; / &lt;code&gt;eslint-disable&lt;/code&gt; added, test files deleted, and lockfile, CI or env changes&lt;/li&gt;
&lt;li&gt;each red flag marked &lt;strong&gt;on its exact line&lt;/strong&gt; in &lt;em&gt;Files changed&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It doesn't catch pattern 4 yet (an expected value or snapshot quietly changed to match a bug). That one needs a human eye for now, and it's next on my list.&lt;/p&gt;

&lt;p&gt;It works with zero config. Add it to a repo in two clicks at &lt;a href="https://getstet.dev/add" rel="noopener noreferrer"&gt;getstet.dev/add&lt;/a&gt;, or add the workflow yourself:&lt;br&gt;
&lt;/p&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="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Stet&lt;/span&gt;
&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;pull_request&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;types&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;opened&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;synchronize&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;reopened&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;contents&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;read&lt;/span&gt;
  &lt;span class="na"&gt;pull-requests&lt;/span&gt;&lt;span class="p"&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="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;
&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;stet&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="p"&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="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&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="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;fetch-depth:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;stet-dev/stet-action@v2&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or run it locally before you push:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx stet-cli report --base main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you use Claude Code or Antigravity, there's also a &lt;a href="https://github.com/stet-dev/stet-plugin" rel="noopener noreferrer"&gt;plugin&lt;/a&gt;: ask your agent &lt;em&gt;"Check my changes with Stet"&lt;/em&gt; and it runs the check before it tells you it's done.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Which of these have you caught in your own repos?&lt;/strong&gt; And is there a sixth pattern I should be checking for? I'm adding new checks based on what people actually run into.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>testing</category>
      <category>opensource</category>
      <category>github</category>
    </item>
  </channel>
</rss>
