<?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: Jolli AI</title>
    <description>The latest articles on DEV Community by Jolli AI (@jolliai).</description>
    <link>https://dev.to/jolliai</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%2Forganization%2Fprofile_image%2F13477%2Fe034a61b-cc28-4072-a037-d259eb945fe5.png</url>
      <title>DEV Community: Jolli AI</title>
      <link>https://dev.to/jolliai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jolliai"/>
    <language>en</language>
    <item>
      <title>I Vibe-Coded an App in a Weekend. Three Weeks Later I Couldn't Explain It.</title>
      <dc:creator>Keoni Murray</dc:creator>
      <pubDate>Thu, 28 May 2026 18:14:40 +0000</pubDate>
      <link>https://dev.to/jolliai/i-vibe-coded-an-app-in-a-weekend-three-weeks-later-i-couldnt-explain-it-7c</link>
      <guid>https://dev.to/jolliai/i-vibe-coded-an-app-in-a-weekend-three-weeks-later-i-couldnt-explain-it-7c</guid>
      <description>&lt;p&gt;I was debugging a Stripe webhook handler in a side project I'd vibe-coded over a weekend. The app was simple, a subscription billing tool I'd built with Claude Code. It featured user auth, payments and a dashboard. It worked. Users signed up. Money moved.&lt;/p&gt;

&lt;p&gt;Then a user reported getting charged twice after upgrading their plan. I opened the webhook handler and stared at it. There were no obvious bugs.&lt;/p&gt;

&lt;p&gt;It handled &lt;code&gt;customer.subscription.updated&lt;/code&gt; events, checked for idempotency, and updated the user record. All correct. But there was a conditional branch I didn't recognize, a check for overlapping billing cycles that I couldn't explain. I &lt;em&gt;knew&lt;/em&gt; I'd discussed this with Claude during the session. I vaguely remembered rejecting a simpler approach because of a race condition. But which approach? Why this one?&lt;/p&gt;

&lt;p&gt;The session was gone. The commit message said &lt;code&gt;Add Stripe webhook handler&lt;/code&gt;. The git diff showed me what changed. Nothing showed me why.&lt;/p&gt;

&lt;p&gt;I spent almost two hours reverse-engineering my own code before I found the bug. The fix took four minutes.&lt;/p&gt;

&lt;p&gt;That wasn't the first time. A week earlier I'd spent most of a morning trying to pick up a feature I'd started with Cursor the Friday before. I knew I'd made progress, the commit history showed four clean commits. But I couldn't remember the approach I'd landed on for handling rate limits, or why I'd structured the retry logic the way I did. So I did what I always end up doing: started a new session and re-explained everything from scratch.&lt;/p&gt;

&lt;p&gt;The thing is, AI coding tools are great at the building part. Describe what you need, iterate, ship. But they don't remember anything. Every session starts from zero. Close the terminal and the thinking behind the code is gone. Git tracks what changed. Nothing tracks why. You don't notice how much that costs you until you add it up.&lt;/p&gt;

&lt;h2&gt;
  
  
  It shows up everywhere once you start paying attention
&lt;/h2&gt;

&lt;p&gt;The debugging session was bad enough. But context loss compounds in ways I didn't expect.&lt;/p&gt;

&lt;p&gt;I review PRs from teammates who use Claude Code and Cursor. The diffs are clean, well-structured, tests pass. But I can't review them because I don't know &lt;em&gt;why&lt;/em&gt; these decisions were made. Was there a reason they used a queue instead of a direct API call? Was that an intentional choice or just what the AI suggested first? I spend twenty minutes reverse-engineering intent before I can even start the actual review. And I know they're doing the same thing with my PRs.&lt;/p&gt;

&lt;p&gt;I've hit the compaction wall mid-session more times than I can count. Two hours in, Claude understands my codebase, my constraints, my preferences. Then the context window fills up. It summarizes the conversation to make room and loses the critical details. It starts contradicting itself, forgetting constraints I set an hour ago, suggesting approaches I already rejected. It's like your collaborator got swapped out mid-conversation and nobody told you.&lt;/p&gt;

&lt;p&gt;I've watched a teammate try to onboard onto a codebase I'd built mostly with AI. Half the files were decisions I couldn't fully explain anymore, not because the decisions were bad, but because the reasoning existed in a Claude session I'd closed weeks ago. The code worked. The &lt;em&gt;why&lt;/em&gt; was gone.&lt;/p&gt;

&lt;p&gt;It hit me: the tools that made me faster at writing code were making me slower at everything that comes after, reviewing, debugging, onboarding, maintaining. I was generating code at 10x speed and paying for it later at 0.5x.&lt;/p&gt;

&lt;h2&gt;
  
  
  The workarounds I tried
&lt;/h2&gt;

&lt;p&gt;I tried fixing this myself.&lt;/p&gt;

&lt;p&gt;I set up a CLAUDE.md file in my repo, a static context file that gets loaded into every AI session. It helped. But it's manual, it goes stale the moment my codebase evolves, and it caps out at a couple hundred lines before it starts bloating every session. More importantly, it captures project-level context, not session-level context. It can tell Claude "we use Zustand for state management." It can't tell Claude "last Tuesday we discussed three different approaches to the auth flow and here's why we chose this one."&lt;/p&gt;

&lt;p&gt;I tried keeping manual session notes. That lasted about a week. I'd skip them when I was tired, or when a session ended in frustration, which is exactly when the context matters most.&lt;/p&gt;

&lt;p&gt;I looked into custom MCP memory servers, SQLite-based solutions, personal scripts. Some of them are impressive. But they're fragile, they're individual, and they don't solve the fundamental problem: context should live in my development workflow, not a side project I maintain on my own time.&lt;/p&gt;

&lt;p&gt;Every workaround I tried had the same flaw. They depend on me being disciplined enough to do the thing, every time, without fail. And I'm not. Nobody is. That's the whole reason we have CI/CD, linters, and formatters.&lt;/p&gt;

&lt;h2&gt;
  
  
  Context as Code
&lt;/h2&gt;

&lt;p&gt;After all the workarounds failed, I kept coming back to the same question: why is context something I have to manually maintain in the first place? My code lives in the repo. My tests live in the repo. My CI config lives in the repo. But the reasoning behind my AI-generated code lives in a chat window that disappears?&lt;/p&gt;

&lt;p&gt;That's when I remembered we've already solved this exact problem before, with Docs as Code. Documentation was always stale because it lived in a separate system. The fix was simple: bring it into the repo, use Git and Markdown, treat it as part of the workflow. It worked because it stopped depending on people remembering to update a wiki.&lt;/p&gt;

&lt;p&gt;AI coding has created a new version of the same gap. But it's not the documentation that's falling behind, it's the &lt;em&gt;context&lt;/em&gt;. The reasoning behind why code was written. The decisions made during the session. The alternatives considered and rejected. All of it living in a chat window that gets destroyed after every commit.&lt;/p&gt;

&lt;p&gt;I've started thinking about this as &lt;strong&gt;Context as Code&lt;/strong&gt;. Capture the reasoning alongside your code, store it in version control, write it in a format anyone can read. A durable record of &lt;em&gt;why&lt;/em&gt; your codebase looks the way it does. Not in a separate tool. Not in a wiki. Not in your head. In your repo, connected to the commit it belongs to.&lt;/p&gt;

&lt;p&gt;If Docs as Code made stale documentation unacceptable, Context as Code should make undocumented AI commits feel just as incomplete.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to start practicing Context as Code
&lt;/h2&gt;

&lt;p&gt;You can try this on your next commit without installing anything.&lt;/p&gt;

&lt;p&gt;After your next AI coding session, create a file in your repo, something like &lt;code&gt;context/2026-05-22-stripe-webhook.md&lt;/code&gt;. Fill in three things:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I asked the AI to do.&lt;/strong&gt; The goal of the session in a sentence or two. "Build a Stripe webhook handler that processes subscription upgrades and handles idempotency."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What approach it took and why.&lt;/strong&gt; The pattern or solution the AI landed on, and the reasoning behind it. "Used a two-step verification that checks both the event ID and the subscription period to prevent duplicate charges during overlapping billing cycles."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I rejected and why.&lt;/strong&gt; The approaches you discussed and decided against. This is the part you'll be most grateful for later. "Rejected a simpler idempotency check using only the event ID — Claude flagged a race condition where two events could fire within the same billing cycle transition."&lt;/p&gt;

&lt;p&gt;That's it. One file. Five minutes.&lt;/p&gt;

&lt;p&gt;It won't feel worth it the first time. Then three weeks later you'll be debugging a file you can't explain, check the context folder, and find the exact reasoning in front of you. The two-hour debugging session takes ten minutes.&lt;/p&gt;

&lt;p&gt;If the manual version clicks but the discipline doesn't stick, that's why we built &lt;a href="https://www.jolli.ai" rel="noopener noreferrer"&gt;Jolli Memory&lt;/a&gt;. It captures context as you work, stores it in its own Git-backed project store, and never touches your code repo. Works with Claude Code, Cursor, Codex CLI, Gemini CLI, and Copilot. Local-first, free, and &lt;a href="https://github.com/jolliai/jolliai" rel="noopener noreferrer"&gt;open source&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The reasoning should survive
&lt;/h2&gt;

&lt;p&gt;I'm not going to stop vibe coding, it's genuinely changed how I build things. But I'm done accepting that the thinking behind my code disappears every time I close the terminal.&lt;/p&gt;

&lt;p&gt;Try it on your next commit. One file. Five minutes. See if it changes how your Monday morning goes.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>agents</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
