<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Lake]]></title><description><![CDATA[Lake]]></description><link>https://getlake.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 22:12:21 GMT</lastBuildDate><atom:link href="https://getlake.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Review the plan before the code]]></title><description><![CDATA[Catch the wrong approach in an agent's plan, not in the pull request. A shift-left method for teams running Claude Code and other coding agents.]]></description><link>https://getlake.hashnode.dev/review-the-plan-before-the-code</link><guid isPermaLink="true">https://getlake.hashnode.dev/review-the-plan-before-the-code</guid><category><![CDATA[programming]]></category><category><![CDATA[Productivity]]></category><category><![CDATA[claude-code]]></category><category><![CDATA[code review]]></category><dc:creator><![CDATA[Lake]]></dc:creator><pubDate>Mon, 30 Nov 2026 17:48:25 GMT</pubDate><content:encoded><![CDATA[<p>Coding agents made it cheap to start writing. They did not make it cheap to say yes. Teams are still reviewing a diff after the tokens are spent. The useful response is a method, not a panic: review the plan, before the code.</p>
<p><em>First published on <a href="https://getlake.dev/blog/review-the-plan-before-the-code/?utm_source=hashnode&amp;utm_medium=crosspost&amp;utm_campaign=shiftleft">getlake.dev</a> on 30 November 2026.</em></p>
<h2>The expensive kind of wrong</h2>
<p>By the time a pull request is ready, the agent has spent the tokens and you have spent the hours. Changing course in a plan costs a sentence. Changing it in a diff costs a rewrite.</p>
<p>The <a href="https://survey.stackoverflow.co/2025/ai">2025 Stack Overflow Developer Survey</a> is a clear official snapshot of that mood. 84% of respondents use or plan to use AI tools, up from 76%, and 51% of professional developers use them daily. Favorable sentiment fell from more than 70% in 2023 and 2024 to 60%.</p>
<p>Trust is worse. More developers actively distrust the accuracy of AI tools (46%) than trust it (33%). Only 3% highly trust the output. Experienced developers are the most cautious: 2.6% highly trust, 20% highly distrust. Asked why they would still want a person in the loop, 75% said "when I don't trust AI's answers."</p>
<p>The frustration under those numbers has a name. 66% of developers are dealing with "AI solutions that are almost right, but not quite," and 45% say debugging AI-generated code is more time-consuming. "Almost right" is the expensive kind of wrong: it passes a glance, burns a run, and then burns a review.</p>
<h2>The bill is already in motion</h2>
<p>This is not only a quality problem. Anthropic's <a href="https://code.claude.com/docs/en/costs">Claude Code cost documentation</a> puts the average, across enterprise deployments, at around $13 per developer per active day and $150 to $250 per developer per month, with costs remaining below $30 per active day for 90% of users. Those are Anthropic's published figures, not a Lake measurement. Your team will differ. The point is that the money moves while the approach is still unreviewed.</p>
<p>On a Pro, Max or Ultra plan the dollar figure in <code>/usage</code> is an API-equivalent estimate, not your bill. The waste is still real: a wrong approach uses up the usage window, and then someone has to unwind the diff.</p>
<h2>The method</h2>
<p>The method is shift-left. Code review stays. It just stops being the first time a human looks at the approach.</p>
<ol>
<li>Review the plan before you let the agent build.</li>
<li>See a recommended model and an estimated dollar range for every step, before you approve.</li>
<li>Put a per-run cap on the run that stops and asks.</li>
</ol>
<p>Claude Code already has the first half of step 1. In <a href="https://code.claude.com/docs/en/permission-modes">plan mode</a> (<code>Shift+Tab</code>, or prefix a prompt with <code>/plan</code>, or start with <code>claude --permission-mode plan</code>), Claude researches and writes a plan but does not edit your source until you approve it. That is the right habit for one person in one session.</p>
<p>The gap is everything after that. A "yes" in a chat is easy to drift past. The plan is not in the pull request, a teammate cannot comment on exact lines, and if the agent later changes the approach there is no exact version that the approval was bound to. For a team, the plan has to live where review already lives: in the PR.</p>
<h2>What Lake puts in front of the agent</h2>
<p><a href="https://getlake.dev/lake-gate/?utm_source=hashnode&amp;utm_medium=crosspost&amp;utm_campaign=shiftleft">Gate</a> is Lake's plan-approval capability. Plans live in the pull request as versioned files. A teammate or a manager reviews in rounds, comments on exact lines, and approves a specific plan version. Edit one word and the approval no longer applies. A PR check stays red until the current plan is approved, so unapproved work cannot merge.</p>
<p>Meter, in the same install, puts a recommended model and a dollar range on every step, and a run cap that stops and asks. This is a method you can install, not a case study. We are not claiming a savings figure for your team.</p>
<p>Plan approval (Gate) is free for up to 3 users and 20 plan reviews per calendar month per repo. Cost control (Meter) is free forever. Team is $15 per user per month and starts with a 14-day trial at install. Paid checkout is not open yet, so nothing is charged until you choose to subscribe.</p>
<pre><code class="language-bash">npm i -D lake-gate &amp;&amp; npx lake-gate init --cap 5
</code></pre>
<p>Working solo? Add <code>--try</code>. Run it in your repo, then commit. To block merges, make <code>lake/plan-approval</code> a required check. That needs a public repo, or GitHub Pro or Team for a private one; otherwise the check is advisory. PRs opened by a bot get the check once a person comments, reviews or pushes. Do not run <code>npx lake</code>: that installs an unrelated package.</p>
<h2>Start with plan approval</h2>
<p>Put the plan in the pull request and hold the run until a teammate approves that exact version.</p>
<ul>
<li><a href="https://getlake.dev/lake-gate/?utm_source=hashnode&amp;utm_medium=crosspost&amp;utm_campaign=shiftleft">About Gate</a></li>
<li><a href="https://getlake.dev/lake-gate/app/?utm_source=hashnode&amp;utm_medium=crosspost&amp;utm_campaign=shiftleft#/demo">Try the live demo</a></li>
</ul>
<p>If you want a look at past Claude Code spend first, the <a href="https://getlake.dev/waste-calculator/?utm_source=hashnode&amp;utm_medium=crosspost&amp;utm_campaign=shiftleft">free waste calculator</a> runs in your browser on a ccusage export. Nothing you paste is uploaded.</p>
<h2>Related</h2>
<ul>
<li><a href="https://getlake.dev/blog/reviewing-ai-agent-plans/?utm_source=hashnode&amp;utm_medium=crosspost&amp;utm_campaign=shiftleft">How to review an AI agent's plan</a></li>
<li><a href="https://getlake.dev/blog/approving-agent-plans-in-pull-requests/?utm_source=hashnode&amp;utm_medium=crosspost&amp;utm_campaign=shiftleft">Approve agent plans in the pull request</a></li>
<li><a href="https://getlake.dev/blog/how-much-does-claude-code-cost/?utm_source=hashnode&amp;utm_medium=crosspost&amp;utm_campaign=shiftleft">How much does Claude Code cost?</a></li>
</ul>
<h2>Sources</h2>
<ul>
<li><a href="https://survey.stackoverflow.co/2025/ai">Stack Overflow Developer Survey 2025, AI section</a>: usage, sentiment, trust, "almost right," and the person-in-the-loop figure.</li>
<li><a href="https://code.claude.com/docs/en/costs">Anthropic, Manage costs effectively</a>: published enterprise averages and the note that subscription session costs are not the bill.</li>
<li><a href="https://code.claude.com/docs/en/permission-modes">Anthropic, Choose a permission mode</a>: plan mode behavior and how approval works in a local session.</li>
</ul>
]]></content:encoded></item></channel></rss>