[Bug] Uncontrolled Project History Accumulation in Configuration File

Resolved 💬 4 comments Opened Sep 2, 2025 by brandontan Closed Jan 8, 2026

Bug Description

⏺ Summary:

  • Reduced file from 892 to 432 lines (52% smaller)
  • Removed project history that was taking 851 lines
  • MCP configurations preserved (zen-mcp server intact)
  • Created backup at ~/.claude.json.backup-20250902

To prevent future bloat:

  • The history seems to accumulate all your prompts/commands
  • Consider periodically clearing it with: jq 'del(.projects[].history)' ~/.claude.json
  • Unfortunately, there's no built-in setting to disable history tracking in Claude

╭────────────────────────────────────────────────

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 1.0.100
  • Feedback ID: a72182ee-3d17-42b3-b50f-005a35a4012f

Errors

[{"error":"Error: Request was aborted.\n    at CP.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:979:3864)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-09-02T03:38:17.923Z"},{"error":"MaxFileReadTokenExceededError: File content (31777 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at W1B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1757:432)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1752:994)\n    at async jM5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3533:11270)\n    at async wmB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3533:7469)\n    at async K1B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1757:3411)\n    at async J9B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1935:983)\n    at async SM5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3533:6662)\n    at async RM5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3533:5603)\n    at async LE (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3533:3007)","timestamp":"2025-09-02T03:38:53.528Z"},{"error":"MaxFileReadTokenExceededError: File content (31640 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at W1B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1757:432)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1752:994)\n    at async UM (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1757:2956)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1771:1032","timestamp":"2025-09-02T03:40:32.245Z"}]

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗