Skip to content

About

A suggested folder structure for an AI agent's long-term memory: plain Markdown and git, follows OKF, Obsidian-friendly.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

agentic-memory

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.

The tree

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".

Conventions

  1. Every folder has a reserved index.md. It lists and links what is inside.
  2. A reserved log.md at the root records changes, newest first, one dated heading per day.
  3. One concept per file. Small notes link to each other instead of growing.
  4. Frontmatter on every concept note: type is required; title, description, tags, status and generated (by and at) are recommended. index.md and log.md carry no frontmatter, except okf_version in the root index.md.
  5. Notes with facts that can go stale also carry verified and check_by dates.
  6. Links are [[wikilinks]], and filenames stay unique across the whole vault.
  7. One home per rule: keep a short memory map saying where each kind of memory lives and which copy wins.

How an agent should use it

  1. Read the root index.md first, then only the folders the task needs.
  2. Before relying on a fact with a check_by date in the past, verify it.
  3. Write new knowledge as one note in the right folder, then link it from that folder's index.md.
  4. Add a line to log.md for every change, then commit.
  5. Never store secrets, credentials or other people's private information. Anything sensitive goes in private/, which git ignores.
  6. Keep recurring upkeep (stale-fact checks, link checks, promoting or demoting rules) as small jobs described in housekeeping/.

Use it

git clone https://github.com/BrianAllenGit/agentic-memory.git ~/memory

Point your agent's instructions (for example CLAUDE.md) at ~/memory/index.md.

License

MIT, see LICENSE.

About

A suggested folder structure for an AI agent's long-term memory: plain Markdown and git, follows OKF, Obsidian-friendly.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors