<?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: youssef jamoudi </title>
    <description>The latest articles on DEV Community by youssef jamoudi  (@youssef_jamoudi).</description>
    <link>https://dev.to/youssef_jamoudi</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%2F4053073%2F63381b0d-d2b2-487f-aedb-644ca403ba0d.png</url>
      <title>DEV Community: youssef jamoudi </title>
      <link>https://dev.to/youssef_jamoudi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/youssef_jamoudi"/>
    <language>en</language>
    <item>
      <title>Why I Built a Static Checker for OpenAI/Anthropic API Bugs</title>
      <dc:creator>youssef jamoudi </dc:creator>
      <pubDate>Wed, 29 Jul 2026 11:20:11 +0000</pubDate>
      <link>https://dev.to/youssef_jamoudi/why-i-built-a-static-checker-for-openaianthropic-api-bugs-3if2</link>
      <guid>https://dev.to/youssef_jamoudi/why-i-built-a-static-checker-for-openaianthropic-api-bugs-3if2</guid>
      <description>&lt;p&gt;If you've worked with the OpenAI or Anthropic APIs for more than a week, you've probably hit this loop: write some code, run it, wait, get a cryptic error, dig through the code, find out it was something small, fix it, run it again.&lt;/p&gt;

&lt;p&gt;The mistakes are almost always the same handful of things:&lt;/p&gt;

&lt;p&gt;A hardcoded API key that shouldn't be in source control&lt;br&gt;
An environment variable you meant to set but left as "your-api-key-here"&lt;br&gt;
A missing required field like model or max_tokens&lt;br&gt;
A typo in a model name — TypeScript can't catch this since it's just a string, so it silently fails at request time instead of compile time&lt;br&gt;
No retry/backoff logic, so a 429 rate-limit response crashes the whole script instead of retrying&lt;br&gt;
A prompt that's quietly way over the model's context window&lt;/p&gt;

&lt;p&gt;None of these are hard to fix once you know about them. The expensive part is the loop — running the code, waiting, and finding out the hard way, especially when each run costs tokens or burns rate-limit budget.&lt;/p&gt;

&lt;p&gt;So I built API Guard — a VS Code extension that scans your JS/TS/Python files on save and flags this whole category before you hit run.&lt;/p&gt;

&lt;p&gt;Free tier:&lt;/p&gt;

&lt;p&gt;Hardcoded API key/secret detection&lt;br&gt;
Placeholder environment variable detection&lt;/p&gt;

&lt;p&gt;Pro tier (one-time unlock, no subscription):&lt;/p&gt;

&lt;p&gt;Model name typo detection (fuzzy-matched against known OpenAI/Anthropic model names)&lt;br&gt;
Missing retry/backoff detection&lt;br&gt;
Context window overflow estimation&lt;/p&gt;

&lt;p&gt;Everything runs locally — your code never leaves your machine.&lt;/p&gt;

&lt;p&gt;Links:&lt;/p&gt;

&lt;p&gt;Extension: &lt;a href="https://marketplace.visualstudio.com/items?itemName=youssef3131.api-guard" rel="noopener noreferrer"&gt;https://marketplace.visualstudio.com/items?itemName=youssef3131.api-guard&lt;/a&gt;&lt;br&gt;
Pro unlock: &lt;a href="https://youssefjamoudi.gumroad.com/l/spyax" rel="noopener noreferrer"&gt;https://youssefjamoudi.gumroad.com/l/spyax&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is a first version. If you try it and find a false positive, or think it's missing an obvious check, I'd genuinely like to hear about it — better to know now than after more people install it.&lt;/p&gt;

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