<?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: Abdullah Abbas</title>
    <description>The latest articles on DEV Community by Abdullah Abbas (@abdullah_abbas814).</description>
    <link>https://dev.to/abdullah_abbas814</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%2F3963342%2F7fd8dfbb-8c84-4880-bd9e-2cde7ad44e8c.jpg</url>
      <title>DEV Community: Abdullah Abbas</title>
      <link>https://dev.to/abdullah_abbas814</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abdullah_abbas814"/>
    <language>en</language>
    <item>
      <title>My AI agent kept destroying its own work every session. Here's the 6-file system that fixed it.</title>
      <dc:creator>Abdullah Abbas</dc:creator>
      <pubDate>Mon, 01 Jun 2026 20:55:00 +0000</pubDate>
      <link>https://dev.to/abdullah_abbas814/my-ai-agent-kept-destroying-its-own-work-every-session-heres-the-6-file-system-that-fixed-it-28km</link>
      <guid>https://dev.to/abdullah_abbas814/my-ai-agent-kept-destroying-its-own-work-every-session-heres-the-6-file-system-that-fixed-it-28km</guid>
      <description>&lt;h2&gt;
  
  
  Every vibe coder hits this wall eventually.
&lt;/h2&gt;

&lt;p&gt;Session 1: agent builds the feature perfectly.&lt;br&gt;
Session 3: agent breaks the feature it built.&lt;br&gt;
Session 5: agent has no idea the feature ever existed.&lt;/p&gt;

&lt;p&gt;This isn't a model problem. It's a memory problem.&lt;/p&gt;

&lt;p&gt;AI agents start completely blind every single session. No memory of&lt;br&gt;
what they built, what rules they follow, or what decisions were made.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Fix
&lt;/h2&gt;

&lt;p&gt;A folder called &lt;code&gt;_ai/&lt;/code&gt; with 5 files, plus a &lt;code&gt;CLAUDE.md&lt;/code&gt; in your root:&lt;br&gt;
your-project/&lt;br&gt;
CLAUDE.md                ← agent reads this first, every session&lt;br&gt;
_ai/RULES.md             ← hard rules it cannot violate&lt;br&gt;
_ai/ARCHITECTURE.md      ← full map of the codebase&lt;br&gt;
_ai/DECISIONS.md         ← why the code is the way it is&lt;br&gt;
_ai/SESSION_HANDOFF.md   ← agent writes what it did, reads it next session&lt;br&gt;
_ai/BUILD.md             ← build commands, loaded only when needed&lt;/p&gt;

&lt;h2&gt;
  
  
  The Two Files That Matter Most
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;DECISIONS.md&lt;/strong&gt; — How many times has your agent "fixed" something&lt;br&gt;
that was intentionally done a certain way? You put the reason in&lt;br&gt;
DECISIONS.md and it never touches it again. Most underrated file&lt;br&gt;
in the system.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SESSION_HANDOFF.md&lt;/strong&gt; — The agent writes a full summary at the end&lt;br&gt;
of every session. What it did, what it changed, what's next.&lt;br&gt;
Reads it at the start of the next session. Persistent memory&lt;br&gt;
with zero plugins.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Council Protocol
&lt;/h2&gt;

&lt;p&gt;Baked into CLAUDE.md. Required before any risky change:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Propose approach&lt;/li&gt;
&lt;li&gt;Critique it — what could go wrong&lt;/li&gt;
&lt;li&gt;Revise based on the critique&lt;/li&gt;
&lt;li&gt;Only then implement&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Stops agents from charging into complex changes without thinking first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Works With
&lt;/h2&gt;

&lt;p&gt;Claude Code, Cursor, Windsurf — anything that reads markdown.&lt;/p&gt;




&lt;p&gt;I packaged the full system with a detailed guide if you want it&lt;br&gt;
ready to drop into any project: &lt;a href="https://abesoftt.gumroad.com/l/izfqpw" rel="noopener noreferrer"&gt;https://abesoftt.gumroad.com/l/izfqpw&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
