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

Don't Assume Expensive Models Are Better: Case Study Shows 13x Cost Savings by Testing
User replaced GPT-5.4 with Gemini 3.1 Flash Lite on a classification task, achieving identical 85% accuracy at 1/13th the cost after running evals on 21 models.

Get Emoji-Decorated Checklists in Claude by Adding One Line to CLAUDE.md
Add a one-line marker set to your user-level CLAUDE.md to make Claude decorate checklists with status emojis — 14 fixed icons for done, running, failed, blocked, etc.

Stop using Claude as an expensive autocomplete — build an SDR system with role definitions, memory files, and refinement rituals
A Reddit post argues that most sales teams use Claude as a 'chatbot' rather than a system. The fix: define a role, maintain a memory file with ICP/tone/learnings, and run a weekly refinement ritual to compound output quality.

Token Waste in Claude Code: A User's Self-Audit Shows Behavioral Fixes Beat Model Switching
One user measured token usage in Claude Code and found that /clear between tasks, planning before editing, and banning re-reads of edited files saved more tokens than switching models. Practical discipline beats wrappers.