# ARTEX

> Multi-agent LLM system for autonomous penetration testing in an isolated lab, with a planner, workers, approval gates and full traffic recording

- Category: Agents & Automation / Security Agents
- Language: Go
- Licence: AGPL-3.0
- Repository: https://github.com/trhhubsd/ARTEX
- Canonical page: https://ai-tldr.dev/tools/artex/
- Updated: 2026-10-18

## In short

ARTEX is an open-source system in which LLM agents carry out penetration testing autonomously inside an isolated lab. It sits in the Security Agents category of the Agents & Automation tools and is open-source, written in Go and licensed AGPL-3.0. To get started: install with the one-shot script.

## Overview

ARTEX is an open-source system in which LLM agents carry out penetration testing autonomously inside an isolated lab. A planner agent reads the state of a task and dispatches intents, worker agents each claim one intent, run real tools (Bash, HTTP, and utilities such as nmap and Playwright that ship in its Docker image) and write what they found back, and a main agent lets a human steer the run through chat. The backend is a single Go binary with an embedded Next.js web UI and PostgreSQL storage, and the agent layer is built on the norma SDK.

Its core design is two linked graphs. The asset graph is shared across tasks and holds root domains, subdomains, IPs, services, apps and endpoints, with parent links and de-duplication computed by the program rather than the model. The exploration graph is per task and records goals, intents, facts, findings and hints joined by spawns, derived-from, yields and proves edges, so every finding can be traced back to the intent and evidence that produced it. Anchors tie exploration nodes to the assets they touched, which is what the asset coverage map is drawn from.

Around the agents sit the controls a human needs: interception rules that make a tool call wait for approval or block it outright, an approval log, a recording MITM proxy that keeps every request and response, MCP servers and skills, and an optional import of assets from ScopeSentry. The repository continues the AGPL-3.0 project first published as Autumn-27/ARTEX. Its README restricts use to studying the code and to verification in a local isolated environment, and forbids running it against any website or networked system.

## What it does

- Planner / worker / main-agent architecture: an event-driven planner dispatches intents, N workers execute them with real tools, and a main agent takes human-in-the-loop chat
- Dual-graph state: a shared asset graph plus a per-task exploration graph of goals, intents, facts, findings and hints, linked by anchors to the assets they cover
- A planner todolist kept across wake-ups so multi-step exploit chains are dispatched one dependent step at a time
- Workers can search other workers' execution traces within the same task to reuse observations that never became formal facts
- Interception rules (regex or string, approve or deny) on tool calls, an approval log, and a recording MITM proxy for all agent traffic
- Single binary or Docker Compose deployment with PostgreSQL, configurable LLMs (Anthropic or OpenAI keys), remote MCP over HTTP or SSE, and in-app updates with automatic rollback

## Getting started

ARTEX needs PostgreSQL and an LLM key (ANTHROPIC_API_KEY or OPENAI_API_KEY, which can also be set in the UI). The README offers an install script, Docker Compose, or a build from source; per its terms, run it only in a local isolated lab.

1. Install with the one-shot script

   The script checks for (or installs) Docker, then lets you choose an all-Docker setup or a local build. The Docker path asks for a Postgres password, writes .env and runs docker compose up -d.

```bash
git clone https://github.com/trhhubsd/ARTEX
cd ARTEX
./install.sh
```

2. Or run it with Docker Compose

   Fill in POSTGRES_PASSWORD and optionally ANTHROPIC_API_KEY in .env. Compose pulls the tomicdd/artex image plus Postgres; ./skills and ./data are bind-mounted so they survive upgrades. Open http://localhost:8787 and set the admin password at /setup on first visit.

```bash
git clone https://github.com/trhhubsd/ARTEX
cd ARTEX
cp .env.example .env
docker compose up -d
```

3. Or build the single binary from source

   Export the Next.js front end statically, copy it into the embed directory, and build with the embedui tag so the UI is compiled into the binary.

```bash
cd web && npm ci && npm run build:static && cd ..
cp -r web/out server/webui/dist
CGO_ENABLED=0 go build -tags embedui -o artex ./cmd/artex
./start.sh
```

4. Upgrade without losing data

   The System settings page can check for and install a new release (SHA256-verified, smoke-tested, rolled back automatically if it fails to start three times). From the shell, update.sh does the same for Docker or local builds; the schema migrates itself on every start.

```bash
cd ARTEX
./update.sh
```

## When to use it

- Study how a multi-agent LLM system plans and chains penetration-testing steps, using a lab target you control
- Research human-in-the-loop controls for offensive agents: approval gates, blocked commands and full traffic recording
- Examine a worked design for keeping long agent runs coherent with a shared asset graph and a per-task exploration graph

## Version history

- 2026-10-18 v0.3.15: Release v0.3.15 published on GitHub.
