Note ·

Created a Memory System for My AI Agent to Remember Everything About the Project

Creating a memory system for AI agents like Claude Code and Codex will help them effectively remember key aspects of projects. The Zero Day Protocol provides structured information storage, allowing agents to easily retrieve context and make informed decisions.

Every time I open a project in a new session, Claude Code, Cursor, or Codex either forget what they were doing on that project in a previous session or only remember bits and pieces, because the agent's memory is not infinite and has its limits. They often forget both the goals and the architecture, as well as previous decisions made. I found myself having to recount the context from scratch — and this happened almost every time.

Zero Day Protocol is a memory system for coding agents. It deploys a separate "memory cell" in each project: a structured folder PROJECT/, where the specifications (TOR.md), the agent's expert lens (SOUL.md), a knowledge map (MEMORY.md), and an action log (LOG.md) reside.

From there, the agent:

  • interviews you at the start of a new project — or scans existing code;

  • loads context at the beginning of each session (via a hook in Claude Code);

  • protects secrets — private notes do not leak into commits;

  • maintains a log of decisions, so nothing gets lost.

And one of the main advantages is that the memory lives in the repository itself, travels with the code, is portable between machines/agents/teams, and the context remains lightweight thanks to lazy loading. This means that even if you reinstall the system and delete your AI agent files, information about your project and its previous actions will remain in the project folder.

Developed for Claude Code, but can be adapted for Codex, Cursor, Windsurf, Cline, and any other agent that reads project files. Open source, MIT license.

You can download it here: github.com/guloff/zero-day-protocol

After installation, you can feel like Tony Stark, and to launch the protocol, simply open the project folder and tell the AI agent "run the zero day protocol." And yes, there is a similar term in IT, but our "zero day" has nothing to do with that; rather, it hints that this protocol should be initiated at the very beginning of your work — before you start coding.

Comments

Loading…

← All notes