# jiwoochris/artex-global architecture

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

- Interactive diagram: https://gitdiagram.com/jiwoochris/artex-global
- Repository: https://github.com/jiwoochris/artex-global

## Overview

ARTEX is a Go-backed, web-operated autonomous penetration-testing system. Users define a task and authorized scope, then agents plan and execute tool-backed exploration; discoveries accumulate as assets, facts, and findings, with traffic and evidence available for review and reporting. The frontend exposes task operations and results through the backend API. The graph emphasizes documented capabilities and sampled runtime wiring; several UI and backend subsystems are represented at directory level because their implementation was not sampled.

Main entry points: [`server/server.go`](https://github.com/jiwoochris/artex-global/blob/main/server/server.go) (HTTP API), [`agent/worker.go`](https://github.com/jiwoochris/artex-global/blob/main/agent/worker.go) (Intent worker), [`cmd/artex/main.go`](https://github.com/jiwoochris/artex-global/blob/main/cmd/artex/main.go) (ARTEX process), [`server/engine.go`](https://github.com/jiwoochris/artex-global/blob/main/server/engine.go) (Run coordinator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_control["Task Control"]
  node_entry["ARTEX process<br/>[main.go]"]
  node_api["HTTP API<br/>[server.go]"]
  node_manager["Task manager<br/>[manager.go]"]
  node_engine["Run coordinator<br/>[engine.go]"]
end

subgraph group_agents["Agent Exploration"]
  node_planner["Goal planner<br/>[planner.go]"]
  node_worker["Intent worker<br/>[worker.go]"]
  node_tools["Agent tools<br/>[tools.go]"]
end

subgraph group_data["Findings and Evidence"]
  node_graphdb[("Task graph store<br/>[tasks.go]")]
  node_findings["Finding reports<br/>[findings.go]"]
  node_evidence[("Finding evidence<br/>[store.go]")]
end

subgraph group_operations["Runtime Services"]
  node_traffic[("HTTP traffic capture<br/>[traffic.go]")]
  node_intercept["Command review<br/>[intercept.go]"]
  node_llmrecords[("LLM records<br/>[llmrec.go]")]
  node_notifications["Notifications<br/>[notify.go]"]
end

subgraph group_interface["Web Interface"]
  node_webtasks["Task console<br/>[page.tsx]"]
  node_webchat["Agent chat<br/>[page.tsx]"]
  node_webfindings["Findings browser<br/>[page.tsx]"]
  node_webtraffic["Traffic browser<br/>[page.tsx]"]
  node_websystem["System settings<br/>[page.tsx]"]
end

node_operator(("Authorized operator"))

node_operator -->|"defines tasks"| node_webtasks
node_webtasks -->|"uses API"| node_api
node_webchat -->|"uses API"| node_api
node_webfindings -->|"uses API"| node_api
node_webtraffic -->|"uses API"| node_api
node_websystem -->|"uses API"| node_api
node_entry -->|"creates"| node_manager
node_entry -->|"serves"| node_api
node_manager -->|"starts proxy"| node_traffic
node_engine -->|"runs steps"| node_worker
node_worker -->|"executes tools"| node_tools
node_worker -->|"records discoveries"| node_graphdb
node_engine -->|"gates tool calls"| node_intercept
node_evidence -->|"reads exchanges"| node_traffic
node_api -->|"serves reports"| node_findings
node_api -->|"reads task graph"| node_graphdb
node_api -->|"serves records"| node_llmrecords
node_operator -.->|"starts service"| node_entry
node_api -.->|"dispatches events"| node_notifications
node_planner -.->|"assigns intents"| node_worker

click node_entry "https://github.com/jiwoochris/artex-global/blob/main/cmd/artex/main.go"
click node_api "https://github.com/jiwoochris/artex-global/blob/main/server/server.go"
click node_manager "https://github.com/jiwoochris/artex-global/blob/main/server/manager.go"
click node_engine "https://github.com/jiwoochris/artex-global/blob/main/server/engine.go"
click node_planner "https://github.com/jiwoochris/artex-global/blob/main/agent/planner.go"
click node_worker "https://github.com/jiwoochris/artex-global/blob/main/agent/worker.go"
click node_tools "https://github.com/jiwoochris/artex-global/blob/main/agent/tools.go"
click node_graphdb "https://github.com/jiwoochris/artex-global/blob/main/db/tasks.go"
click node_findings "https://github.com/jiwoochris/artex-global/blob/main/report/findings.go"
click node_evidence "https://github.com/jiwoochris/artex-global/blob/main/evidence/store.go"
click node_traffic "https://github.com/jiwoochris/artex-global/blob/main/traffic/traffic.go"
click node_intercept "https://github.com/jiwoochris/artex-global/blob/main/intercept/intercept.go"
click node_llmrecords "https://github.com/jiwoochris/artex-global/blob/main/llmrec/llmrec.go"
click node_notifications "https://github.com/jiwoochris/artex-global/blob/main/notify/notify.go"
click node_webtasks "https://github.com/jiwoochris/artex-global/blob/main/web/src/app/(main)/function/tasks/page.tsx"
click node_webchat "https://github.com/jiwoochris/artex-global/blob/main/web/src/app/(main)/chat/page.tsx"
click node_webfindings "https://github.com/jiwoochris/artex-global/blob/main/web/src/app/(main)/function/findings/page.tsx"
click node_webtraffic "https://github.com/jiwoochris/artex-global/blob/main/web/src/app/(main)/function/traffic/page.tsx"
click node_websystem "https://github.com/jiwoochris/artex-global/blob/main/web/src/app/(main)/system/llm/page.tsx"

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_entry,node_api,node_manager,node_engine toneBlue
class node_planner,node_worker,node_tools toneAmber
class node_graphdb,node_findings,node_evidence toneMint
class node_traffic,node_intercept,node_llmrecords,node_notifications toneRose
class node_webtasks,node_webchat,node_webfindings,node_webtraffic,node_websystem,node_operator toneIndigo
```

## Components

### Task Control

- [ARTEX process](https://github.com/jiwoochris/artex-global/blob/main/cmd/artex/main.go): `cmd/artex/main.go`
- [HTTP API](https://github.com/jiwoochris/artex-global/blob/main/server/server.go): `server/server.go`
- [Task manager](https://github.com/jiwoochris/artex-global/blob/main/server/manager.go): `server/manager.go`
- [Run coordinator](https://github.com/jiwoochris/artex-global/blob/main/server/engine.go): `server/engine.go`

### Agent Exploration

- [Goal planner](https://github.com/jiwoochris/artex-global/blob/main/agent/planner.go): `agent/planner.go`
- [Intent worker](https://github.com/jiwoochris/artex-global/blob/main/agent/worker.go): `agent/worker.go`
- [Agent tools](https://github.com/jiwoochris/artex-global/blob/main/agent/tools.go): `agent/tools.go`

### Findings and Evidence

- [Task graph store](https://github.com/jiwoochris/artex-global/blob/main/db/tasks.go): `db/tasks.go`
- [Finding reports](https://github.com/jiwoochris/artex-global/blob/main/report/findings.go): `report/findings.go`
- [Finding evidence](https://github.com/jiwoochris/artex-global/blob/main/evidence/store.go): `evidence/store.go`

### Runtime Services

- [HTTP traffic capture](https://github.com/jiwoochris/artex-global/blob/main/traffic/traffic.go): `traffic/traffic.go`
- [Command review](https://github.com/jiwoochris/artex-global/blob/main/intercept/intercept.go): `intercept/intercept.go`
- [LLM records](https://github.com/jiwoochris/artex-global/blob/main/llmrec/llmrec.go): `llmrec/llmrec.go`
- [Notifications](https://github.com/jiwoochris/artex-global/blob/main/notify/notify.go): `notify/notify.go`

### Web Interface

- [Task console](https://github.com/jiwoochris/artex-global/blob/main/web/src/app/(main)/function/tasks/page.tsx): `web/src/app/(main)/function/tasks/page.tsx`
- [Agent chat](https://github.com/jiwoochris/artex-global/blob/main/web/src/app/(main)/chat/page.tsx): `web/src/app/(main)/chat/page.tsx`
- [Findings browser](https://github.com/jiwoochris/artex-global/blob/main/web/src/app/(main)/function/findings/page.tsx): `web/src/app/(main)/function/findings/page.tsx`
- [Traffic browser](https://github.com/jiwoochris/artex-global/blob/main/web/src/app/(main)/function/traffic/page.tsx): `web/src/app/(main)/function/traffic/page.tsx`
- [System settings](https://github.com/jiwoochris/artex-global/blob/main/web/src/app/(main)/system/llm/page.tsx): `web/src/app/(main)/system/llm/page.tsx`

### Other components

- **Authorized operator**

## Connections

- Authorized operator → Task console: defines tasks (evidence: `README.md`)
- Task console → HTTP API: uses API (evidence: `README.md`)
- Agent chat → HTTP API: uses API (evidence: `README.md`)
- Findings browser → HTTP API: uses API (evidence: `README.md`)
- Traffic browser → HTTP API: uses API (evidence: `README.md`)
- System settings → HTTP API: uses API (evidence: `README.md`)
- ARTEX process → Task manager: creates (evidence: `cmd/artex/main.go`)
- ARTEX process → HTTP API: serves (evidence: `cmd/artex/main.go`)
- Task manager → HTTP traffic capture: starts proxy (evidence: `server/manager.go`)
- Run coordinator → Intent worker: runs steps (evidence: `server/engine.go`)
- Intent worker → Agent tools: executes tools (evidence: `agent/worker.go`)
- Intent worker → Task graph store: records discoveries (evidence: `agent/worker.go`)
- Run coordinator → Command review: gates tool calls (evidence: `server/engine.go`)
- Finding evidence → HTTP traffic capture: reads exchanges (evidence: `evidence/store.go`)
- HTTP API → Finding reports: serves reports (evidence: `server/server.go`)
- HTTP API → Task graph store: reads task graph (evidence: `server/server.go`)
- HTTP API → LLM records: serves records (evidence: `server/server.go`)
- Authorized operator → ARTEX process: starts service
- HTTP API → Notifications: dispatches events
- Goal planner → Intent worker: assigns intents
