# entrovyx/hermes-agent-offsec architecture

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

- Interactive diagram: https://gitdiagram.com/entrovyx/hermes-agent-offsec
- Repository: https://github.com/entrovyx/hermes-agent-offsec

## Overview

Hermes Agent Offsec is an authorized offensive-security hunting agent built on a multi-surface Hermes foundation. The principal workflow starts with a target and impact objective, builds a persistent dossier, imports captured traffic, investigates a business workflow, and turns primitives into visible exploit chains and report-ready evidence. The README documents these mode relationships and broader capabilities; implementation excerpts are limited, so links for unsampled subsystems are documented rather than inferred from code.

Main entry points: [`agent/conversation_loop.py`](https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/conversation_loop.py) (Agent conversation), [`hermes_cli`](https://github.com/entrovyx/hermes-agent-offsec/tree/main/hermes_cli) (Hermes CLI), [`agent/skill_commands.py`](https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/skill_commands.py) (Target dossier), [`apps/desktop/src/app`](https://github.com/entrovyx/hermes-agent-offsec/tree/main/apps/desktop/src/app) (Desktop app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_operator["Operator surfaces"]
  node_cli["Hermes CLI"]
  node_desktop["Desktop app"]
  node_terminal["Terminal UI"]
  node_web["Web interface"]
end

subgraph group_hunting["Offsec workflow"]
  node_modes["Attack modes<br/>[skill_commands.py]"]
  node_objective["Impact objective<br/>[skill_commands.py]"]
  node_dossier[("Target dossier<br/>[skill_commands.py]")]
  node_request_import["Request importer<br/>[skill_commands.py]"]
  node_deep_hunt["Workflow hunt<br/>[skill_commands.py]"]
  node_chain["Exploit chain<br/>[skill_commands.py]"]
  node_evidence["Evidence and reports"]
end

subgraph group_runtime["Agent runtime"]
  node_conversation["Agent conversation"]
  node_executor["Tool execution<br/>[tool_executor.py]"]
  node_skills["Offsec skills<br/>[skill_utils.py]"]
end

subgraph group_integrations["Connected services"]
  node_model["LLM provider"]
  node_gateway["Messaging gateway"]
end

node_operator(("Security operator"))
node_captured_traffic["HAR / Burp traffic"]

node_operator -->|"starts session"| node_cli
node_operator -->|"uses"| node_desktop
node_operator -->|"uses"| node_terminal
node_operator -->|"uses"| node_web
node_cli -.->|"starts conversation"| node_conversation
node_desktop -.->|"accesses agent"| node_conversation
node_terminal -.->|"accesses agent"| node_conversation
node_web -.->|"accesses agent"| node_conversation
node_conversation -.->|"handles slash modes"| node_modes
node_conversation -.->|"requests completion"| node_model
node_conversation -.->|"dispatches tools"| node_executor
node_executor -.->|"uses skills"| node_skills
node_operator -->|"chooses target"| node_objective
node_objective -->|"documents target"| node_dossier
node_operator -->|"provides traffic"| node_captured_traffic
node_captured_traffic -->|"imports requests"| node_request_import
node_request_import -->|"updates maps"| node_dossier
node_dossier -->|"guides workflow"| node_deep_hunt
node_deep_hunt -->|"yields primitives"| node_chain
node_chain -->|"builds reportability"| node_evidence
node_cli -->|"starts gateway"| node_gateway

click node_cli "https://github.com/entrovyx/hermes-agent-offsec/tree/main/hermes_cli"
click node_desktop "https://github.com/entrovyx/hermes-agent-offsec/tree/main/apps/desktop/src/app"
click node_terminal "https://github.com/entrovyx/hermes-agent-offsec/tree/main/ui-tui/src/app"
click node_web "https://github.com/entrovyx/hermes-agent-offsec/tree/main/web/src"
click node_modes "https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/skill_commands.py"
click node_objective "https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/skill_commands.py"
click node_dossier "https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/skill_commands.py"
click node_request_import "https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/skill_commands.py"
click node_deep_hunt "https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/skill_commands.py"
click node_chain "https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/skill_commands.py"
click node_evidence "https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/verification_evidence.py"
click node_conversation "https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/conversation_loop.py"
click node_executor "https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/tool_executor.py"
click node_skills "https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/skill_utils.py"
click node_model "https://github.com/entrovyx/hermes-agent-offsec/tree/main/agent/transports"
click node_gateway "https://github.com/entrovyx/hermes-agent-offsec/tree/main/gateway/platforms"

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_cli,node_desktop,node_terminal,node_web toneBlue
class node_modes,node_objective,node_dossier,node_request_import,node_deep_hunt,node_chain,node_evidence toneAmber
class node_conversation,node_executor,node_skills toneMint
class node_model,node_gateway toneRose
class node_operator,node_captured_traffic toneIndigo
```

## Components

### Operator surfaces

- [Hermes CLI](https://github.com/entrovyx/hermes-agent-offsec/tree/main/hermes_cli): `hermes_cli`
- [Desktop app](https://github.com/entrovyx/hermes-agent-offsec/tree/main/apps/desktop/src/app): `apps/desktop/src/app`
- [Terminal UI](https://github.com/entrovyx/hermes-agent-offsec/tree/main/ui-tui/src/app): `ui-tui/src/app`
- [Web interface](https://github.com/entrovyx/hermes-agent-offsec/tree/main/web/src): `web/src`

### Offsec workflow

- [Attack modes](https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/skill_commands.py): `agent/skill_commands.py`
- [Impact objective](https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/skill_commands.py): `agent/skill_commands.py`
- [Target dossier](https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/skill_commands.py): `agent/skill_commands.py`
- [Request importer](https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/skill_commands.py): `agent/skill_commands.py`
- [Workflow hunt](https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/skill_commands.py): `agent/skill_commands.py`
- [Exploit chain](https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/skill_commands.py): `agent/skill_commands.py`
- [Evidence and reports](https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/verification_evidence.py): `agent/verification_evidence.py`

### Agent runtime

- [Agent conversation](https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/conversation_loop.py): `agent/conversation_loop.py`
- [Tool execution](https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/tool_executor.py): `agent/tool_executor.py`
- [Offsec skills](https://github.com/entrovyx/hermes-agent-offsec/blob/main/agent/skill_utils.py): `agent/skill_utils.py`

### Connected services

- [LLM provider](https://github.com/entrovyx/hermes-agent-offsec/tree/main/agent/transports): `agent/transports`
- [Messaging gateway](https://github.com/entrovyx/hermes-agent-offsec/tree/main/gateway/platforms): `gateway/platforms`

### Other components

- **Security operator**
- **HAR / Burp traffic**

## Connections

- Security operator → Hermes CLI: starts session (evidence: `README.md`)
- Security operator → Desktop app: uses (evidence: `README.md`)
- Security operator → Terminal UI: uses (evidence: `README.md`)
- Security operator → Web interface: uses (evidence: `README.md`)
- Hermes CLI → Agent conversation: starts conversation
- Desktop app → Agent conversation: accesses agent
- Terminal UI → Agent conversation: accesses agent
- Web interface → Agent conversation: accesses agent
- Agent conversation → Attack modes: handles slash modes
- Agent conversation → LLM provider: requests completion
- Agent conversation → Tool execution: dispatches tools
- Tool execution → Offsec skills: uses skills
- Security operator → Impact objective: chooses target (evidence: `README.md`)
- Impact objective → Target dossier: documents target (evidence: `README.md`)
- Security operator → HAR / Burp traffic: provides traffic (evidence: `README.md`)
- HAR / Burp traffic → Request importer: imports requests (evidence: `README.md`)
- Request importer → Target dossier: updates maps (evidence: `README.md`)
- Target dossier → Workflow hunt: guides workflow (evidence: `README.md`)
- Workflow hunt → Exploit chain: yields primitives (evidence: `README.md`)
- Exploit chain → Evidence and reports: builds reportability (evidence: `README.md`)
- Hermes CLI → Messaging gateway: starts gateway (evidence: `README.md`)
