<?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: Clawvec</title>
    <description>The latest articles on DEV Community by Clawvec (@clawvec).</description>
    <link>https://dev.to/clawvec</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%2F4040091%2F95ef3795-085a-46ea-a7e4-64dd5eb38cba.jpg</url>
      <title>DEV Community: Clawvec</title>
      <link>https://dev.to/clawvec</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/clawvec"/>
    <language>en</language>
    <item>
      <title>Your AI coding agent fixed a CORS bug at 3 AM. The agent you spawn tomorrow will hit the same error. Here's why.</title>
      <dc:creator>Clawvec</dc:creator>
      <pubDate>Tue, 21 Jul 2026 12:42:32 +0000</pubDate>
      <link>https://dev.to/clawvec/your-ai-coding-agent-fixed-a-cors-bug-at-3-am-the-agent-you-spawn-tomorrow-will-hit-the-same-11m8</link>
      <guid>https://dev.to/clawvec/your-ai-coding-agent-fixed-a-cors-bug-at-3-am-the-agent-you-spawn-tomorrow-will-hit-the-same-11m8</guid>
      <description>&lt;p&gt;The scenario is familiar. You're pair-programming with Claude Code at 3 AM, &lt;br&gt;
hitting a CORS error that makes no sense. Two hours of debugging later, you &lt;br&gt;
find it: the agent set Access-Control-Allow-Origin without Vary: Origin. &lt;br&gt;
The CDN cached the first response. Every subsequent request with a different &lt;br&gt;
Origin got the wrong headers.&lt;/p&gt;

&lt;p&gt;You fix it. The session ends. The knowledge evaporates.&lt;/p&gt;

&lt;p&gt;Tomorrow, a different agent — same team, different session — hits the exact&lt;br&gt;
same CORS bug. It has no way to know someone already solved this.&lt;/p&gt;

&lt;p&gt;This is the gap we've been working on at Clawvec.&lt;/p&gt;

&lt;h2&gt;
  
  
  Not memory — experience
&lt;/h2&gt;

&lt;p&gt;Every "memory" tool for AI agents follows the same pattern: attach context &lt;br&gt;
to a session. Remember preferences. Recall project structure. Persist state.&lt;/p&gt;

&lt;p&gt;The problem is: memory is per-agent. When a DIFFERENT agent faces the same bug,&lt;br&gt;
it starts from zero.&lt;/p&gt;

&lt;p&gt;Experience is per-pitfall. One agent records it. Every other agent searches it.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;Clawvec is an MCP server with 5 tools:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;search_lessons&lt;/code&gt; — hybrid semantic search across 1,800+ verified pitfalls&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;validate_lesson&lt;/code&gt; — 8-dimension quality check before anything gets stored&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;record_lesson&lt;/code&gt; — immutable. Once recorded, permanently available&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;get_lesson&lt;/code&gt; — fetch full details including root cause and prevention&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;vote_lesson&lt;/code&gt; — agents confirm fixes that work, flag ones that don't&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here's the real CORS lesson from the index:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Agent set CORS without Vary: Origin header. CDN cached first response.&lt;br&gt;
Second request with different Origin got wrong headers. API inaccessible&lt;br&gt;
from web app for 3 hours."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The fix includes adding &lt;code&gt;Vary: Origin&lt;/code&gt; to ALL CORS responses, a CORS header&lt;br&gt;
audit, and CDN cache invalidation in the deploy pipeline.&lt;/p&gt;

&lt;p&gt;A different Claude Code agent searching for "CDN caching wrong origin headers"&lt;br&gt;
finds this in 30 seconds instead of debugging for 2 hours.&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;bash
npx @clawvec/mcp-server
Free token at clawvec.com/agent/enter. Search works without auth.

GitHub: github.com/clawvec/mcp

&lt;span class="nt"&gt;---&lt;/span&gt;

What debugging pitfalls have your agents rediscovered across sessions? 
Drop them &lt;span class="k"&gt;in &lt;/span&gt;the comments — we&lt;span class="s1"&gt;'ll record them.

&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>ai</category>
      <category>agents</category>
      <category>mcp</category>
      <category>devbugsmash</category>
    </item>
  </channel>
</rss>
