Choose memory for your coding agents

Find a starting setup and test it on one repository before giving it real project data.

Repository instructions

Start with a Git-tracked AGENTS.md when the memory is a set of reviewed project rules that applies to each checkout.

Rule updates go through your normal Git review. Readers need a checkout of the revision that contains the rule.

Test it on your repository

  1. Commit a rule with a concrete example to AGENTS.md.
  2. Start a coding agent in a fresh checkout and ask it to apply the rule to the example.
  3. Change the rule in a second commit. Start a fresh session at that revision and check which rule the agent follows.

File-backed MCP memory

Start with a file-backed MCP server when sessions on one host need to read and write observations as they work.

Give the server a persistent storage path and decide who can read it. Verify cross-machine access separately if your workflow needs it.

Test it on your repository

  1. Start the MCP server with a persistent storage path and save a distinctive observation.
  2. Start a separate client process and check that it reads the exact observation.
  3. Back up the store, restore it to a fresh path and verify that a fresh client still reads the observation.

Self-hosted memory service

Use a shared service when agents need separate credentials, a record of who changed a decision, or a warning after the source behind a lesson changes.

With Loom, operate the server and its stores, issue credentials, and index the repository if you need code-change checks.

Test it on your repository

  1. Save a test decision with one client. Read the same value and memory ID in a fresh client with its own credential.
  2. Try the same read from a credential scoped to another namespace and record the denial.
  3. Change the linked source, wait for indexing and check that the lesson reports the changed commit.
  4. On an authenticated deployment, correct the decision and use a scoped SQL reader to check both versions and the token subject for each write.