AI Engineer World's Fair 2026

Why Your Company Needs a Context Graph (and How to Build It) — Gil Feig, Merge

Gil Feig· Merge15:11

Loading slides…

Read the talk

Why Your Company Needs a Context Graph (and How to Build It)

Gil Feig explains how live APIs, synced data, company skills and reusable summaries work together to answer business questions—and why freshness and provenance must travel with the answer.

From a talk by Gil Feig

At a glance

Ideas worth remembering

  • MCP connections inherit source API limitations. Broad questions across paginated datasets may require a synced copy rather than many request-time lookups.

  • Company skills should guide retrieval: defining customer happiness determines whether the agent should inspect tickets, surveys or another source.

  • Live calls, synced records and derived summaries trade off operating cost, freshness and repeated retrieval work. Choose them according to the question and its data requirements.

  • Preserve provenance with the context: source, fetch time, access identity and permissions, transformation history, and invalidation rules make answers inspectable.

A company brain needs more than connections

An agent needs access to company systems, but access alone does not tell it which information matters or how the company interprets it. Gil Feig, co-founder and CTO of Merge, frames a context graph as a “company brain”: the information and processes an agent needs to answer questions across the business. His focus is the architecture and its components, rather than a particular technology stack.

Here, “graph” does not require a specific representation of nodes and edges. The context layer brings together third-party data from systems such as NetSuite and Jira, structured information and static documents supplied by the company, memories formed during agent use, and skills that describe how work should happen. These components contribute different things: records describe the business, while memory and skills help determine what to retrieve and how to use it.

Selected presentation frame from Why Your Company Needs a Context Graph (and How to Build It) — Gil Feig, Merge at 159 secondsOpen full source frame
The context graph slide places third-party data, structured context, memories, and skills around a central context layer.
0:120:42
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

0:12 · section reference included

One upset customer is a lookup; all upset customers require a different access pattern

Start with a narrow question: “Why was customer A upset last week?” The agent can look up that customer’s Zendesk tickets for the period. In Feig’s example, it finds three tickets describing a broken API sync and the details of the failure. The customer and time window already identify the records to retrieve, so a live lookup can supply the explanation.

Selected presentation frame from Why Your Company Needs a Context Graph (and How to Build It) — Gil Feig, Merge at 212 secondsOpen full source frame
The example prompt asks, “Why was customer A upset last week?”

Now change the question to “Which customers were upset last week?” The customer identity has become the answer rather than an input. The agent must inspect tickets across customers to discover who belongs in the result. Extend the window to a year, and the same approach may require thousands of paginated requests, pulling tickets a hundred at a time until the task times out. The question sounds like a small edit; the required data access changes substantially.

MCP exposes tools, but those tools still inherit the underlying API’s access patterns. An API that retrieves pages of tickets does not acquire a semantic search operation simply because an agent can call it. Feig imagines an endpoint that could directly answer an English question about unhappy customers. His syncing recommendation addresses systems that lack that capability; it is not a claim that every semantic query must always use a local copy.

The proposed solution is to sync relevant third-party data into a locally controlled context store, using a vector database for semantic retrieval. That moves the broad search away from a chain of request-time API calls. It also creates engineering work: the team must decide how to store the records and retrieve useful context from them. For a simple Stripe lookup about a known customer, or a single action in Stripe, live MCP access can remain the appropriate path.

3:153:45
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

3:15 · section reference included

Route the question, then apply the company’s definition of happiness

Once both synced retrieval and live lookups exist, the next problem is combining their results without dumping a massive amount of context into the requesting agent. A router sends the incoming prompt to the appropriate handler. A summarizer gathers the retrieved information from the synced and live paths, condenses it, and returns it to the agent that asked the question.

Before retrieval, the handler needs to know what “upset” means inside this company. Ticket count is one possible signal, but tickets could contain positive feedback. Another company might assess customer happiness through Qualtrics surveys and require the agent to consult those first. A skill encodes that process: how to determine whether a customer is happy, and consequently which systems to query. Memory and skills belong in the context layer because selecting context is itself company-specific work.

Return to customer A. The original lookup explained a broken sync using three tickets. With the broader dataset available locally, the workflow can gather customers, count their tickets, summarize their contents and produce a status for each customer. The observable change is from an explanation for a named account to a set of customer statuses. The company’s skill determines how those signals should be interpreted; the synced store makes the cross-customer retrieval practical. “There’s no magic here,” Feig says. The result follows from arranging the data access and business logic.

Where does the company’s definition enter the data flow? The diagram places skills and memory before source selection, then brings the two retrieval paths together at the summarizer. The sequence makes a useful dependency visible: deciding what counts as customer unhappiness affects what data the system should fetch.

Company knowledge guides retrieval before results are summarized

Incoming promptAsk which customers were upset last week.
Router and handlerSend the question to the appropriate agent.
Skills and memoryDetermine how this company evaluates customer happiness and where to look.
Synced contextretrieval — Retrieve across locally stored third-party data.
Live MCP lookupsretrieval — Fetch additional information through source APIs.
SummarizerCombine retrieved data into useful context.
Return to requesting agentProvide the summarized result.
The handler consults relevant skills and memory, selects synced or live context, and returns a condensed result to the requesting agent.
Read the diagram as text
  • Incoming prompt. Ask which customers were upset last week.
  • Router and handler. Send the question to the appropriate agent.
  • Skills and memory. Determine how this company evaluates customer happiness and where to look.
  • Synced context. retrieval — Retrieve across locally stored third-party data.
  • Live MCP lookups. retrieval — Fetch additional information through source APIs.
  • Summarizer. Combine retrieved data into useful context.
  • Return to requesting agent. Provide the summarized result.
  • Incoming prompt → Router and handler: Route the task.
  • Router and handler → Skills and memory: Check relevant knowledge.
  • Skills and memory → Synced context: Guide source selection.
  • Skills and memory → Live MCP lookups: Guide source selection.
  • Synced context → Summarizer: Retrieved context.
  • Live MCP lookups → Summarizer: Retrieved context.
  • Summarizer → Return to requesting agent: Condensed response.
5:586:28
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

5:58 · section reference included

Four tiers balance retrieval cost, freshness and repeated work

Feig uses a broad definition of context: anything passed into the agent. The four tiers serve different roles and carry different operating costs.

  • Prompt, skills and memory. These guide the task and the choice of data sources, including company-specific processes.
  • Live API calls. These are easier to add and, in the architecture described here, cheaper to operate than maintaining synced context. Prefer them for simple lookups and retrievals.
  • Cached or synced data. This supports broad semantic retrieval and deeper questions, but requires a database and ongoing synchronization. Keeping the copy current adds complexity and expense.
  • Derived context. This stores information produced from the source data, such as a summary of a customer’s tickets, for reuse in later questions.
Selected presentation frame from Why Your Company Needs a Context Graph (and How to Build It) — Gil Feig, Merge at 554 secondsOpen full source frame
The table compares prompt, skill, and memory context with live API calls, cached data, and derived context.

Derived context avoids repeating work. When a customer’s full set of tickets comes in, the system can summarize it and store that summary as structured context. A later, common question can retrieve the summary instead of fetching and summarizing everything again. The stored summary is another representation of the source data, so its usefulness also depends on the freshness and transformation history that the provenance layer will track.

8:319:01
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

8:31 · section reference included

Use freshness requirements to choose the retrieval path

The selection procedure begins with a skill or memory match. If a matching skill can complete the task without external data, the system can generate a response immediately. If there is no match, or the skill requires external information, the workflow moves to data selection.

At that point, check whether the cached or synced data is fresh enough under the applicable service-level requirements. A usable cache supplies the context. Otherwise, the workflow calls the live API. Retrieval may repeat until the system has enough information; it can then store a useful discovery in memory and generate the response.

Selected presentation frame from Why Your Company Needs a Context Graph (and How to Build It) — Gil Feig, Merge at 675 secondsOpen full source frame
The flowchart routes retrieval through a cache freshness check and shows a live API path when needed.

This is a freshness policy, not a guarantee that live APIs can replace every stale dataset. The earlier year-long ticket question still has the same pagination problem. A live call works well for a bounded lookup; it does not remove the need for a maintained synced copy when the answer requires searching broadly. The retrieval decision therefore depends on both acceptable data age and the shape of the question.

9:5810:28
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

9:58 · section reference included

Keep the origin and history of every piece of context

“Do not drop where the data’s coming from.” Source links help a reader inspect an answer, but provenance has a deeper role when an agent makes business decisions. A record may be versioned, transformed or outdated. Without its history, the system can treat information synced a year ago as if it described the business today. For synced records, store provenance in metadata associated with the data.

The information to retain answers several distinct questions:

  • Origin and time. Where was the data fetched, and when?
  • Identity and access. Under which ID and scopes was it obtained? Who accessed it, and which permissions were used?
  • Transformation. Was the record changed or summarized, and what did it originally look like?
  • Invalidation. What makes it unusable—for example, exceeding a specified age?

A month-old cutoff is Feig’s example of an invalidation rule, rather than a universal freshness requirement. The same metadata supports both the answer interface and investigations after something goes wrong. A traceable answer should leave enough information to work backward from the result to the data, permissions and transformations that produced it.

11:3012:00
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

11:30 · section reference included

Build a bounded account update, then retain what makes it useful

The final example asks for a one-paragraph update on Acme, including renewal risk and the last support interaction. Assuming no relevant skill, the workflow first checks the cache for an account summary. If that summary is missing, it performs a live CRM lookup. It then retrieves the support interaction from cached ticketing data if that data meets the freshness requirement, or through a live lookup otherwise.

The live ticket lookup is deliberately bounded to five tickets. Pulling the full history would reintroduce timeout risk. The system combines the retrieved information into a derived summary, may store that summary, and returns it. The resulting paragraph serves a narrow account-status request; five recent tickets should not be mistaken for a complete historical analysis of renewal risk.

That example makes the closing advice concrete. Tools supply operations; the context layer also needs the company’s data and processes, including a skill that explains what to do when a customer complains and where to route the issue. More data does not automatically improve an answer. Pull what the question needs, keep it fresh, organize synced data for the retrieval it must support, and preserve the trail that explains a bad decision.

Merge’s closing product pitch maps onto parts of this architecture: Gateway is an LLM router, Unified syncs third-party data from customers’ platforms, and Agent Handler supplies prebuilt live MCP connections with governance, identity and provenance. These are the commercial components Feig presents for internal and customer-facing use cases. The architectural decisions remain the same: choose the appropriate access pattern, apply company knowledge before retrieval, and keep the evidence behind the answer.

12:4713:17
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

12:47 · section reference included

Resources

Transcript download
Full transcript

Loading transcript…