Search Sreeni's Insights

Filter by content type
ai crafting July 7, 2026 4 min read

The Prompt I Wrote Twice (and Lost Both Times)

I shipped a feature with Windsurf, then weeks later re-solved the same problem because I couldn't find my own prompt. That gap between 'it works' and 'it's remembered' is prompt debt, the first of seven AI debts.

Share:

The Prompt I Wrote Twice (and Lost Both Times)

AI Debt 1/7 - The Prompt I Wrote More Than Once. When the intent ships but the artifact evaporates.
AI Debt 1/7 - The Prompt I Wrote More Than Once. When the intent ships but the artifact evaporates.

TL;DR: Prompts are the new source code, but most of us treat them like throwaway chat. I shipped a feature with Windsurf, then weeks later had to re-solve the same problem from scratch because I couldn’t find my own prompt. That gap between “it works” and “it’s remembered” is what I call prompt debt — and it compounds faster than you think.


Recently, I was working on a project with Windsurf.

After a couple of back-and-forth conversations with the AI, it finally produced what I actually intended — not what I literally typed, but what I meant.

Mission accomplished. PR raised, reviewed, approved, merged, deployed, tested, released. Sessions closed. Tabs cleaned up. Inbox zero vibes.

I felt amazed. A genuinely complex feature, shipped in a fraction of the time it would’ve taken me solo.

  • PR — green tick
  • Verification — green tick
  • Deployment — green tick
  • Release — green tick
  • Feature cycle time — green tick

Everything looked right.

A Couple of Weeks Later

I started on a new feature in the same app. Somewhere in the middle of it, I hit a sub-problem I had already solved — the exact same shape, the exact same edge cases. I just needed that prompt back.

And that’s where the cracks started showing.

  • I couldn’t remember the exact prompt I used.
  • I couldn’t remember where I’d put it — some notes live in a shared team folder, some in a local prompts/ directory, some in Notion, a few in Obsidian, and honestly, probably a couple in a random Teams DM to myself.
  • I couldn’t even search it, because the keywords in my head weren’t the keywords I actually typed weeks ago.

So I did what any reasonable, slightly annoyed engineer would do: I rewrote it from scratch. Got it working again. Copied it into my “common prompt library” folder. Pasted it into Notion. Felt organised. Moved on.

A few weeks later — history repeats. Couldn’t find it. Again.

Look, I’m human. I have absolute privileges to make this kind of mess. It’s honestly a bit funny.

But On The Serious Business Side

Here’s the uncomfortable part:

Prompts are our new source code. But nobody is treating them that way.

We version code. We review code. We document code. We test code. We refactor code. We have entire industries — Git, GitHub, linters, code search, IDE indexing — built around the idea that source code is a long-lived asset.

Prompts? We type them into a chat box and hit enter. The output ships. The prompt evaporates.

And that carelessness compounds. Quietly. Daily.

  • The same prompt gets re-derived by five engineers on the same team.
  • The “good version” of a prompt lives in one person’s head, or worse — one closed browser tab.
  • Nobody can audit why the AI made a certain decision, because the prompt that shaped it is gone.
  • Onboarding a new teammate to “how we use AI here” becomes folklore, not documentation.
  • When the model changes, you can’t re-run your old prompts, because you don’t have your old prompts.

The consequence compounds fast. And consequences that compound have a name.

We call it debt.

This is prompt debt — and it’s the first of the seven AI debts quietly forming under every “green tick” we celebrate.

The PR was merged. The feature shipped. The cycle time looked great.

But the most valuable artifact of that whole exercise — the prompt that actually encoded the intent — was thrown away the moment the session closed.

What “Paying It Down” Actually Looks Like

You don’t fix prompt debt by being more disciplined. Discipline doesn’t scale. You fix it with infrastructure, the same way we fixed “where did I put that script?” with Git.

A few concrete starting points:

  • Treat prompts as commits. If a prompt produced shipped code, that prompt belongs next to the code — in the repo, in the PR description, or in a /prompts folder linked to the change.
  • One source of truth, not four. Pick one place (repo, Notion, internal tool — doesn’t matter which). Kill the others. Scattered = lost.
  • Name and tag them. auth-retry-with-backoff.prompt.md beats “that thing I asked Windsurf last Tuesday.”
  • Capture the why, not just the what. A prompt without the intent behind it is just a string. With the intent, it’s reusable knowledge.
  • Review prompts in PRs. If the prompt shaped the code, the prompt deserves a second pair of eyes too.

None of this is heavy. All of it is skipped.

The Real Lesson

The first time I lost that prompt, it cost me an afternoon.

The second time, it cost me the realisation that I’d built something I couldn’t reproduce, couldn’t explain, and couldn’t hand off.

That’s not productivity. That’s debt — dressed up in green ticks.

And it’s just one of the seven.

Related Posts