# yean-sec/strikeagent_atkbrain-flash architecture

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

- Interactive diagram: https://gitdiagram.com/yean-sec/strikeagent_atkbrain-flash
- Repository: https://github.com/yean-sec/strikeagent_atkbrain-flash

## Overview

StrikeAgent is an AI-assisted, authorized penetration-testing console. Users configure a model and scoped single-target or cluster project, then start a hunt; the scheduler runs Pi agents against an attack graph, with findings available for secondary verification/rating and report export. The README also describes memory distillation, chat steering, and optional proxy-pool routing. The diagram emphasizes relationships visible in the README or source index; several product capabilities are represented at subsystem level because their implementation excerpts were not sampled.

Main entry points: [`backend/atkbrain/api/routes.py`](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/api/routes.py) (REST API), [`backend/atkbrain/engine/scheduler.py`](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/engine/scheduler.py) (Hunt scheduler), [`backend/atkbrain/graph/store.py`](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/graph/store.py) (Attack graph store), [`backend/atkbrain/agents/pi_runtime.py`](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/agents/pi_runtime.py) (Pi runtime)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_console["Console and API"]
  node_webapp["Web application<br/>[App.tsx]"]
  node_projects_ui["Project console<br/>[ProjectPage.tsx]"]
  node_api["REST API<br/>[routes.py]"]
  node_auth["Authentication<br/>[routes.py]"]
  node_theme["UI theme<br/>[theme.ts]"]
end

subgraph group_hunt["Hunt orchestration"]
  node_scheduler["Hunt scheduler<br/>[scheduler.py]"]
  node_session["Agent session<br/>[session.py]"]
  node_pi["Pi runtime<br/>[pi_runtime.py]"]
  node_exec["Tool execution<br/>[runner.py]"]
  node_scope["Target scope<br/>[scope.py]"]
  node_objectives["Track objectives<br/>[objective.py]"]
end

subgraph group_analysis["Attack analysis"]
  node_reach["Intranet reach<br/>[intranet_reach.py]"]
  node_graph[("Attack graph store<br/>[store.py]")]
  node_graph_model["Graph model<br/>[model.py]"]
end

subgraph group_assurance["Finding assurance"]
  node_review["Finding review<br/>[jobs.py]"]
  node_reports["Report generation<br/>[generator.py]"]
  node_memory[("Learning memory<br/>[store.py]")]
end

subgraph group_state["State and integrations"]
  node_db[("Application database<br/>[db.py]")]
  node_events["Project events<br/>[events.py]"]
  node_projects["Project management<br/>[projects.py]"]
  node_proxy["Proxy pool<br/>[pool.py]"]
  node_config["Runtime configuration<br/>[config.py]"]
  node_i18n["Translations<br/>[strings.py]"]
end

node_user(("Operator"))

node_user -->|"uses"| node_webapp
node_webapp -->|"routes to"| node_projects_ui
node_user -->|"authenticates"| node_auth
node_user -->|"controls hunts"| node_api
node_api -->|"manages projects"| node_projects
node_api -->|"controls runs"| node_scheduler
node_api -->|"reads graph"| node_graph
node_api -->|"requests reports"| node_reports
node_scheduler -->|"starts runtime"| node_pi
node_scheduler -->|"loads projects"| node_projects
node_scheduler -->|"publishes events"| node_events
node_session -->|"uses runtime"| node_pi
node_session -->|"uses scope"| node_scope
node_pi -->|"supports review"| node_review
node_pi -->|"runs tools"| node_exec
node_reach -->|"checks boundaries"| node_scope
node_reach -->|"uses graph state"| node_graph
node_graph -->|"persists graph"| node_db
node_graph -->|"records changes"| node_events
node_graph -->|"uses model"| node_graph_model
node_projects -->|"stores projects"| node_db
node_review -->|"reuses live agent"| node_scheduler
node_session -->|"runs review"| node_review
node_exec -.->|"uses when enabled"| node_proxy
node_user -.->|"benefits from learning"| node_memory
node_user -->|"configures optionally"| node_proxy
node_config -->|"configures model"| node_pi
node_projects_ui -->|"uses styling"| node_theme

click node_webapp "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/frontend/src/App.tsx"
click node_projects_ui "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/frontend/src/pages/ProjectPage.tsx"
click node_api "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/api/routes.py"
click node_auth "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/auth/routes.py"
click node_scheduler "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/engine/scheduler.py"
click node_session "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/agents/session.py"
click node_pi "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/agents/pi_runtime.py"
click node_exec "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/exec/runner.py"
click node_scope "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/scope.py"
click node_objectives "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/objective.py"
click node_reach "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/engine/intranet_reach.py"
click node_graph "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/graph/store.py"
click node_graph_model "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/graph/model.py"
click node_review "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/review/jobs.py"
click node_reports "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/report/generator.py"
click node_memory "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/memory/store.py"
click node_db "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/db.py"
click node_events "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/events.py"
click node_projects "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/projects.py"
click node_proxy "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/proxy/pool.py"
click node_config "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/config.py"
click node_i18n "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/i18n/strings.py"
click node_theme "https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/frontend/src/theme.ts"

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_webapp,node_projects_ui,node_api,node_auth,node_theme toneBlue
class node_scheduler,node_session,node_pi,node_exec,node_scope,node_objectives toneAmber
class node_reach,node_graph,node_graph_model toneMint
class node_review,node_reports,node_memory toneRose
class node_db,node_events,node_projects,node_proxy,node_config,node_i18n,node_user toneIndigo
```

## Components

### Console and API

- [Web application](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Project console](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/frontend/src/pages/ProjectPage.tsx): `frontend/src/pages/ProjectPage.tsx`
- [REST API](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/api/routes.py): `backend/atkbrain/api/routes.py`
- [Authentication](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/auth/routes.py): `backend/atkbrain/auth/routes.py`
- [UI theme](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/frontend/src/theme.ts): `frontend/src/theme.ts`

### Hunt orchestration

- [Hunt scheduler](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/engine/scheduler.py): `backend/atkbrain/engine/scheduler.py`
- [Agent session](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/agents/session.py): `backend/atkbrain/agents/session.py`
- [Pi runtime](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/agents/pi_runtime.py): `backend/atkbrain/agents/pi_runtime.py`
- [Tool execution](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/exec/runner.py): `backend/atkbrain/exec/runner.py`
- [Target scope](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/scope.py): `backend/atkbrain/scope.py`
- [Track objectives](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/objective.py): `backend/atkbrain/objective.py`

### Attack analysis

- [Intranet reach](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/engine/intranet_reach.py): `backend/atkbrain/engine/intranet_reach.py`
- [Attack graph store](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/graph/store.py): `backend/atkbrain/graph/store.py`
- [Graph model](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/graph/model.py): `backend/atkbrain/graph/model.py`

### Finding assurance

- [Finding review](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/review/jobs.py): `backend/atkbrain/review/jobs.py`
- [Report generation](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/report/generator.py): `backend/atkbrain/report/generator.py`
- [Learning memory](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/memory/store.py): `backend/atkbrain/memory/store.py`

### State and integrations

- [Application database](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/db.py): `backend/atkbrain/db.py`
- [Project events](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/events.py): `backend/atkbrain/events.py`
- [Project management](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/projects.py): `backend/atkbrain/projects.py`
- [Proxy pool](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/proxy/pool.py): `backend/atkbrain/proxy/pool.py`
- [Runtime configuration](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/config.py): `backend/atkbrain/config.py`
- [Translations](https://github.com/yean-sec/strikeagent_atkbrain-flash/blob/main/backend/atkbrain/i18n/strings.py): `backend/atkbrain/i18n/strings.py`

### Other components

- **Operator**

## Connections

- Operator → Web application: uses
- Web application → Project console: routes to (evidence: `frontend/src/App.tsx`)
- Operator → Authentication: authenticates
- Operator → REST API: controls hunts
- REST API → Project management: manages projects (evidence: `backend/atkbrain/api/routes.py`)
- REST API → Hunt scheduler: controls runs (evidence: `backend/atkbrain/api/routes.py`)
- REST API → Attack graph store: reads graph (evidence: `backend/atkbrain/api/routes.py`)
- REST API → Report generation: requests reports (evidence: `backend/atkbrain/api/routes.py`)
- Hunt scheduler → Pi runtime: starts runtime (evidence: `backend/atkbrain/engine/scheduler.py`)
- Hunt scheduler → Project management: loads projects (evidence: `backend/atkbrain/engine/scheduler.py`)
- Hunt scheduler → Project events: publishes events (evidence: `backend/atkbrain/engine/scheduler.py`)
- Agent session → Pi runtime: uses runtime (evidence: `backend/atkbrain/agents/session.py`)
- Agent session → Target scope: uses scope (evidence: `backend/atkbrain/agents/session.py`)
- Pi runtime → Finding review: supports review (evidence: `backend/atkbrain/agents/pi_runtime.py`)
- Pi runtime → Tool execution: runs tools (evidence: `backend/atkbrain/agents/pi_runtime.py`)
- Intranet reach → Target scope: checks boundaries (evidence: `backend/atkbrain/engine/intranet_reach.py`)
- Intranet reach → Attack graph store: uses graph state (evidence: `backend/atkbrain/engine/intranet_reach.py`)
- Attack graph store → Application database: persists graph (evidence: `backend/atkbrain/graph/store.py`)
- Attack graph store → Project events: records changes (evidence: `backend/atkbrain/graph/store.py`)
- Attack graph store → Graph model: uses model (evidence: `backend/atkbrain/graph/store.py`)
- Project management → Application database: stores projects (evidence: `backend/atkbrain/projects.py`)
- Finding review → Hunt scheduler: reuses live agent (evidence: `backend/atkbrain/review/jobs.py`)
- Agent session → Finding review: runs review (evidence: `backend/atkbrain/agents/session.py`)
- Tool execution → Proxy pool: uses when enabled
- Operator → Learning memory: benefits from learning
- Operator → Proxy pool: configures optionally
- Runtime configuration → Pi runtime: configures model (evidence: `backend/atkbrain/config.py`)
- Project console → UI theme: uses styling
