A suggested folder structure for an AI agent's long-term memory, kept as plain Markdown in a git repo. It works as an Obsidian vault and is meant for Claude Code and similar agents.
It is only a skeleton: folders, index stubs and one template note each. You fill it with your own notes. It sits next to claude-skills.
agentic-memory/
index.md start here: map of every folder
log.md newest-first changelog of the memory itself
me/ who the user is and how to work with them
projects/ one folder or note per project
ideas/ parked ideas, one note each
plans/ specs and plans, one note each
housekeeping/ recurring upkeep jobs and their results
daily/ one short note per day
private/ gitignored, never published
Each folder has an index.md (what goes here, plus links) and a _template.md to copy.
The layout follows Google's Open Knowledge Format (OKF), and the root index.md declares okf_version: "0.3".
- Every folder has a reserved
index.md. It lists and links what is inside. - A reserved
log.mdat the root records changes, newest first, one dated heading per day. - One concept per file. Small notes link to each other instead of growing.
- Frontmatter on every concept note:
typeis required;title,description,tags,statusandgenerated(byandat) are recommended.index.mdandlog.mdcarry no frontmatter, exceptokf_versionin the rootindex.md. - Notes with facts that can go stale also carry
verifiedandcheck_bydates. - Links are
[[wikilinks]], and filenames stay unique across the whole vault. - One home per rule: keep a short memory map saying where each kind of memory lives and which copy wins.
- Read the root
index.mdfirst, then only the folders the task needs. - Before relying on a fact with a
check_bydate in the past, verify it. - Write new knowledge as one note in the right folder, then link it from that folder's
index.md. - Add a line to
log.mdfor every change, then commit. - Never store secrets, credentials or other people's private information. Anything sensitive goes in
private/, which git ignores. - Keep recurring upkeep (stale-fact checks, link checks, promoting or demoting rules) as small jobs described in
housekeeping/.
git clone https://github.com/BrianAllenGit/agentic-memory.git ~/memoryPoint your agent's instructions (for example CLAUDE.md) at ~/memory/index.md.
MIT, see LICENSE.