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.

AI has made me a better leader

AI has made me a better leader

There are a thousand opinions about how good AI is or isn’t, and I’m not wading into that today. I want to talk about something smaller and more personal: one specific way I use it that has quietly made me a better man, a better friend, and a better leader.

Most people know the rubber duck trick by now, where you talk a problem out loud to something that just listens until the answer surfaces on its own. I’ve written about that before. This is a cousin of it, but set up on purpose, it does a lot more than let me hear myself think.

Start with the premise: I’m a work in progress

For any of this to work, I have to admit something up front. I’m not a finished person. My sense of right and wrong is solid, and I know what it means to be a good man. But I still get offended sometimes. I still do the occasional double take at something that genuinely earned one. There have even been moments where a situation made me flat-out angry. I know, shocking.

Feeling all of that is just being human. The part that actually matters is what I do with it next.

The gap between the feeling and the response

I lean Stoic in how I try to think, and the core of it, at least the part that stuck to me, is that you don’t control what happens, only how you meet it. The line I keep in my pocket puts a number on it: life is 10% what happens to you and 90% how you react to it. I believe that completely.

Here’s the catch. My first reaction is often not my best one. Especially when it’s a negative one. That gap, between what I feel in the first hot second and how I actually want to respond, is exactly where things go sideways or come together.

So I built myself some sparring partners

This is where the AI comes in. I’ve set up a handful of tailored agents whose entire job is to help me think, not to think for me. I talk to them almost every day.

  • A no-BS one that calls me out on my own nonsense and won’t let me off the hook.
  • One that knows my work situation, names redacted, so I can pressure-test how I’m handling something before I handle it badly.
  • One that helps me weigh my hobbies and tells me, plainly, when I’m setting myself up to fail.

Each one is built to push from a specific angle. Together they give me something I have a hard time giving myself in the moment: a second look.

It does not tell me what to do

This only works because I’m not handing over the decision. I’m borrowing a perspective, not a verdict.

I can take a flash of anger and, a few seconds later, be looking at the same situation through a calmer lens. I can bring in a shiny new idea and have something remind me of the fifty ideas I already had, then ask me honestly where this one fits among them. The AI doesn’t decide anything. It widens the frame so the person making the call, me, is working with more than a gut reaction.

The reflecting is still mine to do. I just appreciate getting the chance to do it before I open my mouth, instead of after.

Your idea goes last

Your idea goes last

Here’s a rule, I am still learning, that will make you a better leader and cost you nothing but your ego: when your team is solving a problem, your idea goes last.

I picked this up from Trillion Dollar Coach, the book about Bill Campbell, the guy who mentored the people who built Google, Apple, and Intuit. One of his best-known moves was a rule he handed a senior Google executive who tended to lead with her own answer. From now on, he told her, you have to be the last person in the room to speak. And to this day, I still have to force myself to actually do it.

The rule sounds like a waste of time

When I first heard this, it sounded backwards. I’m often the most experienced person in the room. I’ve usually seen some version of the problem before. Sitting quietly while everyone else works toward an answer I think I already have feels inefficient, maybe even like I’m ducking my job.

That instinct is the whole problem. The second I lead with my idea, the meeting is basically over. Not officially, but really. People are smart enough to read the room, and once the most senior voice has planted a flag, most of them quietly reshape their thinking to match it. You don’t get their best thinking anymore. You get an echo of your own.

What going last actually does

Going last builds two things you can’t buy any other way: real buy-in and real problem-solving muscle.

When people reach the answer themselves, they own it. They’re not executing my plan, they’re executing theirs, and that changes how hard they push when the work gets ugly. Just as important, they get the reps. Every time I don’t hand them the answer, they build the muscle for finding it, and the whole dynamic flips. They stop looking to me. I start looking to them. That’s the moment the culture quietly becomes “I coach, they solve,” and it compounds from there.

I really don’t always have the best answer

The other thing going last taught me is more humbling. My answer often isn’t the best one in the room.

I’ve sat through more meetings than I can count where someone walked me through a method or an angle I never would have found on my own. Which, when I actually think about it, is the entire point. I hired these people to be better than me at their jobs. Of course they know things I don’t. Going last is how I get access to that, instead of stepping on it with my own half-formed take.

Last doesn’t mean silent

Going last is not the same as checking out. It means I spend the meeting listening instead of steering, and I save my voice for the things only I can add.

I’m still there to correct course when something’s genuinely off, to offer guidance, or to step back and ask whether we’re even chasing the right goal in the first place. That’s the job now. The team gets to build the answer, get excited about it, and prove to themselves they can crack hard problems, often better than I would have. And I get to walk out having learned something.

Turns out the best seat in the room is the last one.

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.