Skip to content
HomeNewsDigestsConceptsGuidesToolbox
AboutSubscribeUA
Subscribe

AI Today Brief

The daily AI-engineering brief. Built in public. EN · UA.

XTelegramLinkedInYouTubeRSS

Follow AI Today Brief on LinkedIn for daily AI-engineering updates and the weekly “5 shifts that changed how developers work” PDF.

Explore

NewsDigestsConceptsGuides

Company

SubscribeAdvertiseAbout

Legal

Editorial policyAI disclosurePrivacyTerms

© 2026 AI Today Brief. All rights reserved.

  1. Home/
  2. News/
  3. Agents & MCP/
  4. Claude Code silently deletes conversation transcripts after 30 days
Agents & MCP

Claude Code silently deletes conversation transcripts after 30 days

Claude Code defaults to deleting project history after one month. Update your configuration immediately to prevent permanent data loss.

June 30, 2026· 3 min read
OKCurated by Oleksandr Kuzmenko, AI Product Engineer·Updated June 30, 2026·Sources cited on every story
AI-assisted · editor-reviewed·How we use AI
Agents & MCP

Impact: High

Why it matters

Prevents the accidental loss of long-term debugging context and design reasoning logs.

TL;DR

  • 01Check your Claude Code settings immediately
  • 02Set cleanupPeriodDays to at least 3650
  • 03Back up your ~/.claude/projects/ directory

Key facts

Default cleanup
30 days

The Deletion Mechanism

Claude Code deletes files in ~/.claude/projects/ that exceed the 30-day threshold. This happens silently on startup, with no first-run disclosure or warning.

How to Protect Your Data

To stop the auto-deletion, update your settings.json file. Set the cleanupPeriodDays to a much higher value, such as 3650 (10 years), effectively disabling the cleanup:

{
  "cleanupPeriodDays": 3650
}

Current Limitations

Users have noted that this setting might not be respected in all scenarios. Currently, the most reliable method is to treat your ~/.claude/ directory as temporary or implement a manual backup strategy for these JSONL logs, as there is currently no soft-delete or trash folder implementation.

Try it in 2 minutes

{
  "cleanupPeriodDays": 3650
}

json

✓ When to use

  • When maintaining long-running AI agent sessions
  • When needing to reference past debugging steps

What to do today

  • →Locate settings.json
  • →Add "cleanupPeriodDays": 3650
  • →Verify your JSON syntax

What the community says

  • “There's nothing in claude code onboarding that tells you about this config setting. So most people don't discover it until it's bitten them.”

    — rahimnathwani on Hacker News

#Claude Code

Sources

  • Claude Code Issue #62476
ShareShare on XShare on LinkedIn
← Previous storyNodePad: Moving AI Agents from Chat to CanvasNext story →X launches official Model Context Protocol server for AI integration

Related stories

  • Agents & MCPOpenMAIC 1.0 Adds Agent Workbenches and Multi-Agent Classroom Generation
  • Agents & MCPGitHub Introduces Project HydraFusion Multi-Model Routing in Copilot Command-Line Interface
  • Agents & MCPBuilding Durable Infrastructure to Prevent Runaway Autonomous Agent Execution
  • Agents & MCPHermes Agent Cuts 375,000 Lines Across 15-Hour Recursive Subagent Run

Email digest

Get the morning AI brief

One email a day — the stories that matter for engineers, founders and tech leads. Human-edited, with links to primary sources.

  • ✓120+ sources scanned daily
  • ✓Edited by a human
  • ✓1 email per day
  • ✓EN + UA

By subscribing you agree to the privacy policy.