Strix (STRIX) — Architecture (Layered View)

Part of the Strix onboarding kit — see architecture.html for the full explainer.

flowchart TB subgraph L1["Layer 1 — Interface (strix/interface)"] CLI["CLI / cli_args.py\nstrix --target ..."] TUI["Go TUI\n(interactive live view)"] Viewer["Local Web Viewer\nstrix view (server.py)"] end subgraph L2["Layer 2 — Orchestration Core (strix/core)"] Runner["runner.py\nrun_strix_scan()"] Coord["AgentCoordinator\n(agents.py)"] Exec["execution.py\nrun_agent_loop / spawn_child_agent"] end subgraph L3["Layer 3 — Agents (strix/agents)"] Factory["factory.py\nbuild_strix_agent()"] Prompt["prompt.py\nrender_system_prompt()\n+ system_prompt.jinja"] end subgraph L4["Layer 4 — Tools (strix/tools)"] Shell["Shell / Filesystem\n(exec_command, apply_patch)"] Proxy["proxy/\n(Caido traffic tools)"] Report["reporting/\ncreate_vulnerability_report"] Graph["agents_graph/\ncreate_agent, wait_for_agents"] Other["notes, todo, web_search,\nthink, load_skill, view_image"] end subgraph L5["Layer 5 — Runtime (strix/runtime)"] Sandbox["session_manager.py\nDocker sandbox lifecycle"] Docker["docker_client.py\nStrixDockerSandboxClient"] Caido["caido_bootstrap.py\nCaido intercepting proxy"] end subgraph L6["Layer 6 — Findings (strix/report)"] State["state.py\nReportState (in-memory)"] Dedupe["dedupe.py\nLLM-judge duplicate check"] Writer["writer.py\nmd / json / csv"] Sarif["sarif.py\nfindings.sarif"] end subgraph L7["Layer 7 — Config & Model Routing"] Config["config/settings.py, loader.py\nSTRIX_LLM, LLM_API_KEY, ~/.strix/cli-config.json"] Models["config/models.py\nStrixProvider (LiteLLM-backed)"] end Skills["strix/skills/\nmarkdown knowledge packs\n(vulnerabilities, tooling, scan_modes, ...)"] TargetApp["Target application\n(local code, URL, or repo)"] LLMProvider["LLM Provider\n(OpenAI, Anthropic, Bedrock, Vertex, local...)"] CLI --> Runner TUI --> Runner Viewer -.reads artifacts.-> Writer Runner --> Coord Runner --> Sandbox Coord --> Exec Exec --> Factory Factory --> Prompt Prompt --> Skills Exec --> Graph Factory --> Shell Factory --> Proxy Factory --> Report Factory --> Other Shell --> Docker Proxy --> Caido Docker --> Sandbox Caido --> Sandbox Sandbox --> TargetApp Report --> Dedupe Dedupe --> State State --> Writer State --> Sarif Runner --> Config Config --> Models Models --> LLMProvider Factory --> LLMProvider