# philopatersh/argus-digilians architecture

> Architecture diagram of the GitHub repository philopatersh/argus-digilians, 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/philopatersh/argus-digilians
- Repository: https://github.com/philopatersh/argus-digilians

## Overview

Argus is a security-analysis framework and autonomous agent studio. A researcher starts a run through the GUI; the agent reasons with an LLM and optionally enriches its work with RAG and shared memory, dispatches security tools, and can produce reports and vulnerability evidence. The map preserves reconnaissance, scanning/exploitation, and reporting as distinct capabilities, plus the knowledge and memory layers. Some subsystem links come from README descriptions and the SOURCE INDEX; unsampled implementation details and wiring are not asserted.

Main entry points: [`app/core/agent/brain.py`](https://github.com/philopatersh/argus-digilians/blob/main/app/core/agent/brain.py) (Argus Brain), [`app/tools/tool_registry.py`](https://github.com/philopatersh/argus-digilians/blob/main/app/tools/tool_registry.py) (Tool Registry), [`app/core/rag/rag_engine.py`](https://github.com/philopatersh/argus-digilians/blob/main/app/core/rag/rag_engine.py) (RAG Engine), [`app/GUI/dashboard.py`](https://github.com/philopatersh/argus-digilians/blob/main/app/GUI/dashboard.py) (GUI Dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Researcher Interface"]
  node_gui["GUI Dashboard<br/>[dashboard.py]"]
  node_controller["Agent Controller"]
end

subgraph group_reasoning["Agent Reasoning"]
  node_brain["Argus Brain<br/>[brain.py]"]
  node_workflow["ReAct Workflow<br/>[react_workflow.py]"]
  node_llm["Ollama LLM<br/>[llm_factory.py]"]
  node_experimental["Experimental Agent<br/>[agent.py]"]
end

subgraph group_knowledge["Knowledge and Memory"]
  node_rag["RAG Engine<br/>[rag_engine.py]"]
  node_documents["Document Processing"]
  node_embeddings["Embedding Factory<br/>[embeddings.py]"]
  node_vectors[("Vector Store<br/>[vector_store.py]")]
  node_memory[("Shared Memory<br/>[memory_service.py]")]
end

subgraph group_security["Security Operations"]
  node_registry["Tool Registry<br/>[tool_registry.py]"]
  node_recon["Reconnaissance<br/>[recon.py]"]
  node_scanners["Security Scanners<br/>[scanners.py]"]
  node_exploitation["Exploit Tools<br/>[path_traversal.py]"]
  node_bridge["WSL Bridge<br/>[wsl_bridge.py]"]
end

subgraph group_results["Evidence and Reports"]
  node_report["Report Export<br/>[export.py]"]
  node_browser["Screenshot Evidence<br/>[browser_manager.py]"]
end

node_researcher(("Researcher"))
node_kali["Kali Linux"]
node_target["Target Infrastructure"]

node_researcher -->|"uses"| node_gui
node_gui -->|"queries"| node_brain
node_gui -->|"starts runs"| node_controller
node_brain -->|"runs workflow"| node_workflow
node_brain -->|"refreshes state"| node_memory
node_brain -->|"enriches context"| node_rag
node_rag -->|"processes documents"| node_documents
node_rag -->|"creates embeddings"| node_embeddings
node_rag -->|"searches similarity"| node_vectors
node_rag -->|"pulls state"| node_memory
node_brain -->|"prompts"| node_llm
node_llm -->|"returns reasoning"| node_brain
node_brain -->|"dispatches tools"| node_registry
node_registry -->|"registers service"| node_recon
node_registry -->|"registers service"| node_scanners
node_registry -->|"registers service"| node_exploitation
node_registry -->|"configures bridge"| node_bridge
node_bridge -->|"executes commands"| node_kali
node_kali -->|"scans"| node_target
node_target -->|"returns results"| node_kali
node_kali -->|"returns output"| node_bridge
node_bridge -->|"persists results"| node_memory
node_gui -->|"exports reports"| node_report
node_registry -->|"registers capture"| node_browser
node_brain -.->|"routes optionally"| node_experimental

click node_gui "https://github.com/philopatersh/argus-digilians/blob/main/app/GUI/dashboard.py"
click node_controller "https://github.com/philopatersh/argus-digilians/blob/main/app/GUI/utils/agent_controller.py"
click node_brain "https://github.com/philopatersh/argus-digilians/blob/main/app/core/agent/brain.py"
click node_workflow "https://github.com/philopatersh/argus-digilians/blob/main/app/core/agent/react_workflow.py"
click node_llm "https://github.com/philopatersh/argus-digilians/blob/main/app/core/llm_factory.py"
click node_experimental "https://github.com/philopatersh/argus-digilians/blob/main/app/modules/experimental_agent/agent.py"
click node_rag "https://github.com/philopatersh/argus-digilians/blob/main/app/core/rag/rag_engine.py"
click node_documents "https://github.com/philopatersh/argus-digilians/blob/main/app/core/rag/document_processor.py"
click node_embeddings "https://github.com/philopatersh/argus-digilians/blob/main/app/core/rag/embeddings.py"
click node_vectors "https://github.com/philopatersh/argus-digilians/blob/main/app/core/rag/vector_store.py"
click node_memory "https://github.com/philopatersh/argus-digilians/blob/main/app/core/memory/memory_service.py"
click node_registry "https://github.com/philopatersh/argus-digilians/blob/main/app/tools/tool_registry.py"
click node_recon "https://github.com/philopatersh/argus-digilians/blob/main/app/tools/recon.py"
click node_scanners "https://github.com/philopatersh/argus-digilians/blob/main/app/tools/scanners.py"
click node_exploitation "https://github.com/philopatersh/argus-digilians/blob/main/app/tools/path_traversal.py"
click node_bridge "https://github.com/philopatersh/argus-digilians/blob/main/app/tools/wsl_bridge.py"
click node_report "https://github.com/philopatersh/argus-digilians/blob/main/app/GUI/components/export.py"
click node_browser "https://github.com/philopatersh/argus-digilians/blob/main/app/tools/browser_manager.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_gui,node_controller toneBlue
class node_brain,node_workflow,node_llm,node_experimental toneAmber
class node_rag,node_documents,node_embeddings,node_vectors,node_memory toneMint
class node_registry,node_recon,node_scanners,node_exploitation,node_bridge toneRose
class node_report,node_browser,node_researcher,node_kali,node_target toneIndigo
```

## Components

### Researcher Interface

- [GUI Dashboard](https://github.com/philopatersh/argus-digilians/blob/main/app/GUI/dashboard.py): `app/GUI/dashboard.py`
- [Agent Controller](https://github.com/philopatersh/argus-digilians/blob/main/app/GUI/utils/agent_controller.py): `app/GUI/utils/agent_controller.py`

### Agent Reasoning

- [Argus Brain](https://github.com/philopatersh/argus-digilians/blob/main/app/core/agent/brain.py): `app/core/agent/brain.py`
- [ReAct Workflow](https://github.com/philopatersh/argus-digilians/blob/main/app/core/agent/react_workflow.py): `app/core/agent/react_workflow.py`
- [Ollama LLM](https://github.com/philopatersh/argus-digilians/blob/main/app/core/llm_factory.py): `app/core/llm_factory.py`
- [Experimental Agent](https://github.com/philopatersh/argus-digilians/blob/main/app/modules/experimental_agent/agent.py): `app/modules/experimental_agent/agent.py`

### Knowledge and Memory

- [RAG Engine](https://github.com/philopatersh/argus-digilians/blob/main/app/core/rag/rag_engine.py): `app/core/rag/rag_engine.py`
- [Document Processing](https://github.com/philopatersh/argus-digilians/blob/main/app/core/rag/document_processor.py): `app/core/rag/document_processor.py`
- [Embedding Factory](https://github.com/philopatersh/argus-digilians/blob/main/app/core/rag/embeddings.py): `app/core/rag/embeddings.py`
- [Vector Store](https://github.com/philopatersh/argus-digilians/blob/main/app/core/rag/vector_store.py): `app/core/rag/vector_store.py`
- [Shared Memory](https://github.com/philopatersh/argus-digilians/blob/main/app/core/memory/memory_service.py): `app/core/memory/memory_service.py`

### Security Operations

- [Tool Registry](https://github.com/philopatersh/argus-digilians/blob/main/app/tools/tool_registry.py): `app/tools/tool_registry.py`
- [Reconnaissance](https://github.com/philopatersh/argus-digilians/blob/main/app/tools/recon.py): `app/tools/recon.py`
- [Security Scanners](https://github.com/philopatersh/argus-digilians/blob/main/app/tools/scanners.py): `app/tools/scanners.py`
- [Exploit Tools](https://github.com/philopatersh/argus-digilians/blob/main/app/tools/path_traversal.py): `app/tools/path_traversal.py`
- [WSL Bridge](https://github.com/philopatersh/argus-digilians/blob/main/app/tools/wsl_bridge.py): `app/tools/wsl_bridge.py`

### Evidence and Reports

- [Report Export](https://github.com/philopatersh/argus-digilians/blob/main/app/GUI/components/export.py): `app/GUI/components/export.py`
- [Screenshot Evidence](https://github.com/philopatersh/argus-digilians/blob/main/app/tools/browser_manager.py): `app/tools/browser_manager.py`

### Other components

- **Researcher**
- **Kali Linux**
- **Target Infrastructure**

## Connections

- Researcher → GUI Dashboard: uses (evidence: `README.md`)
- GUI Dashboard → Argus Brain: queries (evidence: `README.md`)
- GUI Dashboard → Agent Controller: starts runs (evidence: `app/GUI/dashboard.py`)
- Argus Brain → ReAct Workflow: runs workflow (evidence: `app/core/agent/brain.py`)
- Argus Brain → Shared Memory: refreshes state (evidence: `README.md`)
- Argus Brain → RAG Engine: enriches context (evidence: `README.md`)
- RAG Engine → Document Processing: processes documents (evidence: `app/core/rag/rag_engine.py`)
- RAG Engine → Embedding Factory: creates embeddings (evidence: `app/core/rag/rag_engine.py`)
- RAG Engine → Vector Store: searches similarity (evidence: `app/core/rag/rag_engine.py`)
- RAG Engine → Shared Memory: pulls state (evidence: `README.md`)
- Argus Brain → Ollama LLM: prompts (evidence: `README.md`)
- Ollama LLM → Argus Brain: returns reasoning (evidence: `README.md`)
- Argus Brain → Tool Registry: dispatches tools (evidence: `README.md`)
- Tool Registry → Reconnaissance: registers service (evidence: `app/tools/tool_registry.py`)
- Tool Registry → Security Scanners: registers service (evidence: `app/tools/tool_registry.py`)
- Tool Registry → Exploit Tools: registers service (evidence: `app/tools/tool_registry.py`)
- Tool Registry → WSL Bridge: configures bridge (evidence: `app/tools/tool_registry.py`)
- WSL Bridge → Kali Linux: executes commands (evidence: `README.md`)
- Kali Linux → Target Infrastructure: scans (evidence: `README.md`)
- Target Infrastructure → Kali Linux: returns results (evidence: `README.md`)
- Kali Linux → WSL Bridge: returns output (evidence: `README.md`)
- WSL Bridge → Shared Memory: persists results (evidence: `README.md`)
- GUI Dashboard → Report Export: exports reports (evidence: `README.md`)
- Tool Registry → Screenshot Evidence: registers capture (evidence: `app/tools/tool_registry.py`)
- Argus Brain → Experimental Agent: routes optionally
