Claude Code Ate My Homework: The 30-Day Cleanup Surprise

Claude ate my homework

I had one of those developer moments today where the screen says something calm and technically accurate, while your brain hears:

“We have misplaced several weeks of your life.”

I opened Claude Code to continue working on a project I have been building pretty heavily, and instead of my familiar session I got: Session not found on disk … WTF?? I checked it was the same across projects.

That is not a sentence you want to see when your AI coding assistant has been carrying a substantial amount of project context.

At first I assumed something had broken. Maybe an update. Maybe a path change. Maybe Windows had decided to participate in software development again.

Then I found the real explanation.

Claude Code has a session cleanup mechanism. If you do not change the setting, conversation transcripts can be removed after a retention period that has commonly defaulted to 30 days.

Thirty days!

Not 30 days since you finished the project.

Not 30 days since you archived the conversation.

Not 30 days after a polite warning saying, “Hey, you still need this?”

Just old enough according to the cleanup policy.

And then: snip.

The particularly fun part

The code was fine.

GitHub was fine.

The repository was fine.

The commits were fine.

The documentation was fine.

What disappeared was the AI conversation transcript.

Which sounds harmless until you remember what actually lives in those conversations:

  • architectural reasoning
  • debugging discoveries
  • decisions you made three weeks ago
  • why you rejected Option B
  • production verification steps
  • weird edge cases
  • “do not ever touch this function again unless you want to summon demons”
  • 47 rounds of “that works, but now fix this other thing”

The code tells you what exists.

The conversation often tells you why it exists.

That is a very different artifact.

How I figured out what happened

I went looking in Claude’s local project storage under:

C:\Users\<you>\.claude\projects\

Claude Code stores session transcripts as .jsonl files.

In my case, the old transcript was gone.

The only transcript present was the brand-new session I had just created while investigating the problem.

Then I checked:

C:\Users\<you>\.claude\.last-cleanup

Its timestamp had been updated seconds after I reopened Claude Code.

That was a fairly strong clue.

My global Claude settings file was also:

{}

Meaning I had never explicitly changed the retention period.

There are multiple Claude Code issue reports describing the same behavior: old session transcripts getting cleaned up while other metadata can remain behind, leaving the UI aware that a session once existed but unable to actually open it.

A digital tombstone.

Can you recover the session?

Maybe.

Before declaring it dead, search for surviving .jsonl files.

On Windows PowerShell:

Get-ChildItem -Path "$env:USERPROFILE\.claude" -Filter "*.jsonl" -Recurse

If your old transcript still exists somewhere, you may be able to recover or resume it.

You can also inspect:

C:\Users\<you>\.claude\projects\

and look for folders corresponding to your project.

If the transcript is really gone, though, there may not be much to recover. Git preserves your code history. It does not preserve the entire conversation you had with Claude while creating it.

How to stop this from happening

Claude Code supports a setting called:

"cleanupPeriodDays"

The global settings file is typically:

C:\Users\<you>\.claude\settings.json

Mine was empty.

I changed it to:

{
  "cleanupPeriodDays": 3650
}

That gives me roughly ten years of retention, which should cover the remainder of this product, several career changes, and possibly the first EventSynced holographic tour manager.

You may see posts online suggesting:

"cleanupPeriodDays": 0

I would be cautious with that. There have been version-specific reports around how 0 is handled. A large positive value is boring, predictable, and boring is exactly what I want from data retention.

The larger lesson

AI coding tools are becoming part of the development environment, but their conversations are not necessarily durable project artifacts.

That is easy to forget.

When you spend weeks working with Claude, ChatGPT, Cursor, Copilot, or another assistant, the conversation starts to feel like part of the project.

But unless you deliberately preserve the important decisions somewhere else, it may just be temporary local state wearing a convincing mustache.

My new rule is simple:

Git stores the code.
Documentation stores the decisions.
AI conversations are useful working memory, not the only copy of institutional memory.

And apparently, check your retention settings before your AI decides it has become Marie Kondo.

One thing that saved me

I happen to use two AI systems while building.

Claude Code does most of the direct work in the repository.

Another AI product manager agent I created has been helping with product strategy, architecture decisions, feature sequencing, debugging context, UX decisions, and keeping track of the broader development story.

So when Claude lost its memory, I still had another reasonably complete record of where we were.

Accidentally, I had built AI redundancy.

That now feels less excessive and more like backups.

Because apparently in 2026, disaster recovery includes:

“Do any of the other robots remember what we were doing?”

Update: The sessions were not actually deleted

After more digging, I found that my newer “Session not found on disk” errors were caused by my custom Claude profile setup, not the 30-day cleanup.

I use separate Personal and Work profiles so Claude Code, GitHub authentication, plugins, settings, and project context stay isolated. The problem was that Claude Desktop sometimes relaunched itself after an update without the profile-specific environment variable that tells Claude Code where to store transcripts.

So Claude Desktop still looked like my Personal profile, but Claude Code quietly fell back to the default:

C:\Users\<me>\.claude

The missing sessions were sitting there the whole time. Claude was simply looking in the wrong directory.

The fix was to make the active profile persistent at the Windows User level, so normal launches, Start-menu launches, and future app relaunches all inherit the correct profile automatically.

So there are really two separate issues worth knowing about:

  • Claude Code does have a session-retention cleanup setting, which I still increased substantially.
  • “Session not found on disk” can also mean the transcript exists, but Claude is looking under the wrong profile/config directory.

In my case, the second explanation was the real culprit for the recent failures.

That is both less terrifying and somehow more technically ridiculous.

Where’s the edge now?

Wheres the edge now

For a long time I could always find the edge of AI. The spot where it stopped being amazing and started being a party trick. Every time a new model dropped, I’d go looking for that line, and I’d find it. The models got better, the line moved, but it was always there. Honestly, I figured we were closing in on a ceiling.

I don’t think that anymore.

I used to be able to map the wall

Finding the limits used to be the easy part. Each new release, I’d push on it until it broke, and it always broke somewhere. It would lose the thread, make something up, or fall apart on anything that needed real depth. That failure point was reassuring. It told me where the tool ended and where I still had to take over.

I got good at drawing that line. I could tell you what AI was great at and exactly where it fell off the table. For a while, that boundary barely moved between versions, which is why I assumed we were near the top of the curve.

Then the line got hard to find

Somewhere in the last couple of months, the wall got faint. It’s still there in very specific spots, if you know where to push, but now you have to go looking. It stopped being obvious.

And the bigger change wasn’t the depth. It was the breadth. The number of things AI can be pointed at kept multiplying, faster than I could track. I don’t pretend to know even half of what’s out there. But the slice I do work with has been enough to change how I think about the whole thing.

One person can do what a team used to

Here’s where I’ve landed: I can’t think of a project or a business need that can’t be made better with the right use of AI. That’s a big statement, and I don’t make it lightly.

I’ve designed and built agents that create, reason, argue a position, chew through heavy calculations, and run entire processes start to finish. You still need a person in the loop, that part hasn’t changed and I don’t think it should. But the math is different now. One person with the right setup can do the work that used to take a whole team.

This is not the part where the jobs vanish

For the record, I don’t think this wipes out work. Done right, jobs evolve, the way they did with electricity, the car, and every other invention that felt like the end of something before it became the floor of something else.

Look at IKEA. When their chatbot, Billie, started handling routine customer service, they didn’t hand out pink slips. They retrained thousands of call-center workers into remote interior design advisors and stood up a whole new service line. Same people, better job, new revenue. That’s the good version, and it isn’t a fantasy. There will always be a bad version too. But done right, the upside is hard to overstate.

The part that gives me pause

All of this happened in about three years. That’s the piece I keep turning over.

Not the progress itself, which I’ve made my peace with and mostly enjoy. It’s the slope. If this is the distance we covered in three years, I genuinely don’t know where we’ll be standing after three more.

And for once, I’m not sure I can find the edge to tell you.

My AI Is a Rubber Duck That Actually Talks Back

My AI is a Rubber Duck That Actually Talks Back

There’s a debugging trick programmers use called rubber duck debugging. You get stuck on a problem, so you explain it out loud to a rubber duck sitting on your desk. The duck says nothing. But saying the problem out loud forces your brain to line it up in order, and somewhere in the explaining, you spot the answer yourself. The duck is just a piece of rubber.

I’ve done a version of this for years. The difference now is that my duck is an AI, and it talks back.

How This Usually Went

I think in systems, and I do most of that thinking at inconvenient hours. In the shower. On the drive. At 11pm when I should be asleep. There’s always a lot in motion for me: several projects, several brands, several lanes open at the same time. Ideas were never the shortage. The shortage was the distance between having an idea and doing anything with it.

That distance is where the hard part lives. Between the spark and the finished thing, there’s a brutal middle stretch where you have to pressure-test the concept, sketch the architecture, map the flows, research the tools, write the brief, and build the plan. Ideally you do all of that with another sharp person in the room, someone who can push back, catch the gaps, and warn you when you’re about to walk into a wall.

At 11pm, that person is rarely around.

So ideas would sit. They’d marinate. A few lasted long enough to turn into something. Most got quietly buried by whatever idea showed up next.

Enter the Duck

I started taking AI tools seriously a few years ago. Not for the obvious tasks, not “write this email” or “summarize this doc.” I started treating it like a genuinely smart colleague who happened to be awake at every hour and never got tired of my tangents.

I’d think out loud. It would answer. I’d push. It would sharpen. I’d wander off course, and it would follow, then help me find the road again.

The surprise wasn’t that my ideas got better. It was how much faster they moved.

I want to be careful here, because it’s easy to say the wrong thing about this. The AI isn’t doing my thinking. The ideas are still mine. So are the instincts, the direction, the “yes, that’s the one” and “no, that’s off.” What the AI took away was the tax on thinking out loud, the friction of not having the right person around. It shrank the gap between “I have an idea” and “I understand what this idea actually is.”

This Morning, For Example

I sat down with a modest agenda. Some news to catch up on, a few emails, a calendar to glance at. Nothing unusual.

Partway through, I mentioned that I’d been designing a couple of websites with AI tools, and I found myself wondering out loud whether WordPress, which has been my go-to for a very long time, was still the right answer for every situation.

For context: I’ve been a WordPress person for years, and for good reason. Plugins, flexibility, clients who can update their own pages without calling me in a panic. I was loyal to it.

What happened next was not on the agenda.

We started poking at headless CMS options. I watched a demo of one and decided almost immediately it was far more than I needed, a real “that’s a lot” moment for anyone who just wants something simpler. So I asked, more or less: what if we just built the simpler thing ourselves?

That’s when the duck started talking.

The Idea That Ate My Morning, In the Best Way

“I want a simpler CMS” turned into a full product concept in about forty minutes.

Not because the AI dropped an idea in my lap. Because every time I said something, it answered in a way that either backed the direction, pushed it further than I’d taken it, or filled a gap I hadn’t spotted.

I’d say, “I want something simple a small business owner can run from their phone.”

It would say, in effect, “Here’s what that stack looks like, here’s the user flow, and here’s where it falls apart if you’re not careful.”

I’d say, “What if it also posted to social?”

It would say, “Sure, and here are six other things you’ll probably want while we’re in there.”

I’d say, “Wait, is this actually a product?”

It would say, “Yes. Here’s the business model.”

By the time I looked up, I had a named product, a three-layer architecture, a feature roadmap across three versions, a reference client, a tech stack, a business model, and a written product brief ready to hand to a design tool.

Total elapsed time: one conversation.

None of that was planned.

What’s Actually Happening Here

I want to be straight about what AI is and isn’t doing in this, because the conversation around it tends to overshoot in both directions.

It is not doing my thinking. The instincts behind that morning, knowing a full CMS was overkill, knowing small business owners live on their phones, knowing the methodology I’d built up over the years could become a product, none of that came from the tool. Those came from years of doing the work. AI can’t manufacture that. It can only work with what you already carry in.

What it is doing is removing the activation energy an idea needs to get moving.

The old path from “shower thought” to “coherent brief” cost real time alone at a whiteboard, or the right person in the room, or enough caffeine to force it by hand. Now it costs a conversation. The duck answers in real time, and by the end you have bones, a real structure to build on.

There’s a second thing it does, and this one caught me off guard. It makes me a better thinker in the moment. When you know the tool will chase a tangent with you and help you find your way back out, you’re far more willing to chase the tangent in the first place. You take an idea further than you would alone, because the cost of hitting a dead end drops close to zero. That willingness to explore is where the good stuff hides.

The Speed Is Real, But It’s Not the Point

Everyone talks about how fast AI is, and it is fast. I went from “what are the alternatives to WordPress” to “here’s your product brief” in a single morning. That’s genuinely wild.

But speed isn’t the part that actually frees you.

The part that frees you is that the idea doesn’t have to wait anymore.

It doesn’t wait for the right meeting. It doesn’t wait for the right collaborator to be free. It doesn’t wait for a quiet afternoon that never comes while the idea slowly goes stale over six months. You have the thought, you open a chat, and you go. The idea either survives the conversation or it doesn’t, and you find out fast either way. If it dies, you’re out twenty minutes. If it lives, you walk away with a brief, a plan, and momentum.

For someone running a lot of lanes at once, with a habit of thinking at odd hours, that’s the real unlock.

The Rubber Duck, Evolved

Here’s the thing I keep circling back to.

The original rubber duck works because saying something out loud forces it into order. You hear yourself explain a broken idea, you catch the flaw, you fix it. The duck is a mirror and nothing more.

What AI adds is that the duck pushes back.

It doesn’t just reflect what you said. It responds. It builds. It raises something you hadn’t considered and asks the question you were circling without naming. It takes the half-formed thing you handed over and hands you back something closer to whole.

That back-and-forth is where the building actually happens. The plain rubber duck could never do that part.

And now that I’ve worked this way, I can’t picture going back to thinking alone.

The Em Dash Was Just the Beginning

The EM Dash Was The Beginning

I spent days trying to kill the em dash.

Not hours. Not a lazy afternoon of find-and-replace. Days. Actual back-to-back days of opening documents, hunting for that little horizontal line, and wiping it out one instance at a time like I was running some kind of literary pest control. I tried everything. I rewrote prompts to forbid it. I had AI swap it for commas, semicolons, periods, anything that would make the evidence disappear.

It didn’t matter. The em dashes kept coming back.

Everyone Decided It Was Lazy

The em dash had turned into the punctuation version of a mug shot. You could catch one three paragraphs in and know, just know, that AI had touched the text. It was the tell. The fingerprint. The thing that made a sentence feel like it came from something that hadn’t really thought, just rearranged.

So I wasn’t alone in the obsession. Everybody was at it. Deleting them, replacing them, writing around them. It became a strange little loyalty test, proof that you’d actually read your own work, that you’d done the curation, that you hadn’t just pasted whatever the algorithm handed you.

Every em dash I killed felt like proof I was still in control.

Then I Actually Looked at What It Does

Somewhere in the middle of the crusade, I noticed the em dash actually works. Like, works. It creates a pause. It holds two ideas in tension just long enough for the connection to land. It does the exact job punctuation is supposed to do, setting the rhythm, managing the breath, guiding how a sentence feels as someone reads it.

Which is probably why AI leans on it so hard.

Then something odd happened. I kind of fell for it. Not ironically. Not as a bit. I actually came to love how clean it looked, how it moved the reader’s eye, how it made writing feel less like explaining and more like thinking. No surprise the great writers have used it forever. Who was I to argue? Maybe I should start using it myself.

Right at the moment it was the single loudest signal that writing was machine-made. Ironic. Some things never change.

But Here’s What Actually Matters

The em dash was never really the point. It was just the first tell we learned to spot.

Because about a year on, I stopped treating it as the only marker. The tells had moved. The new ones look different. Throat-clearing openings. Preset structures. That “this, but not that” phrasing showing up everywhere now. TV scripts. LinkedIn. Corporate email. Anyplace a human presumably had a chance to edit and somehow didn’t.

And here’s the trap: by the time you’ve trained yourself to catch one tell, three new ones have already taken its place. The markers don’t sit still. They shift the second we learn to see them.

So chasing them, fighting them, trying to prove you’re human by scrubbing them out, that’s a game you can’t win. You’re always a step behind.

There’s also the part nobody wants to admit. A lot of it is genuinely good writing. It’s just wildly overused. It’s meant to be the seasoning, not the whole plate.

What Actually Changed for Me

I stopped fighting the tells. Instead I built a real practice around the one thing that doesn’t move: curation.

Here’s the actual process. I write a long, rambling first pass myself. Raw concepts, stray thoughts, ideas dumped into a full outline. The part that’s unmistakably mine. Then I bring in AI. I let it think next to me, help me expand, build out the sections where I’m stuck. Then I read the whole thing. Actually read it. I make sure my voice runs through every paragraph. I cut what doesn’t land. I fix what’s off. I edit it the way you edit something you actually own.

It isn’t about deleting em dashes anymore. It isn’t about whatever marker is trending this week. It’s about the discipline of the practice itself, reviewing, shaping, planting your voice in the material until it sounds like you again. I’m enjoying writing this way more than I have in a long time. Maybe I’ll take the training wheels off one day. For now, I’m happy riding.

It Feels Like Hearing a Recording of Your Own Voice

There’s something genuinely strange about hearing yourself sing back on a recording. It doesn’t sound the way it does in your head. But it is you. The same thing happens to me with writing that’s been run through AI and then edited again. The voice feels close but not quite the same. Cleaner, maybe. More shaped.

Like I ran myself through a filter that improved the signal instead of degrading it.

Just no autotune.

So What’s the Future, Actually?

Here’s what I think is really going on: the way forward isn’t humans against machines. It isn’t about proving you did it all solo or that you’re still the one holding the reins. It’s a partnership, and neither side does the whole job.

I bring the intent. The voice. The judgment. The willingness to say “no, that’s not right.” AI brings the expansion, the options, the ability to explore paths I wouldn’t reach on my own. We work together, not against each other.

The tells will keep changing. New markers will surface, everyone will panic, then they’ll turn normal. That cycle isn’t stopping.

But the practice, the real work of reading, editing, and making sure your voice is in the room, survives all of it. It survives whatever’s trendy. It survives whether or not I use my new friend, the em dash.

That’s the real tell.