# Why company brains outgrow markdown files

By Patrick Kemp · Dec 02, 2026 · https://www.getzep.com/blog/company-brains-outgrow-markdown/ · Tags: Context graphs, Governance and security

Most company brains start as markdown files and outgrow them as facts change. A context graph keeps facts current and can control which facts each agent sees.

**Key takeaways**

- **Markdown files are the most common way teams build a [company brain](https://www.getzep.com/blog/what-is-a-company-brain/) right now.** Teams outgrow them when work scales. Facts change faster than files can be updated, and agents need data access controls.
- **Markdown files and search indexes hand agents documents instead of facts.** An agent has to read them to work out which facts matter for its task, and it can get that wrong.
- **Their access controls weren't built for agents.** A repository of files is readable in full or not at all.
- **A context graph gives agents facts, not documents.** Each fact keeps its dates and source, and outdated facts get an end date. Agents retrieve only the facts a task needs instead of loading whole files into context.
- **A graph lets you govern agent access per fact.** Policies applied at retrieval decide which facts each agent and person sees.

A finance agent routes a $40,000 software purchase for approval. The internal procurement page says purchases over $25,000 need the CFO's sign-off. Last week, the CFO raised that limit to $50,000 in a Slack thread and handed smaller purchases to the VP of finance. Nobody has edited the page. The agent sends the request to the CFO, and it waits in the wrong queue.

To do a task well, an agent needs facts that are relevant to the task, still true, and permitted for that agent to see. The finance agent had a relevant fact, but it was no longer true. Files and search indexes hand agents documents instead of facts, and a file can't hide one line from one agent. A context graph, a knowledge graph built for agents, gives agents current facts and controls which facts each agent sees.

## Four ways teams build a company brain

We reviewed 20 company brain builds that teams have described publicly since December 2025. Most use one of four approaches: markdown files or docs, enterprise search or a vector index, live tool calls over MCP, or a knowledge graph.

| Approach | What it does well |
|---|---|
| Markdown files or docs | Easy to review |
| Enterprise search or a vector index | Covers every source |
| Live tool calls over MCP | Always current |
| A knowledge graph | Links facts across systems |

Markdown files are the most common. People or agents write pages about the company. When agents maintain them, it's often called an [LLM wiki](https://www.getzep.com/blog/markdown-is-not-agent-memory/), the name [Andrej Karpathy](https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f) gave it in April. Frontier models navigate files well. [Vercel](https://vercel.com/blog/we-removed-80-percent-of-our-agents-tools) swapped most of its data agent's tools for file access, and the agent answered more test queries with 37% fewer tokens.

Enterprise search indexes a company's documents and messages ahead of time and returns the passages that best match a query. A homegrown vector index does the same with embeddings. Both cover every source at volume.

Live tool calls, often over MCP, skip the index: the agent queries each system at the moment of the question, and each source's own permissions apply.

A knowledge graph stores facts as links between the things they describe, such as a customer and its contract. Facts from different systems connect through the same customer, policy or person.

## Files and indexes hand agents documents

The first three approaches hand agents documents or access to tools. The agent has to determine which facts are true and relevant for the task it is working on.

Markdown files stay current only as long as someone keeps updating them. Many facts change in Slack threads and meetings, and nothing carries the change back to the file. Notes also pile up and contradict each other, and the agent has to decide which one is current.

Keeping files current takes its own system. [Cloudflare](https://blog.cloudflare.com/internal-ai-engineering-stack/) says a stale file of instructions for agents "can be worse than no file at all". Its AI code reviewer flags when a change to the code means the file needs an update. That check works because code changes arrive as commits. Company facts change in Slack and meetings, with no commit to check against.

A search index returns the documents that best match the question. When a fact has changed, the old and new versions can both rank well. The agent then has to work out which one is current. Live tool calls read each system as it is right now. Two systems can still disagree, and the agent has to decide which one to trust.

Teams fix this by ranking newer documents higher or filtering out older ones, sometimes called freshness boosts and date filters. Others re-index a page whenever someone edits it, sometimes called change detection. All of these work on whole documents. When a decision in Slack overrides a page, the page itself doesn't change. None of these fixes can see the update.

Documents make agents pay for tokens they don't need. An agent pays for every token in its context on every turn, and it often opens whole files to find one fact. Of the 20 public builds we reviewed, none describes recording when a fact stopped being true.

![One approval question answered four ways. Only the context graph returns the current $50,000 limit with its source.](https://www.getzep.com/blog/company-brains-outgrow-markdown/company-brain-approval-four-ways.png)

Asked who approves a $40,000 purchase, only the context graph knows the CFO's limit moved to $50,000.

## Access controls not built for agents

The access controls these approaches rely on were built for people reading documents. An agent acts for a person or a team, and it often combines facts from several systems in one answer.

A repository is readable in full or not at all. Any agent that can read it reads every file, from pricing floors to a customer's contract terms.

Enterprise search applies each source's permissions to each document, which works well for a person reading results. A summary an agent draws from Slack and the CRM has no permission of its own, so the source permissions no longer say who may see it.

Live tool calls apply source permissions only when each call runs as the person the agent works for. Builds that connect through one shared credential show every agent everything that credential can see.

## A context graph keeps every fact current

A context graph stores company knowledge as facts. Each fact connects the things it describes, such as a customer, a policy or a person. A fact is one short statement. "Acme is on the Enterprise plan" connects a customer to a plan. "Purchases over $50,000 need CFO approval" connects a policy to a person. Each fact also keeps the dates it was true and the source it came from. The dates also make it a [temporal knowledge graph](https://www.getzep.com/ai-agents/temporal-knowledge-graph/).

When a new fact contradicts an old one, the graph keeps both. It gives the old fact an end date and adds the new one. Nobody has to edit a page.

| Fact | True from | True until | Source |
|---|---|---|---|
| Purchases over $25,000 need CFO approval | 2025-03-01 | 2026-11-24 | Procurement page |
| Purchases over $50,000 need CFO approval | 2026-11-24 | Now | Slack thread in #finance |

The graph ends the old limit on the day the CFO changed it.

The agent retrieves the fact that holds now. It also gets a link to the thread the fact came from and can still look up which rule applied on a past date. Facts come from Slack threads, meetings and documents each time the connectors sync. Upkeep comes down to connecting the sources.

A context graph also connects facts across systems. A deal stage comes from the CRM; an escalation comes from a support ticket; a pricing exception comes from a Slack thread. In the graph, all three become associated with the same customer. An agent can start at that customer and see how the facts relate. No single system holds that picture. [Uber](https://www.uber.com/us/en/blog/efficient-software-factory/)'s agent used a context graph across more than 30 internal systems to answer a question about a dataset in 38 seconds. Without it, the agent spent 20 minutes and got the answer wrong.

## Agent access controls in a context graph

Because each fact in a context graph is its own record with its own source, access can be set one fact at a time. Policies set for each agent decide what facts and context graphs it can retrieve.

That lets one system of graphs serve many agents. A support agent can see that one customer is on the Enterprise plan without seeing the discount that customer negotiated. A finance agent can see the CFO's approval limit that a sales agent never needs. Where a team's or a customer's context must never mix with another's, each can get its own graph.

![Two agents ask one context graph about Acme. Policies withhold the discount and the CFO's limit from the support agent.](https://www.getzep.com/blog/company-brains-outgrow-markdown/company-brain-agent-access.png)

The same graph returns different facts to each agent, because each fact carries its source.

## How the four approaches compare

Every task puts three tests to a company brain. It has to find the facts the task needs, know which of them are still true, and show each agent only what it may see. Each of the first three approaches falls short on at least one of the three tests while a context graph can pass all three.

| Test | Markdown files or docs | Enterprise search or vector index | Live tool calls | Context graph |
|---|---|---|---|---|
| Finds what the task needs | Files the agent knows to open | Top-ranked passages for the query | Exact records from each system, unlinked | **Ranked facts, linked across systems** |
| Knows what's still true | True as of the last edit | Conflicting passages, none marked replaced | Fresh per system, conflicts left open | **Replaced facts end-dated, with sources** |
| Limits what the agent sees | Per repo or page, not line | Per user, where permissions are indexed | Whatever the connection can see | **Per fact, by policies you set** |

Each approach falls short on at least one test, and a context graph covers all three once you set its policies.

Markdown files are easy to review and work well for a small team or business domain where facts rarely change. Search indexes and vector stores cover every source at volume, but they hand back documents that the agent still has to reconcile. Live tool calls get the latest data from each system, but they require agents to make associations and check for accuracy on the fly.

A context graph sorts out connections, changes and access before an agent ever asks. It links facts across systems, ends the ones that no longer hold, and applies access to each fact at retrieval. The agent starts from facts that are relevant, current and permitted.

## How Zep builds a context graph

Zep's [Context Lake](https://www.getzep.com/platform/context-lake/) gives enterprise agents a governed company brain that keeps itself current. Slack, Google Drive, Notion, Gmail, Granola, Microsoft Teams, SharePoint, Snowflake, Databricks and BigQuery connect to the Zep platform.

Zep extracts facts into context graphs, and each fact keeps its dates and the source it came from. When a newer fact contradicts an older one, the [older fact gets an end date](https://www.getzep.com/blog/context-graphs-two-timelines-every-fact/). Agents retrieve facts through the SDK or the MCP server. You set access with Zep policies for each user and agent, and each team or customer can get its own graph.

To see it on your own data, [contact sales](https://www.getzep.com/solutions/company-brain/).

## FAQ

### Is a vector database enough for a company brain?

A vector database is enough when the knowledge rarely changes and every agent may see all of it. It returns the passages most similar to a question, from old and new documents alike. It can't say which passage replaced which, or link the facts about one customer across systems. For facts that change, many teams add a knowledge graph beside the vector index, an approach often called GraphRAG, and keep dates and a source on each fact.

### How do you stop RAG from returning outdated documents?

When an agent quotes a policy that changed last month, re-indexing and freshness boosts won't fix it. The old and new documents both stay in the index, and ranking newer content higher fails when a newer document repeats the old rule. Many changes also happen in Slack, outside any document. The fix is to keep facts instead of passages, and to give a fact an end date when a newer fact replaces it.

### When data sources disagree, how does an agent know which is right?

The agent needs to know when each fact was stated and where it came from. A context graph records the dates and the source of every fact, and it ends the older fact when a newer one contradicts it. The agent gets the current fact with a link to its source. When the newer statement looks wrong, a person can open that link and check it.

### How do we get our agent to cite the exact Slack message or doc behind each answer?

Keep the source on each fact as well as on each document. When a context graph extracts a fact from a Slack thread, it keeps a link to the message it came from. The agent returns the fact with that link, and a person can open it. The same link is how a reviewer catches a fact the model extracted wrong.

### What's the difference between a context graph and a knowledge graph?

A context graph is a knowledge graph built for agents. Each fact keeps the dates it was true and the source it came from, and a fact that a newer one contradicts gets an end date. That makes it a [temporal knowledge graph](https://www.getzep.com/ai-agents/temporal-knowledge-graph/). It's built from conversations and documents as they change, and it can apply access policies to each fact.

### Can you build a knowledge graph from Slack and Google Docs automatically and keep it current?

Yes. A model reads each new Slack thread and document and extracts the facts in it. A decision made in a thread reaches agents without anyone editing a page. Contradicted facts get end dates, so the graph stays current as the sources change. Upkeep shrinks to connecting the sources and checking extractions against their source links.
