WhoBuilt

Why More Context Makes Your Agent Dumber and What to Do About It

Jun 8, 2026· 26 min· 8.7K views·Watch on YouTube

Speaker

Nupur Sharma of Qodo, drawing on her DevSecOps background, shares lessons on agent failures and context management at an AI Engineer talk.

More context can bury the task

Sharma traces the shift from short static prompts to tool-using and multi-agent workflows. Larger context windows do not guarantee better results: agents may focus on the initial goal and latest inputs while losing important details in between. She says Qodo benchmarks whether agents use the context supplied for code review.

Choose a context strategy that fits

Sharma describes context engines as search and ranking systems that can help with large, messy codebases, though indexing hundreds of repositories can become slow and unpredictable. Other options include hierarchical summaries, knowledge graphs for complex dependencies, and iterative retrieval, which she recommends for many teams building agents for internal processes. Each approach has tradeoffs in setup effort, processing cost, and scale.

Use open-ended research with firm checks

Agents can get stuck researching how to solve a task instead of completing it, wasting tokens. Sharma describes an 80/20 approach: let flexible, high-reasoning models explore, then use more restricted steps for validation and summarization. Teams can limit exploration with counters or timeouts, and use simpler models for deterministic checks.

Split specialized work and judge the results

A single agent handling several tasks can lose track of some of them as its context grows. Sharma recommends specialist agents for separate tasks, followed by a judge agent that checks whether their results fit together. In Qodo's code review architecture, agents examine areas such as security, code changes, and Jira issues, and a judge filters recommendations for relevance.

Ground reviews in team guidance and history

In the discussion, Sharma says Qodo uses LangChain to pass agent results into prompts for later agents. The system can use PR history, developer feedback, and organizational guidance to shape and weigh recommendations. She distinguishes explicit rules, which are highlighted, from bug suggestions, whose weight may decrease when reviewers repeatedly do not act on them.

Takeaways

  • A larger context window does not ensure an agent will use every relevant detail; test whether it attends to the context your task depends on.
  • Pick retrieval methods based on your codebase and capacity: iterative retrieval may suit internal workflows, while knowledge graphs can help with complex cross-repository dependencies.
  • Set limits on open-ended agent research, then use a focused validation step to turn findings into a result.
  • Assign agents narrow responsibilities and use a judge to check whether their findings are relevant and consistent.
  • Combine explicit team rules with PR history and reviewer feedback, while treating past practice as evidence rather than proof that a choice is correct.

Mentioned in this talk

Search inside this talk

What was claimed 4

  • works at
    “I work with Qodo.”
    YouTube
    Verified2 sources· Talk, Web· archived
  • metric
    80/20 hybrid approach: 80% exploration and research; 20% restricted validation or summarization
    “Our teams give the latest and greatest models... 80% of the time.”
    YouTube
    Unverified1 source· Talk
  • feature
    Qodo: Code review architecture uses a context collector, specialized agents, and a judge agent to refine review results.
    “This is Qodo’s architecture for code reviews.”
    YouTube
    Unverified1 source· Talk
  • uses
    “We use LangChain at the bottom.”
    YouTube
    Unverified1 source· Talk

Related talks