marciopuga/cog
A plain-text memory system for AI agents. Clone it, point your agent at it, start remembering.
What it solves
It provides a persistent, human-readable memory system for AI agents that works across different projects without requiring databases, servers, or complex infrastructure. It solves the problem of "forgetful" agents by storing facts, events, and patterns in a structured folder of plain-text files that the agent can navigate and update naturally.
How it works
The system uses a tiered loading approach where the agent reads a small set of core files (hot memory, patterns, and a map of summaries) at the start of every session. Instead of searching through massive amounts of data, the agent navigates a tree of files using one-line summaries (l0) to find relevant information. When you run the /cog command, the agent updates these files with new facts, action items, or events, and automatically archives old data to keep the system lean.
Who it’s for
It is for power users of AI agents (like Claude Code, Cursor, or Gemini CLI) who want a unified, long-term memory that they can also edit manually in a text editor or Obsidian. It is ideal for those who prefer a transparent, file-based system over proprietary or opaque "black box" memory solutions.
Highlights
- No installation or server required: uses only plain-text files and markdown.
- Compatible with any agent that can read instruction files and execute commands.
- Efficient retrieval: uses a navigation-based design that reduces token usage and costs.
- Self-maintaining: automatically archives old tasks and observations to keep files small.
- Human-editable: acts as a valid Obsidian vault, allowing you to manage your own data alongside the agent.
Related
- Project
- Project
- Project
- Project
- Project