# monesgoda/agntx-hunter architecture

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

- Interactive diagram: https://gitdiagram.com/monesgoda/agntx-hunter
- Repository: https://github.com/monesgoda/agntx-hunter

## Overview

AgntX-Hunter is an authorized offensive-security agent framework. An operator enrolls an authorized engagement, then the coordinator uses scope-fenced reconnaissance and queued specialist work to produce evidence-backed findings; independent verification and protected human review precede reporting. The CLI is the documented single write path to the system of record, while the dashboard is read-only. The README documents these product capabilities; some runtime links below rely on its architecture description or source-index references because the relevant source was not excerpted.

Main entry points: [`pentest/framework/store.py`](https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/store.py) (System of Record), [`pentest/framework/cli.py`](https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/cli.py) (Framework CLI), [`pentest/framework/dispatcher.py`](https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/dispatcher.py) (Specialist Dispatcher), [`pentest/framework/probe.py`](https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/probe.py) (Fenced Probe)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_coord["Coordination"]
  node_agents["Agent Registry<br/>[v4-index.json]"]
  node_cli["Framework CLI<br/>[cli.py]"]
  node_scheduler["Scheduler<br/>[scheduler.py]"]
  node_recon["Recon Engine<br/>[recon.py]"]
  node_handoff["Lead Handoff<br/>[handoff.py]"]
  node_pump["Dispatch Pump<br/>[dispatch_pump.py]"]
  node_dispatcher["Specialist Dispatcher<br/>[dispatcher.py]"]
end

subgraph group_safety["Scope and Gateway"]
  node_scope["Engagement Scope<br/>[scope.py]"]
  node_probe["Fenced Probe<br/>[probe.py]"]
  node_limits["Request Limits<br/>[limits.py]"]
end

subgraph group_evidence["Evidence and Review"]
  node_store[("System of Record<br/>[store.py]")]
  node_validation["Finding Validation<br/>[validation.py]"]
  node_poc["Verification Queue<br/>[poc_queue.py]"]
  node_report["Reporting<br/>[report.py]"]
  node_dashboard["Read-only Dashboard<br/>[dashboard.py]"]
end

subgraph group_knowledge["Security Knowledge"]
  node_catalog["Family Catalog<br/>[catalog.py]"]
  node_playbooks["Technique Playbooks"]
end

node_operator(("Operator"))
node_opencode["OpenCode CLI"]
node_reviewer(("Human Reviewer"))
node_target(("Authorized Targets"))

node_operator -->|"initiates"| node_opencode
node_opencode -->|"loads roles"| node_agents
node_opencode -->|"invokes"| node_cli
node_cli -->|"starts work"| node_scheduler
node_scheduler -->|"runs"| node_recon
node_recon -->|"submits candidates"| node_handoff
node_handoff -->|"records leads"| node_store
node_scheduler -->|"dispatches through"| node_pump
node_pump -->|"claims tasks"| node_dispatcher
node_dispatcher -->|"launches agents"| node_opencode
node_dispatcher -->|"leases tasks"| node_store
node_cli -->|"checks authorization"| node_scope
node_dispatcher -->|"fences tasks"| node_scope
node_probe -->|"checks targets"| node_scope
node_probe -->|"reserves requests"| node_limits
node_probe -->|"sends requests"| node_target
node_cli -->|"writes state"| node_store
node_dispatcher -->|"submits evidence"| node_validation
node_validation -->|"records findings"| node_store
node_validation -->|"queues verification"| node_poc
node_poc -->|"requests replay"| node_probe
node_store -->|"presents for review"| node_reviewer
node_reviewer -->|"approves findings"| node_report
node_store -->|"serves read views"| node_dashboard
node_cli -->|"uses families"| node_catalog
node_recon -.->|"consults techniques"| node_playbooks

click node_agents "https://github.com/monesgoda/agntx-hunter/blob/main/pentest/agents/v4-index.json"
click node_cli "https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/cli.py"
click node_scheduler "https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/scheduler.py"
click node_recon "https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/recon.py"
click node_handoff "https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/handoff.py"
click node_pump "https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/dispatch_pump.py"
click node_dispatcher "https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/dispatcher.py"
click node_scope "https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/scope.py"
click node_probe "https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/probe.py"
click node_limits "https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/limits.py"
click node_store "https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/store.py"
click node_validation "https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/validation.py"
click node_poc "https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/poc_queue.py"
click node_report "https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/report.py"
click node_dashboard "https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/dashboard.py"
click node_catalog "https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/catalog.py"
click node_playbooks "https://github.com/monesgoda/agntx-hunter/tree/main/pentest/intelligence_source/playbooks"

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_agents,node_cli,node_scheduler,node_recon,node_handoff,node_pump,node_dispatcher,node_reviewer toneBlue
class node_scope,node_probe,node_limits toneAmber
class node_store,node_validation,node_poc,node_report,node_dashboard toneMint
class node_catalog,node_playbooks toneRose
class node_operator,node_opencode,node_target toneIndigo
```

## Components

### Coordination

- [Agent Registry](https://github.com/monesgoda/agntx-hunter/blob/main/pentest/agents/v4-index.json): `pentest/agents/v4-index.json`
- [Framework CLI](https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/cli.py): `pentest/framework/cli.py`
- [Scheduler](https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/scheduler.py): `pentest/framework/scheduler.py`
- [Recon Engine](https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/recon.py): `pentest/framework/recon.py`
- [Lead Handoff](https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/handoff.py): `pentest/framework/handoff.py`
- [Dispatch Pump](https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/dispatch_pump.py): `pentest/framework/dispatch_pump.py`
- [Specialist Dispatcher](https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/dispatcher.py): `pentest/framework/dispatcher.py`

### Scope and Gateway

- [Engagement Scope](https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/scope.py): `pentest/framework/scope.py`
- [Fenced Probe](https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/probe.py): `pentest/framework/probe.py`
- [Request Limits](https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/limits.py): `pentest/framework/limits.py`

### Evidence and Review

- [System of Record](https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/store.py): `pentest/framework/store.py`
- [Finding Validation](https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/validation.py): `pentest/framework/validation.py`
- [Verification Queue](https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/poc_queue.py): `pentest/framework/poc_queue.py`
- [Reporting](https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/report.py): `pentest/framework/report.py`
- [Read-only Dashboard](https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/dashboard.py): `pentest/framework/dashboard.py`

### Security Knowledge

- [Family Catalog](https://github.com/monesgoda/agntx-hunter/blob/main/pentest/framework/catalog.py): `pentest/framework/catalog.py`
- [Technique Playbooks](https://github.com/monesgoda/agntx-hunter/tree/main/pentest/intelligence_source/playbooks): `pentest/intelligence_source/playbooks`

### Other components

- **Operator**
- **OpenCode CLI**
- **Human Reviewer**
- **Authorized Targets**

## Connections

- Operator → OpenCode CLI: initiates (evidence: `README.md`)
- OpenCode CLI → Agent Registry: loads roles (evidence: `README.md`)
- OpenCode CLI → Framework CLI: invokes (evidence: `README.md`)
- Framework CLI → Scheduler: starts work (evidence: `README.md`)
- Scheduler → Recon Engine: runs (evidence: `pentest/framework/scheduler.py`)
- Recon Engine → Lead Handoff: submits candidates (evidence: `pentest/framework/recon.py`)
- Lead Handoff → System of Record: records leads (evidence: `pentest/framework/handoff.py`)
- Scheduler → Dispatch Pump: dispatches through (evidence: `pentest/framework/scheduler.py`)
- Dispatch Pump → Specialist Dispatcher: claims tasks (evidence: `pentest/framework/dispatch_pump.py`)
- Specialist Dispatcher → OpenCode CLI: launches agents (evidence: `README.md`)
- Specialist Dispatcher → System of Record: leases tasks (evidence: `pentest/framework/dispatcher.py`)
- Framework CLI → Engagement Scope: checks authorization (evidence: `README.md`)
- Specialist Dispatcher → Engagement Scope: fences tasks (evidence: `pentest/framework/dispatcher.py`)
- Fenced Probe → Engagement Scope: checks targets (evidence: `pentest/framework/probe.py`)
- Fenced Probe → Request Limits: reserves requests (evidence: `pentest/framework/probe.py`)
- Fenced Probe → Authorized Targets: sends requests (evidence: `README.md`)
- Framework CLI → System of Record: writes state (evidence: `README.md`)
- Specialist Dispatcher → Finding Validation: submits evidence (evidence: `README.md`)
- Finding Validation → System of Record: records findings (evidence: `pentest/framework/validation.py`)
- Finding Validation → Verification Queue: queues verification (evidence: `pentest/framework/validation.py`)
- Verification Queue → Fenced Probe: requests replay (evidence: `pentest/framework/poc_queue.py`)
- System of Record → Human Reviewer: presents for review (evidence: `README.md`)
- Human Reviewer → Reporting: approves findings (evidence: `README.md`)
- System of Record → Read-only Dashboard: serves read views (evidence: `pentest/framework/dashboard.py`)
- Framework CLI → Family Catalog: uses families (evidence: `pentest/framework/cli.py`)
- Recon Engine → Technique Playbooks: consults techniques
