Skip to main content
Agents are the core intelligence layer of Strix. Each agent is an AI-powered security expert that can reason about applications, execute tests, and discover vulnerabilities autonomously.

Agent Architecture

Strix agents are built on the BaseAgent class, which provides:
  • LLM integration for reasoning and decision-making
  • Tool execution capabilities for interacting with targets
  • State management to track progress and context
  • Multi-agent coordination for complex testing scenarios

Agent Types

Root Agent

The root agent is created when you start a scan. It:
  • Receives the initial scan configuration (targets, instructions)
  • Coordinates the overall testing strategy
  • Creates specialized sub-agents for complex tasks
  • Aggregates findings into the final report
Root agents automatically load the root_agent skill, which contains high-level testing strategies and coordination patterns.

Sub-Agents

Sub-agents are created by the root agent (or other sub-agents) for specialized tasks:
Sub-agents:
  • Have specialized skills for their domain
  • Operate independently with their own conversation context
  • Share the sandbox workspace and proxy history
  • Report findings back to their parent agent
Sub-agents are not continuations of their parent. They receive a specific task and work independently, even if they inherit conversation history for background context.

Agent Lifecycle

1. Creation

When an agent is created:
The agent is added to the global agent graph for tracking and coordination.

2. Execution Loop

The agent enters its main reasoning loop:
Each iteration:
  1. Sends conversation history to the LLM
  2. Receives response (text + tool invocations)
  3. Executes requested tools (terminal, browser, file operations)
  4. Adds results to conversation for next iteration
Agent state persists across iterations:
Agents handle various failure scenarios:
  • Tool execution failures: Retry or adapt strategy
  • LLM errors: Enter waiting state for user intervention
  • Iteration limit: Force completion with current findings
  • Sandbox failures: Report error and halt execution

3. Completion

Agents complete when they:
  • Call the agent_finish tool (sub-agents)
  • Call the finish_scan tool (root agent)
  • Reach the maximum iteration limit
  • Encounter an unrecoverable error

Agent Graph

Strix maintains a graph of all active agents for coordination:
You can visualize the agent graph during execution:

Inter-Agent Communication

Agents communicate through structured messages:
Messages are delivered as structured XML in the conversation:

Agent Configuration

LLM Selection

You can configure which LLM model agents use:
Supported models:
  • claude-4-sonnet (default, best reasoning)
  • gpt-4o (fast, good tool use)
  • gemini-2.0-flash (multimodal, fast)
  • openrouter/anthropic/claude-3.5-sonnet

Skills Selection

Agents load up to 5 skills relevant to their task:
See the Skills documentation for available skills.

Iteration Limits

Control how long agents run:
Default is 300 iterations. Root agents and sub-agents share this limit unless overridden.

Best Practices

When to Create Sub-Agents

Create sub-agents for: Specialized testing (e.g., “Test all GraphQL operations for IDOR”) ✅ Parallel work (e.g., multiple endpoints simultaneously) ✅ Deep dives (e.g., “Analyze authentication flow end-to-end”) Avoid sub-agents for: ❌ Simple one-off tool calls ❌ Sequential tasks that don’t need isolation ❌ When iteration budget is low

Context Management

Use inherit_messages=True sparingly:

Error Recovery

Agents automatically handle many errors, but you can intervene:

Advanced Features

Custom Agent Types

You can extend BaseAgent for specialized behaviors:

Agent Debugging

Enable verbose logging:
This logs:
  • Every LLM request/response
  • Tool executions and results
  • State changes and errors
  • Inter-agent messages

Next Steps

Tools

Explore tools available to agents

Skills

Learn about the skills system

How It Works

Understand the full architecture

Vulnerability Detection

See how agents find security issues