
Claude Code keeps forgetting your PostgreSQL switch? Dev builds full 'brain' so AI stops acting like a goldfish intern
A developer has created a memory system called Claude Cortex to address the issue of Claude Code, an AI assistant, forgetting important information during long work sessions. The system provides Claude Code with short-term, long-term, and episodic memory, allowing it to recall key details such as database choices and authentication setups. The memory system scores information for salience, or importance, and decays over time, with frequently accessed memories being reinforced. The developer, who was frustrated with having to re-explain their codebase to Claude Code, built the system using technologies such as TypeScript, SQLite, and React. The Claude Cortex system has been released on GitHub and npm, with 56 passing tests and an MIT license. The system is significant as it enables Claude Code to remember project details, making it more useful for developers working on complex projects, and has the potential to improve the overall productivity of developers using AI assistants.