All articles

What is a company brain?

A plain definition, how it differs from enterprise search, agent memory and a wiki, how AI agents read one, and the ways to build or buy one.

Euan Cox

Co-founder, Pensieve

6 min read

On this page

A company brain is a shared, maintained understanding of how a company works, written from its own tools and kept current, that people and AI agents read before they start work. It differs from enterprise search, which finds documents, and from agent memory, which remembers one user or one agent.

We make Pensieve, a company brain, so read this as a vendor's view; we have kept the definitions general. The same idea is also called a context layer, which we define in What is a context layer for AI agents?

What goes into a company brain

A company brain is built from the tools where work already happens: documents, chat, tickets, meeting notes, the CRM and code. It has three parts.

  • Written pages. One page per subject: a customer, a project, a person, a process, a decision. Each explains what the evidence adds up to.
  • Links to the evidence. Each claim points back to the document or message it came from, so a person or an agent can check the exact wording.
  • Upkeep. Something rewrites the pages when the sources change, settles conflicts between sources and retires what is no longer true. That can be a person, a script or background agents.

Upkeep is what “maintained” means in the definition. Without it you have a wiki that is going out of date.

A company brain does not replace live systems. Today's account balance or ticket status should still come from the tool that holds it. The brain tells the agent which tool that is and what the number means.

How it differs from search, agent memory and a wiki

All four give an AI something to read. They differ in what is prepared and who keeps it true.

What it holdsWho keeps it currentHow an agent uses itWhat it is best for
Company brainWritten pages about people, customers, projects and decisions, each linked to its sources.Whoever runs it: background agents, scripts or people, each time a source changes.Reads an overview, then the relevant pages, then the cited source for exact detail.Longer work that depends on how things connect and what was decided.
Enterprise searchAn index of the documents and messages in your connected applications.Connectors refresh the index. Each document is as current as its author left it.Sends a query and gets back matching documents.Finding a specific document or fact quickly.
Agent memoryNotes one agent, or one person's assistant, saved from earlier sessions.The agent, as it works.Loads or searches its notes when a session starts.Preferences, working habits and continuity for one person or one agent.
Team wiki or knowledge basePages that people wrote by hand.The people who wrote them.Reads the pages, usually through search or a connector.Policies, how-tos and approved answers that change slowly.
A company brain beside the three things it is most often confused with. Products vary, and many combine more than one.

These are not rivals. Enterprise search such as Glean searches the content of your connected applications and returns results that respect each user's permissions (Glean Search, Glean MCP server). Agent memory such as Mem0 gives an agent “long-term memory that persists across sessions, tools, and runs” (Mem0 documentation). Many teams keep search for lookups, memory for personal preferences and a company brain for the shared account of the business. We compare the three in more detail in company brain vs enterprise search vs agent memory.

How AI agents read one

A company brain is usually served over the Model Context Protocol (MCP). Its documentation describes MCP as “an open-source standard for connecting AI applications to external systems” (What is MCP?). The specification lists what a server can offer, including “Tools: Functions for the AI model to execute” (MCP specification). For a company brain those are usually tools to search it and to read a page. The MCP documentation names Claude, ChatGPT, Visual Studio Code and Cursor among the applications that support the protocol, so one brain can serve whichever AI each person uses.

The reading itself tends to follow one pattern. The agent reads an overview to get its bearings, opens the pages relevant to the task, then follows a link to the source when it needs an exact date or wording. It keeps its other tools for live records and for taking action. Pensieve's documentation describes the same three steps (how MCP works).

Build one or buy one

The baseline is to prepare nothing and connect agents directly to your tools. The routes below prepare progressively more, and most working systems combine several.

  • A context file, such as CLAUDE.md or AGENTS.md. The agent loads one file of instructions and background at the start of each session (Claude Code documentation). The AGENTS.md site calls the format “a README for agents” and says it is “used by over 60k open-source projects” (agents.md). It suits a small team whose company fits on a page or two.
  • A Markdown wiki. Pages in plain files that agents read and update, and that people can correct.
  • Embedding search. Content split into passages, indexed by meaning and retrieved for each question.
  • A knowledge graph. People, customers, projects and decisions extracted from your content, with how they relate and when each fact was true.
  • Open source, such as GBrain, whose README describes it as “MIT-licensed and free to self-host” (GBrain README). You can host it yourself or use its paid hosted service, gbrain.io. We have written up what GBrain gives you and what stays with your team.
  • A product, such as Pensieve. You connect your sources and the vendor does the building and the upkeep (Pensieve overview). Our guides to MCP servers for company knowledge and Glean alternatives compare the products, ours included.

Two guides go further. How to build a company brain covers the eight problems any build has to solve. Options for building a company brain compares building, open source and buying.

Whichever route you take, ask who will keep it current after the first month. In our view that decides more than the storage format does.

Frequently asked questions

Is a company brain the same as a knowledge base?

No. A knowledge base holds pages that people write and update by hand. A company brain is written from the company's tools, links each claim to its source and is kept current as those sources change. A knowledge base can be one of the sources it reads.

Is a company brain the same as a context layer?

Yes, when the subject is AI agents. Both terms mean a maintained account of the company that agents read before they work. “Context layer” has a second meaning in data tooling, which our article on context layers for AI agents explains.

Do I need a company brain if I already use Glean?

Not necessarily. Glean searches your connected applications while enforcing each user's permissions, and its MCP server brings that search into tools such as Claude and ChatGPT (Glean MCP server). If your team mainly needs to find documents, that may be all you need. A company brain adds a written, maintained account for agents doing longer work, and the two can run side by side. Our guide to Glean alternatives goes into the choice.

How do AI agents read a company brain?

Usually over MCP, an open standard supported by AI applications such as Claude, ChatGPT and Cursor. The agent calls the brain's search and read tools, starting from an overview and following links to the sources for exact detail.

Can I build a company brain myself?

Yes. A small team can start with a context file or a Markdown wiki, and a technical team can start from open source such as GBrain. Our step-by-step guide to building a company brain sets out the problems you will need to solve, and our guide to the options compares building with buying.

Sources

Every external page was checked on 16 November 2026. Products and standards change, so check the current documentation before relying on a detail here.

  1. What is the Model Context Protocol (MCP)?, Model Context Protocol documentation
  2. Specification, version 2026-07-28, Model Context Protocol
  3. How Claude remembers your project, Claude Code documentation
  4. AGENTS.md, agents.md
  5. About Glean Search, Glean documentation
  6. About Glean MCP server, Glean documentation
  7. Build with Mem0, Mem0 documentation
  8. README, GBrain on GitHub
  9. Overview, Pensieve documentation
  10. How MCP works, Pensieve documentation