<?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: Tomas Grasl</title>
    <description>The latest articles on DEV Community by Tomas Grasl (@freema).</description>
    <link>https://dev.to/freema</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%2F3961521%2F1f52971d-ed17-4ad8-840e-bb48c43c9860.jpeg</url>
      <title>DEV Community: Tomas Grasl</title>
      <link>https://dev.to/freema</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/freema"/>
    <language>en</language>
    <item>
      <title>Most code review catches bugs. I shipped one that argues with the design.</title>
      <dc:creator>Tomas Grasl</dc:creator>
      <pubDate>Tue, 14 Jul 2026 18:00:00 +0000</pubDate>
      <link>https://dev.to/freema/most-code-review-catches-bugs-i-shipped-one-that-argues-with-the-design-1h0h</link>
      <guid>https://dev.to/freema/most-code-review-catches-bugs-i-shipped-one-that-argues-with-the-design-1h0h</guid>
      <description>&lt;p&gt;The cheapest bug to catch is the one a reviewer circles on line 40. The expensive one never shows up as a bad line it ships as the &lt;em&gt;wrong approach&lt;/em&gt;, clean and green. Your retry loop is correct and also retrying in the wrong layer. Your cache has no bug and invalidates on the wrong key. A normal review human or AI slides right past those, because it's anchored on &lt;em&gt;"is this line right,"&lt;/em&gt; not &lt;em&gt;"is this the right thing to build."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This week I shipped &lt;strong&gt;v0.4.0&lt;/strong&gt; of &lt;a href="https://github.com/freema/cursor-plugin-cc" rel="noopener noreferrer"&gt;cursor-plugin-cc&lt;/a&gt;, and the headline is a review command whose entire job is that second question.&lt;/p&gt;

&lt;p&gt;Quick context if you haven't seen the plugin: it's a Claude Code plugin that keeps one loop running &lt;strong&gt;Claude plans, Cursor's Composer writes the code, Claude reviews the diff&lt;/strong&gt; without leaving the Claude Code TUI. Two tools, each doing the half it's best at. v0.4.0 sharpens the &lt;em&gt;review&lt;/em&gt; half.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;code&gt;/cursor:adversarial-review&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;A read-only review that questions the chosen implementation and design instead of only hunting implementation defects. You point it at a diff (working tree by default, &lt;code&gt;--base &amp;lt;ref&amp;gt;&lt;/code&gt; for a branch, &lt;code&gt;--scope&lt;/code&gt;, &lt;code&gt;--model&lt;/code&gt; same target selection as the normal &lt;code&gt;/cursor:review&lt;/code&gt;) and it pressure-tests:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the &lt;strong&gt;assumptions&lt;/strong&gt; the change depends on,&lt;/li&gt;
&lt;li&gt;the &lt;strong&gt;tradeoffs&lt;/strong&gt; you made, spoken or not,&lt;/li&gt;
&lt;li&gt;the &lt;strong&gt;failure modes&lt;/strong&gt; under real load, concurrency, and edge cases,&lt;/li&gt;
&lt;li&gt;and the one that matters most — &lt;strong&gt;whether a simpler or safer approach would have done the job.&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It's &lt;em&gt;steerable&lt;/em&gt;: any trailing text is a focus. &lt;code&gt;"is the retry/backoff design sound under load?"&lt;/code&gt; aims the whole challenge at exactly the thing you're nervous about.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/cursor:adversarial-review
/cursor:adversarial-review &lt;span class="nt"&gt;--base&lt;/span&gt; main
/cursor:adversarial-review &lt;span class="s2"&gt;"question the retry/backoff design under load"&lt;/span&gt;
/cursor:adversarial-review &lt;span class="nt"&gt;--background&lt;/span&gt; &lt;span class="nt"&gt;--model&lt;/span&gt; opus look &lt;span class="k"&gt;for &lt;/span&gt;race conditions and question the approach
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Under the hood it's &lt;code&gt;/cursor:review --adversarial&lt;/code&gt;, so it shows up as a normal job in &lt;code&gt;/cursor:status&lt;/code&gt;, &lt;code&gt;/cursor:result&lt;/code&gt; and &lt;code&gt;/cursor:cancel&lt;/code&gt;. What used to be a &lt;code&gt;--adversarial&lt;/code&gt; flag most people never found is now a first-class, discoverable command — and it's &lt;strong&gt;user-invoked only&lt;/strong&gt; (&lt;code&gt;disable-model-invocation: true&lt;/code&gt;), because a design challenge is something you reach for on purpose, not something an agent should fire off on its own.&lt;/p&gt;

&lt;p&gt;Why split it out instead of just telling &lt;code&gt;/cursor:review&lt;/code&gt; to "try harder"? Because a stricter bug pass and a design challenge are different jobs, and conflating them gets you neither. Naming the second one makes you actually run it — right before you ship a change you're &lt;em&gt;not fully sure about&lt;/em&gt;, which is exactly when nobody bothers.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part I'm quietly proud of: it can't touch your code
&lt;/h2&gt;

&lt;p&gt;Both review commands are read-only &lt;strong&gt;by construction&lt;/strong&gt;, not by good intentions. The run happens, then a post-flight check fails the job if the working tree changed. So a review can never quietly turn into an edit — even though the same plugin runs Composer elsewhere with auto-approve on. You can hand a fast model your diff and know the worst it can do is &lt;em&gt;talk&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;That guarantee is the whole reason I trust an adversarial pass. A reviewer that might also "helpfully" refactor while it argues is a reviewer you have to babysit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Estimate first, then ask
&lt;/h2&gt;

&lt;p&gt;Small ergonomics fix that removes a daily papercut. If you don't pass &lt;code&gt;--wait&lt;/code&gt; or &lt;code&gt;--background&lt;/code&gt;, the command now sizes the diff first — &lt;code&gt;git status&lt;/code&gt;, &lt;code&gt;git diff --shortstat&lt;/code&gt;, counting untracked files — and asks you &lt;em&gt;once&lt;/em&gt; whether to wait or run it in the background, recommending background for anything beyond a tiny 1–2 file change. A multi-file review takes a while; you shouldn't have to guess up front whether it's going to block your terminal for the next two minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The real lesson: I moved the know-how into a skill
&lt;/h2&gt;

&lt;p&gt;The most &lt;em&gt;interesting&lt;/em&gt; change isn't a command. For a while, the guidance for how to turn a task into a tight Cursor prompt ground it in the target repo's conventions, the five required sections (Goal / Repo context / Acceptance criteria / Files to touch / How to verify) plus a guardrails block, chunk anything over ~5 steps or ~10 files or 2 architectural layers, pick the smallest model that fits, resume vs. fresh — lived &lt;em&gt;inline&lt;/em&gt; inside the &lt;code&gt;cursor-runner&lt;/code&gt; subagent's prompt.&lt;/p&gt;

&lt;p&gt;In v0.4.0 that moved into a &lt;code&gt;composer-prompting&lt;/code&gt; &lt;strong&gt;skill&lt;/strong&gt;. The subagent now references it with a single &lt;code&gt;skills:&lt;/code&gt; line and shrank down to its operational spine: &lt;em&gt;ground → invoke &lt;code&gt;/cursor:delegate&lt;/code&gt; → return Cursor's output verbatim.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The lesson generalises past this plugin, and it's the same thread running through everything I've been writing about MCP and agents: &lt;strong&gt;an agent's prompt is context you pay for on every single run.&lt;/strong&gt; Reusable know-how doesn't belong restated inside each agent that needs it — it belongs in one referenced skill that loads when it's actually relevant. The agent gets leaner, the knowledge gets a single home instead of three drifting copies, and the thing you maintain shrinks. Same instinct as splitting tools from resources on an MCP server: put weight where it earns its place, and nowhere else.&lt;/p&gt;

&lt;h2&gt;
  
  
  The boring guarantees
&lt;/h2&gt;

&lt;p&gt;Still &lt;strong&gt;zero runtime dependencies&lt;/strong&gt; — plain ESM, Node stdlib, no build step, no &lt;code&gt;dist/&lt;/code&gt;. Still &lt;strong&gt;MIT&lt;/strong&gt;. CI runs the tests and lint across Node 18.18 / 20 / 22 on Linux and macOS on every PR. And it's openly adapted from &lt;a href="https://github.com/openai/codex-plugin-cc" rel="noopener noreferrer"&gt;&lt;code&gt;openai/codex-plugin-cc&lt;/code&gt;&lt;/a&gt; — the Codex/GPT original that pulls the same trick on OpenAI's side — ported to the Cursor CLI. Credit where it's due.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/plugin marketplace add freema/cursor-plugin-cc
/plugin &lt;span class="nb"&gt;install &lt;/span&gt;cursor@tomas-cursor
/reload-plugins
/cursor:setup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://github.com/freema/cursor-plugin-cc" rel="noopener noreferrer"&gt;github.com/freema/cursor-plugin-cc&lt;/a&gt;&lt;/strong&gt; — v0.4.0, MIT.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;When did a code review last change your **approach&lt;/em&gt;* instead of your lines? That's the review I actually want — and the one almost nobody runs. Curious whether you've found a way to make it a habit.*&lt;/p&gt;

</description>
      <category>ai</category>
      <category>architecture</category>
      <category>programming</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
