Skip to content
Open Source AI Agent Platform

Open source agent memory that a team can diff and review

Agent memory is what an agent carries between sessions, and in an open source stack, where it lives decides who can check it. Kortix, the open-source CompanyOS, keeps company memory as plain files in the workspace repository, so a team can read, diff and revert what an agent remembered before anyone acts on it. That is my pick, and I work on Kortix’s marketing, so weigh that accordingly.

The index a Kortix workspace starts with

memory/MEMORY.md
Source:https://github.com/kortix-ai/CompanyOS/blob/dev/packages/starter/templates/base/memory/MEMORY.md
# Workspace MemoryThe **workspace brain** for `{{projectName}}` — durable, team-shared notesthis workspace keeps about itself (purpose, connections, conventions,decisions, gotchas). It lives in git and is curated through changerequests.This file is the **index**. It starts mostly empty — agents read itfirst with their file tools and add entries here (or split a topic intoits own sub-file) as the workspace grows.

Every workspace commits this file as memory/MEMORY.md, and agents read it before the files it points to.

What agent memory is

Agent memory is the record an agent keeps across sessions: what a workspace is for, which conventions hold, what was decided and why, and who to ask. Four jobs make a memory system work. It writes a fact down, retrieves the right one at the moment a task needs it, forgets what has gone stale, and proves what it knows to a person who asks later.

Retrieval gets most of the attention, because a miss shows up in the answer. The fourth job is the one that decides whether a company can stand behind an agent's work. When a client asks why an agent quoted a price from last quarter, someone has to open the record, find the line, and see when it changed and who let it change.

Memory is also not one thing. Short-term memory is the context window a session works in. Long-term memory is the part that outlives the session, and episodic memory is the record of what happened in a particular run. A vector database is one way to retrieve from long-term memory, and only that: an index of passages, ranked by similarity to a query.

Where company memory lives in Kortix

Kortix describes workspace memory as "The living company brain. Plain files today." In practice, memory/ holds what the workspace knows about itself: its purpose, connections, conventions and decisions. memory/MEMORY.md is the index, with one line per file. The directory sits beside agents/, skills/, tools/ and kortix.yaml. The same repository that declares how an agent behaves holds what the company has learned.

The layout is the whole mechanism. There is no second store to synchronize and no sync job, because the memory is one git repository. That repository can live in the company's own GitHub account, on another git host, or in a Kortix-managed repository hosted on GitHub under Kortix (Read the docs), and whichever placement a team picks, it clones the record rather than exporting it from a memory service. Kortix does not put memory into the prompt. The managed kortix-memory skill tells an agent to read MEMORY.md at the start of a task, then the files the index points to. Agents edit memory/ with their file tools, and every edit lands through a change request.

The starter's own agent file is blunter about what that costs an agent that skips the read: "Nothing is auto-injected — if you don't look, you work blind to what the workspace already knows." (agents/worker.md) An index that stays short is what keeps that first read cheap, which is why the starter ships one that starts nearly empty and grows by one line at a time.

The repository travels with the record. Run it on Kortix Cloud, in your VPC, or on your own on-prem network. Self-host is free. A team that has to keep knowledge inside its own network keeps the memory directory there too, and the self-hosting guide covers the deployment paths.

The review path a memory change takes

A memory edit is an ordinary file change on the session branch. Other sessions see it only after a change request merges it into the default branch. Session work reaches main through a change request. Merge is default-deny for agents.

That gives a reviewer three things at once: a diff, a comment thread, and a revert. A wrong memory reads like a wrong line of code. You see what was added, what was removed, and which session wrote it, then decide whether the fact belongs in the company's record. Undoing it is a git revert in the same repository.

The case against a managed store

Cloudflare's Agent Memory announcement states the opposing argument in one sentence: "Tighter ingestion and retrieval pipelines are superior to giving agents raw filesystem access." (Cloudflare) The claim deserves a straight answer, because on two counts it is right.

The first is retrieval cost and latency. A purpose-built pipeline embeds, indexes and returns relevant memories from a store built for that job. A recall costs a query rather than a model turn spent listing a directory and opening files. At thousands of sessions a day, that difference shows up in the bill and in how long a person waits for an answer.

The second is that raw access asks the model to spend tokens choosing a storage strategy. Cloudflare names the cost plainly: an agent left to design its own queries burns context on retrieval instead of the task.

What a pipeline cannot hand back is the record. Agent Memory keeps memories in a profile addressed by name, and the announcement says data will likely be exposed for programmatic querying "down the road". Where a company's knowledge lives in a vendor's store, the company reads it through the vendor's API. The history of what was known last month sits inside someone else's service, and an export is a snapshot of the present.

Retrieval can be added on top of files. An index, a search service or an embedding store can sit in front of memory/ and return passages faster than a model walking a directory. Cloudflare's own post is a fair description of why that layer pays for itself. A reviewable record cannot be added on top of another company's store, because the diff has to exist where the change happens. That is the trade: buy retrieval where it earns its keep, and keep the record in the repository the company owns.

Who curates memory, and what never goes in

The team does. Memory is a directory of files in the repository the workspace already uses, and an edit to it becomes a change request that a person approves. Curation is therefore a policy the team writes, and the review path is the mechanism. A workspace may add a reflection agent: an agent that a schedule runs to review recent sessions and improve skills, instructions, tools and memory through one change request it never merges. A new workspace has none, and the kortix-harness-refinement skill is its protocol. The starter template's only agent file is agents/worker.md, so the team writes the trigger if it wants one, and every cleanup lands as a change request a person merges.

Two kinds of content stay out. Do not write secrets or personal data into memory. Store credentials as secrets. A memory file that carries an API key or a customer's email address is one that leaks the day the repository is cloned, and a repository is cloned often.

When a managed memory service is the better choice

Files are the weaker choice in a few situations, and saying so is part of the argument. A team with no repository per company has nowhere to put memory/. A workload that recalls across millions of records with a hard latency budget per query does better on an index built for that job. And a fleet spread across several harnesses outside one repository has no shared file tree for agents to read, so one API becomes the practical meeting point.

Managed memory is also quicker to start. An API key and an ingest call beat a repository layout, and a small team that will not read a memory diff gets little from a diff existing. The review path only pays when someone walks it.

Two ways to keep agent memory

The approach changes the bill, and it decides who can check a change.

Sources:KortixMem0

What the memory approach is

KortixPlain files in the workspace repo, indexed by a markdown file
Mem0A hosted memory store reached through an API

Open source

KortixYes
Mem0An open-source core you can self-host, plus a hosted platform

Software bill for memory

KortixNone. It is a directory in the workspace repository
Mem0Usage-based past the Free limits, then a Custom contract

What the bill grows with

KortixModel tokens, plus the disk the files sit on
Mem0Adds and retrievals, billed as usage past the Free limits

Who can review a change before it lands

KortixAnyone who can read the repository and its change requests
Mem0The API writes it; a Custom contract adds audit logs after the fact

What agent memory costs a team

Kortix sells no memory service. Company memory is a directory in the workspace repository, so there is no add meter, no retrieval meter, and no line on an invoice that grows when agents read memory more often. The priced items sit elsewhere. Credits pay for the agent computer: the cloud machine where your agent runs code, browses and edits files. It bills per second while it runs and costs nothing for compute while it is stopped.

Model tokens are the line that moves. Every read of MEMORY.md and every file opened behind it is context in a request, and every fact written back is another. With your own keys, credits pay for the agent computer and 5% of model usage past $1,000 a month. A team shapes that spend itself, through the models it picks and the length of the index it keeps.

Kortix prices its plans in credits. Free is $0 with 500 credits per month on a person's first workspace, and every feature, on your own provider keys or ChatGPT subscription. Managed models are on the Credits plan only. The paid plan is credits: 25 tiers from $50 a month (5,000 credits) to $50,000 a month (5,000,000 credits), at 100 credits per dollar. Members are unlimited and free, and the workspace shares one credit pool. Unused monthly credits roll over one month.

Mem0 prices the other model, per request, and its page now lists two plans. Free covers 10,000 adds and 1,000 retrievals a month for the first 30 days, or 50,000 adds and 10,000 retrievals a month with your own LLM key, and bills usage past those limits under a monthly cap the customer sets. Custom sets the limits to a team's volume and carries SSO, audit logs and an SLA, on-prem deployment and custom integrations. (Mem0's pricing page, checked 30 October 2026.)

The two bills move for different reasons. A hosted service steps up when the agents' add and retrieval counts cross the next tier, so a busy month turns into a bigger invoice. A file-based record adds only the disk it occupies, a few cents a month at these sizes, and the cost that moves with use is token spend, which the company shapes itself. The pricing page carries the full plan list, and the estimate for a midsize company prices the token side.

Questions memory buyers ask

The short answers, with the links behind them.

What is agent memory?

Agent memory is the record an agent keeps across sessions: the purpose of a workspace, its conventions, its decisions and what went wrong before. It exists so a new session starts from what the company already learned rather than from an empty context window.

Is agent memory a vector database?

No. A vector database is one retrieval method, an index of passages ranked by similarity. Agent memory is the record itself, and in Kortix that record is plain files under memory/, read through an index, whether or not a vector index sits in front of it.

Where does Kortix keep agent memory?

In a memory/ directory inside the workspace repository, beside agents/, skills/ and kortix.yaml. memory/MEMORY.md is the index, with one line per file. Agents edit those files with their file tools, and every edit lands through a change request.

Can I diff or roll back what an agent remembered?

Yes. A memory edit is an ordinary file change on the session branch, so you read it in a diff, revert it with git revert, and see it in the change request before it reaches the default branch.

How much does agent memory cost for a team?

Nothing on the software side, because memory is a directory in the workspace repository. The cost that grows is model tokens for reading the index and writing facts back, plus 5% of model usage past $1,000 a month on your own keys.

Does Kortix put memory into the prompt automatically?

No. Kortix does not put memory into the prompt. The kortix-memory skill tells an agent to read MEMORY.md first, then the files the index points to, so an agent that skips the read starts blind.

Who can change company memory?

An agent can edit memory on its session branch and propose the change, and a person merges it. Session work reaches main through a change request. Merge is default-deny for agents, so nothing lands unreviewed unless an admin granted the merge capability.

When should I use a managed memory service instead of files?

When no one on the team will read a memory diff, when recall runs at high volume against a hard latency budget, or when agents span several harnesses with no shared repository. A hosted store answers those cases faster.

Keep what your agents learn in a repo you own.

Plain files, one index, a change request before anything becomes fact.

Run it on Kortix Cloud, in your VPC, or on your own on-prem network. Self-host is free.