Four local files to maintain Claude's context in long projects

A Reddit post outlines a method for managing long-term projects with Claude by using four local Markdown files as external memory. The approach addresses Claude's finite context window, where older messages are compressed and forgotten as conversations grow, potentially degrading output quality without obvious signs.
The four files
claude.md: Contains project rules and guidelines for how you and Claude work together.memory.md: Records key facts and decisions made during the project.restart.md: Notes what you were doing and where you stopped in the workflow.backlog.md: Lists all remaining tasks.
Workflow
The core technique is to update these files proactively before the chat history becomes too long and compression significantly degrades information. Once compression begins, Claude is effectively summarizing already-summarized content. After updating the files, you start a fresh chat session, paste the contents of all four files into the new chat, and Claude can resume work with full context.
The post also includes a user suggestion for Anthropic: implementing a context window warning system, such as a progress bar or alert, to notify users when the context is nearing capacity, prompting them to save their external memory files.
📖 Read the full source: r/ClaudeAI
👀 See Also

Claude Code Works Better as Code Reviewer Than Generator
A developer shares that Claude Code produces more grounded output when used to review existing code rather than generate from scratch. Key practices include starting sessions with current implementations, maintaining project context files, and restarting sessions when responses degrade.

Save on Claude Code Bills by Routing Planning Tokens to Cheaper Models
A user cut $40 in overage fees by splitting Claude Code workflows: planning steps go to Haiku 3.5, actual edits and decisions stay on Opus/Sonnet. A 30-line wrapper handles routing; setup took ~2 hours.

Framing AI Conversations Instead of Writing Perfect Prompts
A developer shares seven practical techniques for improving Claude AI responses by framing conversations with context, roles, consequences, and judgment requests rather than focusing on perfect prompt wording.

How to disable Claude Code's verb spinner feature
Claude Code includes a default verb spinner that displays whimsical gerunds like 'Seasoning' and 'Crafting' during processing. You can disable it by editing the settings.json file with a blank space in the spinnerVerbs array.