Guide · Knowledge · 10 min read

AI knowledge base for your company: build a knowledge layer every agent can use

By the Codivated team · Updated

A company knowledge layer is one governed place that every person and every AI agent can read from and write to: your docs, chat, tickets and systems, connected once, with rules for who can change what and a record of who pulled what. Getting a single agent running is the easy part. Agents only do valuable work when they can reach the right data, so the real job is finding where your knowledge lives, connecting it, and governing it. Do that once, and every agent you add afterwards gets smarter on day one.

Why does every agent need the same knowledge layer?

Most companies start with one agent and one data source. Then a second team builds its own, connected to different sources, and soon you have agents that disagree with each other and nobody knows what each one can see. That's the "single-player" problem: each agent is useful to one person and blind to the rest of the company.

A knowledge layer fixes it by separating two things. The layer holds the connections, the curated knowledge and the rules. The agents sit on top and can be added, swapped or retired without rebuilding access each time. Our team built this for a 700-person software company: a platform connected to every major data source, with an audit trail of what each agent pulled from where. It now runs more than 100,000 agent sessions a month, answering questions, drafting documents and slides, and querying product usage data.

Team-owned agentsSales agentSupport agentOps agentLeadership agent
Company knowledge layer
ConnectionsCurated wiki agents keep currentPermissions per personOwners per areaAudit trail
Where knowledge livesNotion · Confluence · DriveSlack · TeamsJira · ticketsCRM · ERPWarehouse
Connect sources once. Every agent you add reads and writes through the same rules.

Where does your company's knowledge actually live?

Start with an inventory, not a tool. For each place, ask who owns it and whether agents should only read it or also write to it.

Where it livesTypical examplesWhat agents use it for
Docs and wikisNotion, Confluence, Google Drive, SharePointPolicies, how-tos, product information
ChatSlack, Microsoft TeamsRecent decisions, fixes, context nobody wrote down
Work trackingJira, Linear, AsanaWhat's planned, blocked and shipped
Tickets and casesZendesk, Intercom, a helpdeskWhat customers hit and how it was solved
Core systemsCRM, ERP, billingLive facts: account owner, order status, contract terms
Data warehouse or product dataSnowflake, BigQuery, PostgresUsage, revenue and trends, by query

If the answer to "where is it?" is "in Dana's head", that's the first gap to fill.

What's the simplest version that works?

Connect agents to the wiki you already have. If your company runs on Notion or Confluence, both offer an MCP server, the standard way to plug a tool into Claude, ChatGPT and most agent platforms. Point your agents at it and you have a company knowledge base by the afternoon.

It works until three questions come up. What keeps the wiki up to date? Who's allowed to change it? And what about everything that isn't in the wiki? The rest of this guide is about those three.

Should agents keep a wiki, or query your systems directly?

There are two ways to give agents knowledge, and most companies need both.

An agent-maintained wikiDirect access to systems
What it isAgents read raw sources and write clean, linked pagesAgents query the CRM, database or warehouse when asked
Best forPolicies, how things work, decisions, product knowledgeLive numbers: orders, usage, pipeline, inventory
FreshnessAs fresh as the last updateLive
RiskPages drift if nobody checks themNeeds tight permissions and read-only access by default

The wiki side has a name now. Andrej Karpathy's LLM wiki pattern has an AI agent build and maintain a set of linked markdown pages from your raw sources, following a written schema, and periodically health-check them. His point is that wikis die because the bookkeeping grows faster than the value, and agents are good at bookkeeping. If we built our platform again, we'd lean into this harder: a curated layer that agents keep current, instead of every agent searching raw sources on every question.

For live numbers, don't cache them on a wiki page that refreshes nightly. Let the agent query the system with read-only access. See connecting Claude to your database safely.

Who can push, who can pull, and who can see what happened?

This is the part quick setups skip, and the reason security teams block them.

  • Reads follow each person's permissions. An agent shows someone only what they could already open themselves.
  • Writes have owners. Subject-matter experts own their areas. Sales owns the sales playbook, support owns the troubleshooting guides. The worst setup is one where everyone, and every agent, can change everything, and a change made for one team quietly applies to all of them.
  • Every pull and push is logged. You can see which agent read what, which agent changed which page, and when.
  • Agent edits get reviewed. Agents propose updates to curated pages, and the owner approves them, at least at first. See keeping people in control of AI agents.

Why do teams need their own agents?

What your sales team needs from company knowledge is different from what support needs, even when both pull from the same product information. So the layer is shared, and the agents are team-owned: a sales agent that knows the pricing rules and the pipeline, a support agent that knows the troubleshooting guides and the ticket history. Each team has an owner who reviews what its agent couldn't answer. The shared layer means both agents give the same answer about how the product works.

Buy a tool, or build the layer?

Buy when your knowledge mostly lives in one suite and you mainly need search: Microsoft 365 Copilot, Gemini for Workspace, Notion AI, or an enterprise search tool like Glean. Build when agents need to act and not just answer, when the knowledge spans systems no single tool connects well, or when you need your own governance and audit trail. Many companies do both. How it's built matters less than the result: one reliable place people and agents can push to and pull from.

How do you start?

  1. Pick one team with a real pain and list its top 50 questions.
  2. Map where each answer lives and who owns that source.
  3. Connect only those sources, with each person's own permissions.
  4. Run it in practice mode for two weeks: check every answer against its source, and log what it couldn't answer.
  5. Add the next team on the same layer, with its own agent and owner.

That's exactly how our AI knowledge base work starts: a first team in two weeks, then the layer grows one team at a time.

Common questions

What is a company knowledge layer?

One governed place, connected to your docs, chat, tickets and systems, that every person and AI agent in the company reads from and writes to, with permissions, owners and an audit trail.

What is an LLM wiki?

A pattern popularized by Andrej Karpathy in which an AI agent builds and maintains a wiki of linked pages from raw sources, following a written schema, and checks it for errors and gaps. For a company, it turns the wiki from a chore into something agents keep current, with owners approving changes.

Can we just use Notion or Confluence with MCP?

Yes, and it's a good first step. You'll soon need answers to what keeps it current, who can change what, and how agents get live data that isn't in the wiki.

Should agents query our database directly?

For live numbers, yes, with read-only access scoped to what each person may see. Caching numbers on wiki pages that refresh nightly gives agents stale answers.

How long does it take?

A first team can be working in two weeks. Connecting every major source across the company, with governance, takes longer, and it's where most of the value is.

Do we need a data warehouse first?

No. Start with the sources one team needs. A warehouse helps once many agents need the same numbers.

Sources

  • LLM Wiki, Andrej Karpathy: the pattern of an agent-maintained wiki.
  • Model Context Protocol, the open standard for connecting AI agents to tools and data.
Written byThe Codivated teamWe build and run AI agents for established companies.Scope your first agent

Find your first agent in two weeks.

Scope your first agent Free 30-minute call.