<?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: Jan Willem</title>
    <description>The latest articles on DEV Community by Jan Willem (@sousvidal).</description>
    <link>https://dev.to/sousvidal</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3615705%2F6e9ef40b-bc45-4958-be2f-0abb79366266.jpeg</url>
      <title>DEV Community: Jan Willem</title>
      <link>https://dev.to/sousvidal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sousvidal"/>
    <language>en</language>
    <item>
      <title>Teaching LLMs to Stop Wasting Tokens</title>
      <dc:creator>Jan Willem</dc:creator>
      <pubDate>Mon, 19 Jan 2026 16:30:49 +0000</pubDate>
      <link>https://dev.to/sousvidal/teaching-llms-to-stop-wasting-tokens-1e20</link>
      <guid>https://dev.to/sousvidal/teaching-llms-to-stop-wasting-tokens-1e20</guid>
      <description>&lt;p&gt;An LLM with tool access is like a junior developer with &lt;code&gt;sudo&lt;/code&gt; privileges and zero impulse control. Ask them to find a string in a codebase, and they'll happily read 47 entire files when a single grep would do.&lt;/p&gt;

&lt;p&gt;We experienced this firsthand building &lt;a href="https://codereviewr.app" rel="noopener noreferrer"&gt;CodeReviewr&lt;/a&gt;. Our agent was burning through tokens reading every file in sight, even when a quick scan would probably answer the question. The LLM was horribly inefficient. And inefficiency at scale is horribly expensive.&lt;br&gt;
The budget system&lt;/p&gt;

&lt;p&gt;Instead of trying to prompt our way out of this (which we tried, didn't work), we added a simple constraint: tools now cost credits.&lt;/p&gt;

&lt;p&gt;Every tool has a cost:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;grep or list_directory: 1 credit&lt;/li&gt;
&lt;li&gt;read_file: 5-10 credits depending on size&lt;/li&gt;
&lt;li&gt;parse_ast: 15 credits&lt;/li&gt;
&lt;li&gt;run_tests: 20 credits&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The LLM starts each task with a budget of about 100 credits. Every tool call decrements it. When the budget runs low, it has to think harder about what it actually needs.&lt;/p&gt;

&lt;p&gt;It became even more useful (and cool) when we gave it an extend_budget tool. It can request more credits, but it has to justify why and by how much. No handwaving. Specific reasoning or the request gets denied.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Tool: extend_budget&lt;br&gt;
Reasoning: "Need to read 3 config files (30 credits) to trace the authentication flow &lt;br&gt;
across modules. Current approach of grepping found the entry point but not the full chain."&lt;br&gt;
Requested: 30 credits&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The results
&lt;/h2&gt;

&lt;p&gt;45% reduction in tool calls across 100+ code reviews. Zero drop in accuracy. The LLM just got more strategic. It greps before reading. It lists directories before parsing. It "thinks".&lt;/p&gt;

&lt;p&gt;The budget extensions are fascinating too. About 12% of tasks request them, and 90% of those requests are legitimate (complex refactoring reviews, architectural analysis). We're now using the 10% that aren't to tune the default budget.&lt;/p&gt;

&lt;h2&gt;
  
  
  What didn't work
&lt;/h2&gt;

&lt;p&gt;We tried prompt engineering first: "Only use tools when necessary," "Prefer cheaper tools," "Think before reading files." The LLM nodded politely and kept reading everything.&lt;/p&gt;

&lt;p&gt;We tried fixed limits: "Maximum 10 tool calls per task." It hit the limit every time, even on trivial reviews.&lt;/p&gt;

&lt;p&gt;LLMs just respond better to scarce resources than vague instructions. Who knew? (Anyone who's worked with humans, probably.)&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;We're experimenting with dynamic budgets based on task complexity. Give bigger credit allocations to large or complex PRs.&lt;/p&gt;

&lt;p&gt;If you're building agents with tool access and watching your bills climb, try adding a budget. It's surprisingly effective at teaching LLMs to be less... enthusiastic.&lt;/p&gt;




&lt;p&gt;We're building &lt;a href="https://codereviewr.app" rel="noopener noreferrer"&gt;CodeReviewr&lt;/a&gt;, an AI code review tool that charges per token instead of per developer. Turns out we're pretty motivated to optimize token usage.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>tooling</category>
      <category>devjournal</category>
      <category>llm</category>
    </item>
    <item>
      <title>I built a code review platform without subscriptions</title>
      <dc:creator>Jan Willem</dc:creator>
      <pubDate>Mon, 17 Nov 2025 14:45:06 +0000</pubDate>
      <link>https://dev.to/sousvidal/i-built-a-code-review-platform-without-subscriptions-36eg</link>
      <guid>https://dev.to/sousvidal/i-built-a-code-review-platform-without-subscriptions-36eg</guid>
      <description>&lt;p&gt;Hi all 👋&lt;/p&gt;

&lt;p&gt;I recently built a pay-per-use alternative to subscription code review tools.&lt;/p&gt;

&lt;p&gt;I've been frustrated with spending $15-30/month on code review tools I use maybe 10 times. I built &lt;a href="https://codereviewr.app" rel="noopener noreferrer"&gt;CodeReviewr&lt;/a&gt; to charge per token instead of per developer.&lt;/p&gt;

&lt;p&gt;Tech stack: Typescript, React Router, Postgres&lt;br&gt;
Integration: GitHub OAuth → reviews on PRs automatically&lt;br&gt;
Pricing: per token (you get credits free to try it out)&lt;/p&gt;

&lt;p&gt;Not claiming it's better than CodeRabbit, but if you're a solo dev or small team tired of subscriptions for sporadic use, like me, it might be worth trying.&lt;/p&gt;

&lt;p&gt;Feedback is &lt;em&gt;always&lt;/em&gt; welcome.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cheers!&lt;/strong&gt;&lt;/p&gt;

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