Building a deep research AI agent is one of the highest-return projects you can take on with the tools available in 2026. OpenAI launched Deep Research mode in February 2025. Google followed with Gemini Deep Research. Perplexity added Pro Search. But these are products — they work well for general queries, but you cannot control the loop structure, confidence scoring or source selection. A deep research AI agent that you build yourself does something fundamentally different: it searches multiple sources, evaluates every claim against at least three independent references, cites its sources inline and keeps iterating until it has enough corroborated evidence. It does not just answer a question. It shows you exactly how it arrived at that answer.

By mid-2026, over 60 per cent of enterprise AI teams have built or are actively building deep research capabilities into their agents, according to Gartner's AI agent maturity survey published in May 2026. Teams that deploy iterative research loops instead of single-shot queries report 38 per cent fewer decision-making errors. And a 2025 Cornell University study found that agents relying on a single source produced inaccurate claims 34 per cent of the time — three or more sources dropped that to 9 per cent.

At Supernodes, we have spent the past 18 months building deep research agents for clients across healthcare, professional services and financial services. Here is how the research loop works, exactly how to set it up in the tools your team already uses, and what we have learned about getting answers you can actually trust.

A deep research AI agent runs on iteration, not a single search

Most people picture deep research as one very thorough search. It is not. It is a loop: search, read, evaluate, refine, search again. The agent starts with a question, runs an initial search across at least three sources, reads the full content of promising results, decides if the answers are sufficient, and if not, generates a more specific sub-query and repeats. The loop keeps running until the agent has enough corroborated evidence to answer with a confidence rating.

OpenAI's Deep Research mode operates on exactly this principle. When you feed it a complex question, it runs 5 to 15 search iterations, reads 30 to 100 sources and produces a synthesis with inline citations. The key insight is that the loop structure matters more than the quality of any single search result. A mediocre search engine in a tight loop outperforms a world-class search engine used once.

Step 1: Break the question into sub-questions

The first thing a deep research agent does is decompose your question. If you ask 'What is the market size for AI agents in healthcare?', the agent does not search for that exact phrase. It breaks it into sub-questions: total AI market size, healthcare AI adoption rates, percentage of AI spend going to agents, recent funding rounds. Each sub-question gets its own search loop, and the agent synthesises the answers at the end. The more granular your decomposition, the more likely you catch conflicting data.

In practice: In Hermes, sub-question decomposition lives in a skill file. Create ~/.hermes/skills/deep-research.md with a rule that says: "Before searching, split the user's question into at least 3 sub-questions. Search each one independently, then synthesise." The agent loads this skill at session start and applies the decomposition rule to every research request. In Claude Code, the same logic goes into your CLAUDE.md under a research conventions section. Keep the decomposition rule simple — about five lines — so the agent can follow it without overthinking.

Step 2: Search with multiple sources

A single search engine introduces blind spots. The agent should query at least three sources: a web search for broad results, a news search for recent developments and a specialised source like arXiv for academic research or Crunchbase for funding data. If two sources disagree, the agent flags the discrepancy rather than picking a side and smoothing it over.

Perplexity's Pro Search is a good example of multi-source searching done well — it queries several indices simultaneously and surfaces conflicting information rather than faking consensus. In a custom agent, you replicate this by wiring multiple MCP tool servers, each connected to a different search API. Hermes supports this natively: define separate web-search, news-search and academic-search tools in your MCP config, and the agent calls them in parallel. The 10-layer AI agent stack covers how tools (layer 6) and skills (layer 5) wire together for exactly this kind of multi-source workflow.

Why it matters: Single-source answers are a leading cause of AI hallucination in enterprise settings. The Cornell study we mentioned earlier is the clearest evidence: 34 per cent error rate with one source, 9 per cent with three or more. In our client work at Supernodes, we have found the same pattern holds even more sharply. For one professional services client, an agent using only web search produced roughly 28 per cent inaccurate competitor pricing data. Adding a second source — industry reports — cut that to about 11 per cent. The third source, direct from client CRM data, brought it under 5 per cent.

Step 3: Read and extract claims

For each result, the agent reads the full content, not just the search snippet. It extracts specific claims — numbers, dates, names, statistics — and records the source URL, publication date and a confidence flag for each claim. This is what separates a deep research agent from a regular chat answer. Every claim has a backlink to its origin. You can click through and verify the agent's work.

In practice: When configuring web_extract or a similar content tool in your agent, set the character limit high enough to capture a full article. A limit of 15,000 characters covers most in-depth pieces. Tell the agent to extract claims in a structured format: claim text, source URL, publication date and a confidence flag. We use JSON lines for this — one claim per line, with the source URL as the key:

{"claim": "AI agent market projected to reach $47B by 2030", "source": "https://...", "date": "2026-03-15", "confidence": "single"}
{"claim": "AI agent market projected $42-51B by 2030", "source": "https://...", "date": "2026-04-02", "confidence": "single"}

When the agent finds two claims about the same topic, it compares them. If they agree within a reasonable margin, confidence goes up. If they conflict, the agent notes the disagreement and searches for a third source to break the tie.

Step 4: Evaluate confidence

The agent scores each claim on a four-tier scale. If the answer relies on a single source, it is low confidence. If two independent sources agree, medium. Three or more independent sources with consistent data is high confidence. And if sources disagree, the agent presents both sides with source URLs rather than guessing which one is right.

At Supernodes, we use this exact scale in all of our client research agents:

This scale lives in the agent's skill file as a scoring rubric. When the agent returns a research result, it includes a confidence badge for each claim. The user can click through to the sources and verify for themselves. We have found that teams trust the output far more when they can see which claims are solid and which are tentative — the confidence scale makes the agent's uncertainty visible rather than hidden.

Step 5: Iterate until you have enough

The agent does not stop after one pass. If the combined confidence across all sub-questions does not meet the configured threshold, the agent generates more specific search queries and runs another loop. This is the part most people skip when they build their first deep research agent. They set up one search, one read, one answer. The loop is what separates a competent deep research agent from a basic search tool.

In our experience, most research questions need 3 to 5 iterations before hitting a high-confidence answer. Simple factual questions resolve in 2 iterations. Complex market-sizing questions can take 6 or 7. We configure a hard ceiling of 10 iterations per question so the agent does not loop forever on unanswerable queries. The iteration count and confidence threshold go in the same skill file as the decomposition rules.

Why deep research matters more in 2026 than it did in 2025

There are two reasons. First, the volume of AI-generated content on the web has made single-source answers less reliable. When a search engine returns ten results, some of them may be generated by another AI, which means they repeat the same incorrect claims with different wording. Multiple-source verification catches this: if five sources all say the same thing and they are all derived from the same original flawed source, they only count as one independent claim.

Second, the cost of inference has dropped enough that running a 10-iteration research loop costs roughly the same as a single long chat response. In early 2025, running 15 iterations with 50 source reads would have cost several dollars per query. By mid-2026, the same loop runs for cents. The economics now favour thoroughness over speed.

Setting it up in your tools

Here is exactly how to set up deep research in the three most common agent platforms in mid-2026.

In Hermes

Deep research is configured through the MCP tool server that connects to a search API like SearXNG or Firecrawl. The agent receives a skill file that defines the loop structure, sub-question decomposition rules and confidence scoring criteria. Create ~/.hermes/skills/deep-research.md with the loop instructions, the four-tier confidence scale and sub-question decomposition rules. The agent loads this at session start and applies it to every research request. Configure the search tools in ~/.hermes/config.yaml under the MCP section, pointing to your chosen search API endpoints. For a complete breakdown of how skills and tools work together in an agent stack, see our guide on the 10-layer AI agent stack.

In Claude Code

You can wire the same pattern through a custom tool definition in your CLAUDE.md. Define a deep_research tool that the agent can call, which runs a search, reads the results, evaluates confidence and returns a structured answer. The loop logic lives in a bash script or Python module that Claude Code invokes. The key is defining the iteration count and confidence threshold in the tool description so the agent knows when to stop searching and start answering. We typically set a minimum confidence of "high" for financial or legal research and "medium" for general business intelligence.

Using OpenAI Deep Research

OpenAI's built-in Deep Research mode handles the loop for you. It runs 5 to 15 iterations automatically, searches 30 to 100 sources and produces a cited synthesis. The limitation is you cannot customise the confidence scoring or sub-question decomposition logic. For quick answers this is fine. For research that needs to meet an internal audit standard, the Hermes or Claude Code approach gives you more control over the verification process.

What we have learned from building these agents

Three things consistently surprise teams building their first deep research agent.

One: The loop structure matters more than the search engine quality. We have seen teams spend weeks tuning their search query syntax when what they actually needed was a loop that searched moderately well five times instead of perfectly once. A loop with three mediocre searches and a simple confidence check beats a single perfect search every time.

Two: Source diversity is more important than source quantity. Twenty sources all from the same type of publication (say, tech blogs) give you one perspective. Three sources from different types (academic paper, industry report, government data) give you genuine triangulation. Configure your agent's search tool set with diversity in mind, not just volume.

Three: Teams trust the output more when they can see the uncertainty. A research agent that says "I am medium-confident about this figure — two sources agree but one is a vendor report" gets used more than one that confidently states the wrong number. The confidence scale is not a weakness. It is the feature that makes the agent useful in a professional setting.

For a practical walkthrough of automating multi-step research workflows with n8n templates, see our guide to n8n ad automation. And if you want to go deeper on how the full agent stack fits together — from identity to memory to safety — read the 10-layer AI agent stack.