# nisargkadam/argus architecture

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

- Interactive diagram: https://gitdiagram.com/nisargkadam/argus
- Repository: https://github.com/nisargkadam/argus

## Overview

ARGUS investigates external events against an organization's internal knowledge, then produces evidence-grounded risk assessments and proposed actions. The principal workflow is query → graph-managed ReAct research using MCP and FAISS → claim extraction and verification → exposure and risk analysis → recommendations, human review, and report. The README documents the graph's lifecycle and major capabilities; the source excerpts confirm key retrieval, verification, routing, and assembly behavior. Some subsystem implementations were not sampled, so their documented links cite the README.

Main entry points: [`argus/graph/graph.py`](https://github.com/nisargkadam/argus/blob/master/argus/graph/graph.py) (Investigation graph), [`argus/runtime.py`](https://github.com/nisargkadam/argus/blob/master/argus/runtime.py) (Runtime assembly), [`argus/agents/react.py`](https://github.com/nisargkadam/argus/blob/master/argus/agents/react.py) (ReAct investigator), [`argus/agents/toolkit.py`](https://github.com/nisargkadam/argus/blob/master/argus/agents/toolkit.py) (Allowlisted tools)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Investigation orchestration"]
  node_runtime["Runtime assembly<br/>[runtime.py]"]
  node_graph["Investigation graph<br/>[graph.py]"]
  node_state["Investigation state<br/>[state.py]"]
  node_planner["Evidence planner<br/>[planner.py]"]
  node_react["ReAct investigator<br/>[react.py]"]
  node_toolkit["Allowlisted tools<br/>[toolkit.py]"]
end

subgraph group_intelligence["Evidence intelligence"]
  node_mcp["MCP intelligence<br/>[client.py]"]
  node_transport["MCP transport<br/>[transport.py]"]
  node_rag[("Enterprise knowledge<br/>[index.py]")]
  node_claims["Claim extraction<br/>[claims.py]"]
  node_verification["Evidence verification<br/>[verification.py]"]
  node_demo["Seeded MCP world<br/>[demo_world.py]"]
end

subgraph group_analysis["Business analysis"]
  node_exposure["Exposure mapping<br/>[analysis.py]"]
  node_risk["Risk scoring<br/>[analysis.py]"]
  node_scenarios["Risk scenarios<br/>[scenarios.py]"]
  node_recommendations["Action recommendations<br/>[recommendations.py]"]
end

subgraph group_governance["Governance and models"]
  node_cascade["Model cascade<br/>[cascade.py]"]
  node_guardrails["Guardrails<br/>[evaluator.py]"]
  node_review["Human review<br/>[review.py]"]
  node_approval["Action approvals<br/>[approvals.py]"]
end

subgraph group_delivery["Modes and reporting"]
  node_report["Executive report<br/>[executive.py]"]
  node_autonomous["Autonomous monitor<br/>[monitor.py]"]
  node_benchmark["Scenario evaluation<br/>[scenarios.py]"]
end

node_analyst(("Analyst"))

node_analyst -->|"submits query"| node_runtime
node_runtime -->|"assembles"| node_graph
node_graph -->|"plans research"| node_planner
node_planner -->|"directs investigation"| node_react
node_react -->|"selects tools"| node_toolkit
node_toolkit -->|"queries sources"| node_mcp
node_toolkit -->|"retrieves context"| node_rag
node_mcp -->|"dispatches calls"| node_transport
node_runtime -->|"loads offline world"| node_demo
node_react -->|"updates memory"| node_state
node_graph -->|"routes lifecycle"| node_state
node_state -->|"provides evidence"| node_claims
node_claims -->|"scores claims"| node_verification
node_graph -->|"verifies evidence"| node_verification
node_graph -->|"maps business impact"| node_exposure
node_exposure -->|"informs risk score"| node_risk
node_graph -->|"builds scenarios"| node_scenarios
node_graph -->|"proposes actions"| node_recommendations
node_runtime -->|"configures providers"| node_cascade
node_cascade -->|"observes model budgets"| node_guardrails
node_graph -->|"evaluates output"| node_guardrails
node_graph -->|"routes review"| node_review
node_review -->|"requests approval"| node_approval
node_graph -->|"generates report"| node_report
node_analyst -->|"decides actions"| node_approval
node_autonomous -->|"starts investigations"| node_runtime
node_benchmark -->|"runs scenarios"| node_runtime

click node_runtime "https://github.com/nisargkadam/argus/blob/master/argus/runtime.py"
click node_graph "https://github.com/nisargkadam/argus/blob/master/argus/graph/graph.py"
click node_state "https://github.com/nisargkadam/argus/blob/master/argus/graph/state.py"
click node_planner "https://github.com/nisargkadam/argus/blob/master/argus/agents/planner.py"
click node_react "https://github.com/nisargkadam/argus/blob/master/argus/agents/react.py"
click node_toolkit "https://github.com/nisargkadam/argus/blob/master/argus/agents/toolkit.py"
click node_mcp "https://github.com/nisargkadam/argus/blob/master/argus/mcp/client.py"
click node_transport "https://github.com/nisargkadam/argus/blob/master/argus/mcp/transport.py"
click node_rag "https://github.com/nisargkadam/argus/blob/master/argus/rag/index.py"
click node_claims "https://github.com/nisargkadam/argus/blob/master/argus/evidence/claims.py"
click node_verification "https://github.com/nisargkadam/argus/blob/master/argus/evidence/verification.py"
click node_exposure "https://github.com/nisargkadam/argus/blob/master/argus/exposure/analysis.py"
click node_risk "https://github.com/nisargkadam/argus/blob/master/argus/risk/analysis.py"
click node_scenarios "https://github.com/nisargkadam/argus/blob/master/argus/risk/scenarios.py"
click node_recommendations "https://github.com/nisargkadam/argus/blob/master/argus/risk/recommendations.py"
click node_cascade "https://github.com/nisargkadam/argus/blob/master/argus/models/cascade.py"
click node_guardrails "https://github.com/nisargkadam/argus/blob/master/argus/guardrails/evaluator.py"
click node_review "https://github.com/nisargkadam/argus/blob/master/argus/guardrails/review.py"
click node_approval "https://github.com/nisargkadam/argus/blob/master/argus/guardrails/approvals.py"
click node_report "https://github.com/nisargkadam/argus/blob/master/argus/reporting/executive.py"
click node_autonomous "https://github.com/nisargkadam/argus/blob/master/argus/autonomous/monitor.py"
click node_benchmark "https://github.com/nisargkadam/argus/blob/master/argus/evaluation/scenarios.py"
click node_demo "https://github.com/nisargkadam/argus/blob/master/argus/mcp/demo_world.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_runtime,node_graph,node_state,node_planner,node_react,node_toolkit toneBlue
class node_mcp,node_transport,node_rag,node_claims,node_verification,node_demo toneAmber
class node_exposure,node_risk,node_scenarios,node_recommendations toneMint
class node_cascade,node_guardrails,node_review,node_approval toneRose
class node_report,node_autonomous,node_benchmark,node_analyst toneIndigo
```

## Components

### Investigation orchestration

- [Runtime assembly](https://github.com/nisargkadam/argus/blob/master/argus/runtime.py): `argus/runtime.py`
- [Investigation graph](https://github.com/nisargkadam/argus/blob/master/argus/graph/graph.py): `argus/graph/graph.py`
- [Investigation state](https://github.com/nisargkadam/argus/blob/master/argus/graph/state.py): `argus/graph/state.py`
- [Evidence planner](https://github.com/nisargkadam/argus/blob/master/argus/agents/planner.py): `argus/agents/planner.py`
- [ReAct investigator](https://github.com/nisargkadam/argus/blob/master/argus/agents/react.py): `argus/agents/react.py`
- [Allowlisted tools](https://github.com/nisargkadam/argus/blob/master/argus/agents/toolkit.py): `argus/agents/toolkit.py`

### Evidence intelligence

- [MCP intelligence](https://github.com/nisargkadam/argus/blob/master/argus/mcp/client.py): `argus/mcp/client.py`
- [MCP transport](https://github.com/nisargkadam/argus/blob/master/argus/mcp/transport.py): `argus/mcp/transport.py`
- [Enterprise knowledge](https://github.com/nisargkadam/argus/blob/master/argus/rag/index.py): `argus/rag/index.py`
- [Claim extraction](https://github.com/nisargkadam/argus/blob/master/argus/evidence/claims.py): `argus/evidence/claims.py`
- [Evidence verification](https://github.com/nisargkadam/argus/blob/master/argus/evidence/verification.py): `argus/evidence/verification.py`
- [Seeded MCP world](https://github.com/nisargkadam/argus/blob/master/argus/mcp/demo_world.py): `argus/mcp/demo_world.py`

### Business analysis

- [Exposure mapping](https://github.com/nisargkadam/argus/blob/master/argus/exposure/analysis.py): `argus/exposure/analysis.py`
- [Risk scoring](https://github.com/nisargkadam/argus/blob/master/argus/risk/analysis.py): `argus/risk/analysis.py`
- [Risk scenarios](https://github.com/nisargkadam/argus/blob/master/argus/risk/scenarios.py): `argus/risk/scenarios.py`
- [Action recommendations](https://github.com/nisargkadam/argus/blob/master/argus/risk/recommendations.py): `argus/risk/recommendations.py`

### Governance and models

- [Model cascade](https://github.com/nisargkadam/argus/blob/master/argus/models/cascade.py): `argus/models/cascade.py`
- [Guardrails](https://github.com/nisargkadam/argus/blob/master/argus/guardrails/evaluator.py): `argus/guardrails/evaluator.py`
- [Human review](https://github.com/nisargkadam/argus/blob/master/argus/guardrails/review.py): `argus/guardrails/review.py`
- [Action approvals](https://github.com/nisargkadam/argus/blob/master/argus/guardrails/approvals.py): `argus/guardrails/approvals.py`

### Modes and reporting

- [Executive report](https://github.com/nisargkadam/argus/blob/master/argus/reporting/executive.py): `argus/reporting/executive.py`
- [Autonomous monitor](https://github.com/nisargkadam/argus/blob/master/argus/autonomous/monitor.py): `argus/autonomous/monitor.py`
- [Scenario evaluation](https://github.com/nisargkadam/argus/blob/master/argus/evaluation/scenarios.py): `argus/evaluation/scenarios.py`

### Other components

- **Analyst**

## Connections

- Analyst → Runtime assembly: submits query (evidence: `README.md`)
- Runtime assembly → Investigation graph: assembles (evidence: `argus/runtime.py`)
- Investigation graph → Evidence planner: plans research (evidence: `README.md`)
- Evidence planner → ReAct investigator: directs investigation (evidence: `README.md`)
- ReAct investigator → Allowlisted tools: selects tools (evidence: `README.md`)
- Allowlisted tools → MCP intelligence: queries sources (evidence: `argus/agents/toolkit.py`)
- Allowlisted tools → Enterprise knowledge: retrieves context (evidence: `argus/agents/toolkit.py`)
- MCP intelligence → MCP transport: dispatches calls (evidence: `argus/mcp/client.py`)
- Runtime assembly → Seeded MCP world: loads offline world (evidence: `argus/runtime.py`)
- ReAct investigator → Investigation state: updates memory (evidence: `README.md`)
- Investigation graph → Investigation state: routes lifecycle (evidence: `README.md`)
- Investigation state → Claim extraction: provides evidence (evidence: `argus/evidence/claims.py`)
- Claim extraction → Evidence verification: scores claims (evidence: `argus/evidence/verification.py`)
- Investigation graph → Evidence verification: verifies evidence (evidence: `README.md`)
- Investigation graph → Exposure mapping: maps business impact (evidence: `README.md`)
- Exposure mapping → Risk scoring: informs risk score (evidence: `README.md`)
- Investigation graph → Risk scenarios: builds scenarios (evidence: `README.md`)
- Investigation graph → Action recommendations: proposes actions (evidence: `README.md`)
- Runtime assembly → Model cascade: configures providers (evidence: `argus/runtime.py`)
- Model cascade → Guardrails: observes model budgets (evidence: `argus/models/cascade.py`)
- Investigation graph → Guardrails: evaluates output (evidence: `README.md`)
- Investigation graph → Human review: routes review (evidence: `README.md`)
- Human review → Action approvals: requests approval (evidence: `README.md`)
- Investigation graph → Executive report: generates report (evidence: `README.md`)
- Analyst → Action approvals: decides actions (evidence: `README.md`)
- Autonomous monitor → Runtime assembly: starts investigations (evidence: `argus/autonomous/monitor.py`)
- Scenario evaluation → Runtime assembly: runs scenarios (evidence: `README.md`)
