skip to content
$cat context-layer-for-ai-agents.md

Your Company Has No Context Layer for AI Agents

16 min readby MDflowview as .md
Stacked translucent emerald-edged glass plates floating on a dark terminal grid, with five beams of light descending onto the top plate — three bright and continuous, two fading into sparse dots

Think of the person at your company who seems to know everything. In the telling that opens this post's source talk, they have been through seventeen reorgs. They know which two teams stopped talking and why, which project was quietly rescoped, who is in the room and what they are not saying. That person is your company's world model — and, as Joao Wenzel of Citadel Securities put it in a talk published on the AI Engineer channel on 8 November 2026, they do not scale and nobody writes down what they say.

That is the gap a context layer for AI agents is supposed to close. Not a search index over everything you own — a model of the company itself, dated and sourced, that an agent can consult before it does anything else.

TL;DR — A context layer for AI agents is a dated, sourced, correctable record of what is currently true at your company, not a retrieval index over your documents. Citadel Securities built one by treating the company as a state estimator borrowed from robotics: every claim carries the age and origin of its evidence, confidence decays until new evidence arrives, the system is graded against what actually happened next, and people correct it with rules rather than one-off fixes. The expensive half is the loop; the portable half is the record it writes — which has to live somewhere both people and agents can read and append to, like a markdown workspace such as MDflow. Start free.

What a context layer for AI agents is

A context layer for AI agents is the shared, maintained answer to "what is true here right now", which every agent reads before acting. Three properties separate it from a document store:

  • Every claim is dated — not the document, the claim. A go-live date asserted in January and never re-confirmed is a different object from the same date asserted last week.
  • Every claim names its source — which deck, which thread, which pull request — and sources are not equally trustworthy.
  • Every claim is marked inferred or confirmed — written by a model from evidence, or signed off by the person who actually knows.

A record that satisfies those three looks less like a wiki page and more like this:

project: Atlas
status_reported: green
status_assessed: yellow
as_of: 2026-11-18
evidence:
  - source: bizops-monthly-deck-2026-11
    claim: on track for Q4 go-live
  - source: slack/#northstar-eng
    claim: dependency on the billing migration still open
go_live_history: [2026-06-30, 2026-09-30, 2026-12-15]
confirmed_by: null

Nothing in that record is exotic. What makes it a context layer rather than a note is that an agent reading it can tell that the deck and the evidence disagree, that the date has moved twice, and that no human has confirmed any of it.

Wenzel frames why this matters with a visual borrowed from Tim Urban: strategy comes down to three questions — where do we stand, what happens next, and how did we get here — and an agent cannot answer any of them without a rich profile of the company it is operating in.

Why retrieval over everything is not a context layer

Because retrieval returns what was said, not what is true. This is the objection Wenzel raised directly against the obvious answer of pointing a RAG pipeline at the corpus: asked whether a project is on track, a retrieval system picks up a couple of Slack messages and some slides, answers "green", and is missing a lot of the context. What it is missing, in the general case, is the age of each claim, the reliability of the source it came from, and the fact that two sources disagree.

There are two ways into a company, and both are compromised:

Top-down — decks, strategy documents, status reports. Tidy, clean, and written by people who infuse their own opinions into them, sometimes by design. The project-management idiom for the result is a watermelon project: green on the outside, red on the inside.

Bottom-up — meeting notes, Slack, code changes, and the session traces from whichever agent harness your engineers use. A surprising amount of signal, very hard to uncover.

Even the mechanics of extraction are deceptive. Wenzel's example is a monthly status slide. Parse the PowerPoint XML and you land in a conceptual question — what is the hex code for green? Screenshot it and hand it to a vision model and you are asking Claude to squint at a screenshot someone pasted into a presentation and guess whether a number is 31 or 81. The answer in the talk is not to pick one: take the XML and the vision model's reading, and synthesise.

That is the shape of the whole argument. The model is where top-down and bottom-up meet, and the evidence is synthesised at that level.

The state estimator: five stages

Here is the loop Wenzel described, and the part worth stealing even if you never build the rest.

Update. Each month, take last month's record and this month's collateral and construct a longitudinal record rather than a fresh snapshot. Citadel Securities has been doing this for about three years, which is what makes the rest possible. The step is feed-forward: previous months are never edited. Corrections flow forward, so the history stays intact. The output is plain — what was reported, where the evidence points, and why.

Continuity falls out of this. In the talk, a project that spontaneously changed name was still matched to the earlier record, inferred from who was involved and the continuity of the goals.

Age. Every fact has a half-life. The evidence Wenzel offered is the kind of thing only three years of records can tell you: on average, half the delivery dates change within two months, and 90% of those changes move the date later. Once you know that, a date asserted in January is not a fact, it is a decaying belief — which forces you to attach a date to the claim itself, so the agent can apply recency bias when asked about a project's current state.

Observe. The temptation is to hand the whole corpus to a frontier model and let it read. In the talk, that lost detail. What worked was an explicit workflow — specialists breaking down the collateral, each looking for specific things, reviewed by other agents. The reported result: the number of insightful updates to a project more than doubled. The takeaway Wenzel drew is that you should be intentional about how you build these workflows rather than assuming a single pass over everything will do.

Grade. A world model should tell you what happens next, and that is testable. Take a snapshot as of a past date, let the agent flag what it thinks will slip, and compare against what actually happened in the months that followed. Statuses that were reported green but flagged by the system were about twice as likely to turn yellow or red. That is not a prediction engine; it is a system that tells you where to look.

Correct. The stage that decides whether any of this survives contact with the company. Two design points from the talk: meet people where they already are — the app they are in, Slack, email, whatever — because the simpler the feedback mechanism, the more scalable it is. And distinguish what you are asking for. A fact fixes one output. A rule fixes every output it covers, now and in the future. The record then carries not just what the agent inferred, but what a person confirmed.

One more detail, easy to skip and expensive to miss: a sensor that goes quiet is not reporting zero. If your speedometer disappears, you are not travelling at zero miles an hour. A Slack channel going silent was initially read as a signal about the project; it was a signal about the channel. Track when a source was last read successfully, separately from what it said.

Why this matters for developers and for AI agents

For developers, the payoff is that the expensive question — "what is the actual state of this thing?" — stops being re-derived by hand every time. The uses Wenzel named are mundane in the best way: steering leadership conversations by starting where the deck and the evidence disagree instead of walking everyone through slides they will gloss over, and a weekly read for managers on what stuck and what went quiet.

For AI agents, it is more fundamental. An agent that has to reconstruct the state of the company from raw sources at the start of every session will reconstruct it differently each time, and confidently. Give it a shared record with dates and sources on every claim, and three things change: answers stop depending on which documents retrieval happened to surface, the agent can say how stale its belief is rather than asserting it flatly, and disagreement between sources becomes visible data instead of a coin flip resolved silently inside a context window.

This is the difference between an agent that searches and an agent that knows — and it is why search is not memory and why enterprise agents fail on structure rather than model size.

Which applications benefit most

  1. Status and portfolio reporting — the original use case. Anywhere a reported colour and the underlying evidence can drift apart.
  2. Account and client intelligence — Wenzel says Citadel Securities is curious about building similar models for its client franchise: who holds what, what they are interested in, what they are likely to need next, assembled from internal and external sources.
  3. Incident and post-mortem context — what was believed, when, and on what evidence, is exactly the question a retrospective asks.
  4. Onboarding, human or agent — the three-years-of-reorgs knowledge that currently lives in one person's head.
  5. Coding agents that need the why — the repository records what changed; it rarely records which approach was rejected and by whom.
  6. Compliance and audit trails — a claim with a date, a source, and a named confirmer is most of what an auditor asks for.

How MDflow fits

Let me draw the boundary before the sales pitch. MDflow does not estimate state, decay confidence, score sources or run the agents that produce updates. The five-stage loop is yours to build. What MDflow is, is the durable, readable place the loop writes to and reads from — the half of the problem that outlives any particular harness.

What already lines up today:

  • Plain markdown, nothing proprietary. A record like the one above is just text, which means the agent that writes it and the manager who corrects it are looking at the same characters. Any shared page has a raw .md twin — append .md to its share URL — carrying YAML frontmatter (title, canonical URL, markdown URL, visibility), so a tool can fetch and cite it in one request; private records are read the same way through the API or MCP, with a token.
  • Folder descriptions as the retrieval signal. A folder's description is ranked above folder names and document titles by mdflow_get_context, so a folder described as "current state of each project: dated claims, evidence, and what a human has confirmed" is what an agent lands on — no embeddings to maintain. More on that in folder descriptions as agent context.
  • Agents read and write with their own credentials. The MCP server and the HTTP API both support retrieval and write-back, so an update the agent proposes lands in the same document a person opens. Personal access tokens require Pro.
  • Every write path is versioned. Version-history capture covers the editor, the HTTP API and the MCP server, with a line-by-line diff and a non-destructive restore, so an agent's own edit always leaves the previous version behind. The personal /log feed attributes each row to the token that did it — automated · <token name> for anything arriving through the API or MCP.
  • Comments on shared documents give you a correction channel attached to the exact passage someone disagrees with, which is closer to Wenzel's "meet users where they are" than a ticket is. Note that this is the personal sharing path — Team documents do not carry comments yet.
  • Team accounts add per-member, per-workspace access and scoped mdt_ tokens, with 16 mdflow_team_* tools at /api/team/mcp and a 365-day audit feed — so a shared company record is readable by everyone's agent without handing out one person's credentials.

Four honest gaps, because this post would be dishonest without them:

  1. MDflow has no notion of a claim. Dates, sources and inferred-versus-confirmed flags are text you write in the document — frontmatter in the body is prose to MDflow, not typed fields it can filter on. An agent can read and respect that convention; MDflow will not enforce it.
  2. Nothing decays. There is no half-life, no freshness score, no alert when a source has gone quiet. That logic lives in your loop.
  3. Version history is not reachable by an agent. It is captured on every write path, but it is not exposed over the API or MCP, and on personal documents it is owner-only and Pro-only. An agent cannot ask what changed.
  4. Personal mdf_ tokens are not scoped. They are account-wide, read and write, with no read-only option and no per-workspace restriction. Only Team tokens are scoped.

Where we are headed — direction, not a dated commitment: narrower read-only credentials outside Team accounts, history readable by the same tools that write the documents, and shortening the distance between the moment an agent infers something and the record that says so.

The bottom line

The reason your company has no context layer for AI agents is not that the models are too weak. It is that the knowledge was never written down in a form that carries its own age and origin — it lived in a deck, a thread, and the head of the person who has been through all the reorgs. Indexing all of that does not produce a model of the company; it produces a faster way to retrieve the contradictions.

What Wenzel's three takeaways amount to is: treat the company model as a state estimator rather than a catalogue, grade it against what happens next, and build the loop so that agents and stakeholders can both touch the record. And the advice worth acting on this week is the simplest one in the talk — start collecting now, because the back-test you will want in a year needs the history you are not keeping today.

Start free · Connect an AI agent · Read the API docs

Frequently asked questions

What is a context layer for AI agents?

A dated, sourced, correctable record of what is currently true at a company, which every agent reads before it acts. It differs from a document store or a search index in three ways: each claim carries the date of the evidence behind it, each claim carries where that evidence came from, and each claim is marked as either inferred by a model or confirmed by a person. An index can tell an agent which documents mention a project. A context layer tells it what the project's status actually is, and how much that answer should be trusted.

Why is RAG not enough to give an AI agent company context?

Because retrieval returns what was said, not what is true. In a talk published on the AI Engineer channel on 8 November 2026, Joao Wenzel of Citadel Securities gave the example of asking whether a project is on track: a retrieval system happily picks up a couple of Slack messages and some slides and answers green, and is missing a lot of the context. The reasons generalise — retrieval has no notion of the age of a claim, the reliability of its source, or whether two sources disagree.

What does it mean to treat a company model as a state estimator?

It is a borrowing from robotics. You hold a belief about something you care about, and the longer it has been since evidence supported that belief, the less you trust it, until a new deck, thread or meeting note arrives and sharpens it again. Wenzel described a five-stage loop around that idea — update, age, observe, grade, correct — and three things an agent should weigh on every update: how long it has been since a signal arrived, where the signal came from and whether that source is still trustworthy, and whether it broadly agrees with the other sensors.

How do you keep a company context layer from going stale?

Attach a date to every claim rather than to the document, so that an agent can apply recency bias when asked about a project's current state, and keep the historical records instead of overwriting them. In Wenzel's account the update step is feed-forward: previous months are never edited, corrections are applied going forward, which is what makes it possible later to take a snapshot as of a past date and check what the system predicted against what actually happened.

Where should a context layer for AI agents live?

Somewhere durable that both people and agents can read and write with their own credentials, and that keeps the dates and the sources alongside the text. Plain markdown in a shared workspace reachable over an HTTP API or an MCP server is one answer, because the same record a manager reads is the record an agent retrieves and appends to. MDflow is built for that half of the problem — it stores the record; it does not estimate state, decay confidence or run the agents that produce the updates.

Further reading