What If Your Coding Agent Could Remember What It Learned Yesterday? A developer built Attic, an open-source knowledge persistence tool that lets AI coding assistants like Claude Code and Codex CLI save and reuse discoveries across sessions, after context compaction, and from the browser. The tool stores findings as Markdown files in a project's .attic/ folder with an INDEX.md catalogue, so agents retrieve relevant knowledge on demand instead of re-investigating the same code paths each session. I built Attic to help Claude Code and Codex CLI remember what they discover — and now you can save knowledge from your browser too. You ask your AI coding assistant to investigate a bug. It searches the repository. Reads five files. Follows a few imports. Runs some commands. Finally, it tells you: "Found it. The authentication check happens after the desktop sub-window is created." Great. You fix the bug. A few days later, you start a new session. You ask the assistant to investigate another issue in the same area. It searches the same files. Reads the same imports. Runs the same commands. And eventually discovers the same thing you already knew. You just paid for the same investigation twice. Maybe three times. This is the problem I wanted to solve with Attic — an open-source knowledge persistence tool for AI coding assistants. But the interesting part isn't simply saving notes. It's the design behind making those notes useful across sessions, after context compaction, and now even from your browser. GitHub: https://github.com/NishikantaRay/Attic https://github.com/NishikantaRay/Attic Let's start with a simple example. Imagine you're working on a JavaScript monorepo. You ask Claude Code: "Why is the cloud package failing to load?" The assistant investigates and finds: // packages/cloud/index.js export default cloudClient; export default cloudConfig; Two default exports. The file throws a syntax error. The assistant explains the issue. You fix it. But where does that knowledge go? If you only keep the conversation, the discovery is trapped inside that session. If you start a new session, your assistant may have to rediscover the same problem. The codebase contains the bug fix, but it doesn't necessarily contain the reasoning that helped you find it . And reasoning is often what you need the next time. Suppose your project has a rule: "All desktop sub-windows must wait for authentication before rendering." But the actual implementation creates the window before the authentication gate finishes. Your assistant investigates and discovers the contradiction. That's valuable knowledge. Not just: There is a bug. But: The desktop sub-window can be created before the authentication gate completes, despite the documented requirement. That tells the next investigation where to look. It also tells a teammate what assumption is unsafe. It explains why the code behaves the way it does. This kind of knowledge is easy to lose. And it isn't limited to bugs. It includes: Your codebase is a library of implementation. Your AI assistant's discoveries are the notes in the margins. The question is: Where do those notes live? Attic is an open-source tool designed to help AI coding assistants persist and reuse knowledge. It works with: The idea is straightforward: Write what you learn to a file. Keep a small index in context. Retrieve the details when you need them. No need to put every discovery into the assistant's context forever. No need to rebuild the same understanding from scratch every session. And no need to turn your entire repository into a giant collection of instructions. Attic gives the agent a place to store useful discoveries. Think of it as a small knowledge library inside your project. Imagine you have a library. You have 200 books. You don't carry all 200 books around with you. You carry a catalogue. The catalogue tells you: When you need a particular book, you look it up. Attic follows the same idea. .attic/ folder is the library A typical Attic knowledge folder contains Markdown files: .attic/ ├── INDEX.md ├── DECISIONS.md └── items/ ├── f1.md ├── f2.md ├── f3.md └── ... The exact files and commands depend on the installed version, but the core concept is consistent: The knowledge lives on disk. The index helps the agent find it. INDEX.md is the catalogue card The index is not supposed to contain every detail. It's a compact representation of what matters. For example: Attic Index Pinned - f3: Authentication must complete before desktop sub-windows are created. Recent findings - f12: Cloud package has duplicate default exports. - f11: API client is initialized in the shared module. - f10: The docs and implementation disagree about the authentication lifecycle. Older items 95 older items not shown. Use /attic-recall