CAST - Coordinated Agent Swarm Testing
Open Source

Coordinated Agent Swarm Testing

Deploy 100 AI agents — each with a unique testing persona — to systematically analyze any codebase for bugs, security issues, and code quality. A structured substitute for human beta testing at 1% of the cost.

Case Study: GingerPen (12,500 LOC)

100
AI Agents
687
Unique Findings
$7.97
Total Cost
63m
Wall Clock

Comparable human beta testing: 20 testers, 2 weeks, $2,000–$20,000

How It Works

1. Orchestrator

Scans your project, discovers source files, and organizes them into five specialized squads. Auto-detects language and framework.

2. Squads

Five analysis squads — Security Auditors, Logic Analysts, Robustness Testers, Performance Engineers, and Data Integrity Inspectors — each with 20 unique personas.

3. Agents

Each agent gets a unique persona (archetype + scenario + focus areas) and analyzes the source code independently, returning structured JSON findings with file names, line numbers, and severity.

4. Aggregator

Deduplicates findings using content fingerprinting, computes cross-squad confidence scores, and generates a categorized report with severity breakdown.

Quick Start

CLI

# Quick scan (5 agents, ~$0.40)
npx cast-swarm --src ./src
# Full 100-agent analysis (~$8)
npx cast-swarm --src ./src --full
# Custom agent count
npx cast-swarm --src ./src --agents 20

Requires ANTHROPIC_API_KEY environment variable.

MCP Server for Claude Code / Claude Desktop

// claude_desktop_config.json
{
  "mcpServers": {
    "cast-swarm": {
      "command": "npx",
      "args": ["-y", "cast-swarm-mcp"],
      "env": {
        "ANTHROPIC_API_KEY": "sk-ant-..."
      }
    }
  }
}

Adds cast_scan, cast_full, and cast_report tools to Claude.

What CAST Finds

20.2%
Logic Errors
17.6%
UX/Usability
11.4%
Data Integrity
10.5%
Performance
8.6%
Security
7.0%
Edge Cases
6.0%
Error Handling
11.1%
Spec Violations
4.2%
Concurrency
3.5%
Type Safety

Research Paper

“CAST: Coordinated Agent Swarm Testing as a Substitute for Human Beta Testing in Web Application Development”

Julie Golston, Scaffold Studios · 2026

Paper link coming soon (Zenodo)