WhoBuilt

Demand-Driven Context: A Methodology for Coherent Knowledge Bases Through Agent Failure

May 5, 2026· 1 h 8 min· 15K views·Watch on YouTube

Speaker

Raj, a staff software engineer in IKEA’s Delivery and Services domain, presents a workshop at an AI Engineer event on building useful agent context from gaps in enterprise knowledge.

Agents lack institutional knowledge

Raj says agents are strong at reasoning and code generation but struggle with company-specific knowledge. In his view, retrieval tools often return information without showing whether it is accurate or useful. He describes building MCP and RAG systems that were accurate only 10% to 30% of the time, leaving him to fill in the gaps.

Pull context from real work

Raj proposes Demand-Driven Context: give agents work items, let them identify the knowledge they need, then ask domain experts to fill those gaps. The agent organizes the new information into reusable context blocks. He compares the process to building software from failing tests, adding what is needed to make each case pass.

Find and prioritize knowledge gaps

Raj demonstrates scanning archived incidents against a knowledge base to find information that is missing, stale, incomplete, duplicated, or based on tribal knowledge. The scanner creates probes, consolidates findings by system and API, and sorts gaps by priority. A Kanban board can turn the findings into documentation tasks.

Store knowledge where teams can review it

Raj prefers keeping curated knowledge in GitHub, where teams can review changes through pull requests and manage access. He recommends a metamodel that maps relationships among business processes, systems, APIs, and terminology so agents can navigate the context. He says this approach worked best in a narrow team scope; combining code and written documentation produced conflicts about which source was authoritative.

Start with a scoped assessment

Raj says the approach can reveal undocumented knowledge and let agents help maintain it, but manual cycles are burdensome and the method is still early. He recommends first scanning a team's past tickets or incidents to assess documentation quality, then fixing the highest-priority gaps before relying on agents in live operations. He estimates that a domain's consolidated context averaged about 96,000 tokens in his experiments.

Takeaways

  • Start with one team’s incidents or tickets to map its most important knowledge gaps.
  • Evaluate retrieval by whether the result helps solve the task, not just whether it returns data.
  • Prioritize missing knowledge that appears across multiple incidents, then turn it into reviewable documentation work.
  • Set explicit source-of-truth rules when agents can consult both code and written documentation.

Mentioned in this talk

Search inside this talk

What was claimed 7

  • works at
    Staff Software Engineer, Delivery and Services domain
    “I work as a staff software engineer at IKEA”
    YouTube
    Verified2 sources· Talk, Web· archived
  • feature
    Raj Navakoti: proposes a pull-based approach that uses agent failures on work items to expose missing institutional knowledge and curate it for reuse
    proposes a pull-based approach that uses agent failures on work items to expose missing institutional knowledge and curate it for reuse
    “Demand-Driven Context is the solution I’m proposing”
    YouTube
    Unverified1 source· Talk
  • uses
    at work
    “At work, I use Copilot”
    YouTube
    Unverified1 source· Talk
  • uses
    for the workshop demonstration
    “I created this demo with Claude Code”
    YouTube
    Unverified1 source· Talk
  • feature
    Context Gap Scanner: Assesses documentation against incidents and identifies missing, stale, unreliable, duplicated, or incomplete knowledge
    “validate our knowledge base to see its current state”
    YouTube
    Unverified1 source· Talk
  • uses
    recommends it to manage and review contributions to the curated knowledge base
    “I prefer it to go into a GitHub repository”
    YouTube
    Unverified1 source· Talk
  • metric
    Raj Navakoti: In a scoped domain, he calculated an average of about 96,000 tokens of consolidated context.
    “it's about 96,000 tokens per domain”
    YouTube
    Unverified1 source· Talk

Related talks