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

OpenClaw Discord proxy fix for REST API timeout issues
A user reports fixing OpenClaw Discord connection issues where WebSocket connects but REST API calls fail with "fetch failed UND_ERR_CONNECT_TIMEOUT" errors. The solution involves creating a proxy-preload.cjs file and setting global undici proxy settings.
Stop Using Claude Code Like Autocomplete: Real Wins from Repo-Aware Refactoring
One developer shares how treating Claude Code as a repo-aware refactoring assistant — not an autocomplete — delivered major wins in tracing architecture, untangling files, and finding hidden coupling.

Good AI-Assisted Development Happens at the Systems Level, Not the Task Level
A Reddit user explains how shifting from fixing AI agent output to designing constraints—like a linter rule that forces UI navigation—prevents entire classes of bugs permanently.
Claude + MCP Browser: User Reports Supercharged Web Access
A Claude user explains how hooking Claude to an external browser via MCP allowed it to navigate previously inaccessible sites, and wonders if Claude can use the browser's model tokens.