A Reddit user shares a Claude Code workflow for preserving context
In an r/ClaudeAI post, user Weird_Inevitable_199 described a workflow designed to stop Claude Code from rediscovering information after new sessions. The setup disables Claude Code and project memory, maintains global and per-project knowledge bases, and preserves context through detailed session handoff files and a start-of-session hook; the user also reported avoiding automatic compaction and closing a session near 80% context usage. The user said the workflow took months to build and included dedicated plans, files, and specialized agents.
The post provides a concrete, reusable approach to cross-session context management in Claude Code, although it is based on one user's experience and has not been independently verified.
I was tired off claude code forgetting things between switching sessions, then I asked one question, why do you rediscover things after every session and waste time and tokens?
Claude code literally said stop using `/clear`, it makes me rediscover again, and also claude code said done even use `/compact` either, it makes me forget small details as well.
After a long discussion with claude code, we found one solution together.
- Turn off claude code memory.
- Turn off project memory the `.remember` folder.
- Build global knowledge base (about my taste, how I want things, global rules, basically anything I want each project to inherit).