# nvidia-ai-blueprints/deep-researcher-agent architecture

> Architecture diagram of the GitHub repository nvidia-ai-blueprints/deep-researcher-agent, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nvidia-ai-blueprints/deep-researcher-agent
- Repository: https://github.com/nvidia-ai-blueprints/deep-researcher-agent

## Overview

Deep Researcher Agent is a self-hosted, governed research backend with CLI, web UI, REST/async-job, and public MCP entry points. The main flow classifies a request, selects shallow or structured deep research, uses configured research sources, and returns cited answers or reports; completed reports also support follow-up and delta research. The graph includes documented capabilities such as document/collection management, sandbox artifacts, per-user MCP auth, policy controls, and observability. Several links rely on README-level architecture descriptions because their implementing source was not sampled.

Main entry points: [`src/deep_researcher_agent/agents/deep_researcher/agent.py`](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/src/deep_researcher_agent/agents/deep_researcher/agent.py) (Deep research), [`src/deep_researcher_agent/agents/chat_researcher/nodes/context_aware_intent_router.py`](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/src/deep_researcher_agent/agents/chat_researcher/nodes/context_aware_intent_router.py) (Intent routing), [`frontends/deep_researcher_api/src/deep_researcher_api/routes`](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/tree/develop/frontends/deep_researcher_api/src/deep_researcher_api/routes) (REST API), [`frontends/deep_researcher_api/src/deep_researcher_api/jobs/runner.py`](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/frontends/deep_researcher_api/src/deep_researcher_api/jobs/runner.py) (Async jobs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["User Interfaces"]
  node_ui["Web UI"]
  node_cli["CLI<br/>[cli.py]"]
  node_mcp_server["Public MCP<br/>[server.py]"]
end

subgraph group_jobs["API And Jobs"]
  node_api["REST API"]
  node_job_runner["Async jobs<br/>[runner.py]"]
  node_job_events[("Job events<br/>[event_store.py]")]
end

subgraph group_research["Research Workflow"]
  node_intent["Intent routing"]
  node_shallow["Shallow research<br/>[agent.py]"]
  node_deep["Deep research<br/>[agent.py]"]
  node_source_routing["Source routing<br/>[source_routing.py]"]
  node_citation["Citation checks"]
end

subgraph group_integrations["Sources And Runtime"]
  node_registry["Source registry"]
  node_search_sources["Search sources"]
  node_knowledge["Knowledge retrieval"]
  node_documents["Documents and collections"]
  node_sandbox["Sandbox execution"]
  node_artifacts["Artifact capture<br/>[manager.py]"]
  node_artifact_store[("Artifact storage<br/>[store.py]")]
end

subgraph group_operations["Governance And Observability"]
  node_mcp_auth["MCP OAuth<br/>[provider.py]"]
  node_guardrails["Policy middleware"]
  node_relay["Relay observability<br/>[logging.py]"]
end

node_user(("Research user"))

node_user -->|"asks research"| node_ui
node_user -->|"submits query"| node_cli
node_ui -->|"sends requests"| node_api
node_cli -->|"runs workflow"| node_intent
node_api -->|"submits jobs"| node_job_runner
node_job_runner -->|"runs workflow"| node_intent
node_mcp_server -->|"manages research jobs"| node_job_runner
node_intent -->|"routes shallow"| node_shallow
node_intent -->|"routes deep"| node_deep
node_deep -->|"routes sources"| node_source_routing
node_source_routing -->|"resolves sources"| node_registry
node_registry -->|"selects tools"| node_search_sources
node_registry -->|"selects tools"| node_knowledge
node_shallow -->|"calls research tools"| node_search_sources
node_deep -->|"calls research tools"| node_search_sources
node_deep -->|"retrieves knowledge"| node_knowledge
node_api -->|"serves documents"| node_documents
node_deep -->|"verifies citations"| node_citation
node_deep -->|"runs code skills"| node_sandbox
node_sandbox -->|"captures outputs"| node_artifacts
node_artifacts -->|"persists files"| node_artifact_store
node_job_runner -.->|"records events"| node_job_events
node_api -->|"authenticates MCP sources"| node_mcp_auth
node_intent -->|"applies policy"| node_guardrails
node_deep -->|"emits traces"| node_relay

click node_ui "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/tree/develop/frontends/ui/src/features/chat"
click node_cli "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/frontends/cli/cli.py"
click node_api "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/tree/develop/frontends/deep_researcher_api/src/deep_researcher_api/routes"
click node_job_runner "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/frontends/deep_researcher_api/src/deep_researcher_api/jobs/runner.py"
click node_job_events "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/frontends/deep_researcher_api/src/deep_researcher_api/jobs/event_store.py"
click node_mcp_server "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/mcp/src/deep_researcher_mcp/server.py"
click node_intent "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/src/deep_researcher_agent/agents/chat_researcher/nodes/context_aware_intent_router.py"
click node_shallow "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/src/deep_researcher_agent/agents/shallow_researcher/agent.py"
click node_deep "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/src/deep_researcher_agent/agents/deep_researcher/agent.py"
click node_source_routing "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/src/deep_researcher_agent/agents/deep_researcher/tools/source_routing.py"
click node_citation "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/src/deep_researcher_agent/common/citation_verification.py"
click node_registry "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/src/deep_researcher_agent/common/data_source_registry.py"
click node_search_sources "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/tree/develop/sources"
click node_knowledge "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/tree/develop/sources/knowledge_layer/src"
click node_documents "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/tree/develop/src/deep_researcher_agent/fastapi_extensions/routes"
click node_sandbox "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/tree/develop/src/deep_researcher_agent/agents/deep_researcher/sandbox"
click node_artifacts "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/src/deep_researcher_agent/agents/deep_researcher/sandbox/artifacts/manager.py"
click node_artifact_store "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/src/deep_researcher_agent/agents/deep_researcher/sandbox/artifacts/store.py"
click node_mcp_auth "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/frontends/deep_researcher_api/src/deep_researcher_api/mcp_auth/provider.py"
click node_guardrails "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/tree/develop/src/deep_researcher_agent/guardrails"
click node_relay "https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/src/deep_researcher_agent/relay/logging.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_ui,node_cli,node_mcp_server,node_user toneBlue
class node_api,node_job_runner,node_job_events toneAmber
class node_intent,node_shallow,node_deep,node_source_routing,node_citation toneMint
class node_registry,node_search_sources,node_knowledge,node_documents,node_sandbox,node_artifacts,node_artifact_store toneRose
class node_mcp_auth,node_guardrails,node_relay toneIndigo
```

## Components

### User Interfaces

- [Web UI](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/tree/develop/frontends/ui/src/features/chat): `frontends/ui/src/features/chat`
- [CLI](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/frontends/cli/cli.py): `frontends/cli/cli.py`
- [Public MCP](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/mcp/src/deep_researcher_mcp/server.py): `mcp/src/deep_researcher_mcp/server.py`

### API And Jobs

- [REST API](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/tree/develop/frontends/deep_researcher_api/src/deep_researcher_api/routes): `frontends/deep_researcher_api/src/deep_researcher_api/routes`
- [Async jobs](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/frontends/deep_researcher_api/src/deep_researcher_api/jobs/runner.py): `frontends/deep_researcher_api/src/deep_researcher_api/jobs/runner.py`
- [Job events](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/frontends/deep_researcher_api/src/deep_researcher_api/jobs/event_store.py): `frontends/deep_researcher_api/src/deep_researcher_api/jobs/event_store.py`

### Research Workflow

- [Intent routing](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/src/deep_researcher_agent/agents/chat_researcher/nodes/context_aware_intent_router.py): `src/deep_researcher_agent/agents/chat_researcher/nodes/context_aware_intent_router.py`
- [Shallow research](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/src/deep_researcher_agent/agents/shallow_researcher/agent.py): `src/deep_researcher_agent/agents/shallow_researcher/agent.py`
- [Deep research](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/src/deep_researcher_agent/agents/deep_researcher/agent.py): `src/deep_researcher_agent/agents/deep_researcher/agent.py`
- [Source routing](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/src/deep_researcher_agent/agents/deep_researcher/tools/source_routing.py): `src/deep_researcher_agent/agents/deep_researcher/tools/source_routing.py`
- [Citation checks](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/src/deep_researcher_agent/common/citation_verification.py): `src/deep_researcher_agent/common/citation_verification.py`

### Sources And Runtime

- [Source registry](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/src/deep_researcher_agent/common/data_source_registry.py): `src/deep_researcher_agent/common/data_source_registry.py`
- [Search sources](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/tree/develop/sources): `sources`
- [Knowledge retrieval](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/tree/develop/sources/knowledge_layer/src): `sources/knowledge_layer/src`
- [Documents and collections](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/tree/develop/src/deep_researcher_agent/fastapi_extensions/routes): `src/deep_researcher_agent/fastapi_extensions/routes`
- [Sandbox execution](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/tree/develop/src/deep_researcher_agent/agents/deep_researcher/sandbox): `src/deep_researcher_agent/agents/deep_researcher/sandbox`
- [Artifact capture](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/src/deep_researcher_agent/agents/deep_researcher/sandbox/artifacts/manager.py): `src/deep_researcher_agent/agents/deep_researcher/sandbox/artifacts/manager.py`
- [Artifact storage](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/src/deep_researcher_agent/agents/deep_researcher/sandbox/artifacts/store.py): `src/deep_researcher_agent/agents/deep_researcher/sandbox/artifacts/store.py`

### Governance And Observability

- [MCP OAuth](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/frontends/deep_researcher_api/src/deep_researcher_api/mcp_auth/provider.py): `frontends/deep_researcher_api/src/deep_researcher_api/mcp_auth/provider.py`
- [Policy middleware](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/tree/develop/src/deep_researcher_agent/guardrails): `src/deep_researcher_agent/guardrails`
- [Relay observability](https://github.com/nvidia-ai-blueprints/deep-researcher-agent/blob/develop/src/deep_researcher_agent/relay/logging.py): `src/deep_researcher_agent/relay/logging.py`

### Other components

- **Research user**

## Connections

- Research user → Web UI: asks research (evidence: `README.md`)
- Research user → CLI: submits query (evidence: `README.md`)
- Web UI → REST API: sends requests (evidence: `README.md`)
- CLI → Intent routing: runs workflow (evidence: `README.md`)
- REST API → Async jobs: submits jobs (evidence: `README.md`)
- Async jobs → Intent routing: runs workflow (evidence: `README.md`)
- Public MCP → Async jobs: manages research jobs (evidence: `README.md`)
- Intent routing → Shallow research: routes shallow (evidence: `README.md`)
- Intent routing → Deep research: routes deep (evidence: `README.md`)
- Deep research → Source routing: routes sources (evidence: `README.md`)
- Source routing → Source registry: resolves sources (evidence: `src/deep_researcher_agent/agents/deep_researcher/tools/source_routing.py`)
- Source registry → Search sources: selects tools (evidence: `src/deep_researcher_agent/common/data_source_registry.py`)
- Source registry → Knowledge retrieval: selects tools (evidence: `README.md`)
- Shallow research → Search sources: calls research tools (evidence: `README.md`)
- Deep research → Search sources: calls research tools (evidence: `README.md`)
- Deep research → Knowledge retrieval: retrieves knowledge (evidence: `README.md`)
- REST API → Documents and collections: serves documents (evidence: `README.md`)
- Deep research → Citation checks: verifies citations (evidence: `README.md`)
- Deep research → Sandbox execution: runs code skills (evidence: `README.md`)
- Sandbox execution → Artifact capture: captures outputs (evidence: `README.md`)
- Artifact capture → Artifact storage: persists files (evidence: `src/deep_researcher_agent/agents/deep_researcher/sandbox/artifacts/manager.py`)
- Async jobs → Job events: records events
- REST API → MCP OAuth: authenticates MCP sources (evidence: `README.md`)
- Intent routing → Policy middleware: applies policy (evidence: `README.md`)
- Deep research → Relay observability: emits traces (evidence: `README.md`)
