Blog Post · Architecture Deep Dive · Tracing
Adversarial multi-agent pipeline for Claude Code. Separate AI agents generate and critique each other's work in adversarial feedback loops, where generators produce artifacts, discriminators validate them, and iteration drives convergence. Each agent runs in its own context window with fresh perspective.
Install
Plugin (marketplace):
/plugin marketplace add hatmanstack/claude-forge
/plugin install forge@claude-forge
/reload-plugins
The first command registers the marketplace (persisted to ~/.claude/plugins/known_marketplaces.json, so you only do it once). The second opens the install TUI — select a scope and confirm. The third activates the plugin in your current session.
As a plugin, everything is namespaced forge:: the skills are /forge:brainstorm, /forge:audit, … and the pipeline workflow is /forge:run.
Standalone (copy into any project):
cp -r skills/ /path/to/your-project/.claude/skills/
cp -r agents/ /path/to/your-project/.claude/agents/
mkdir -p /path/to/your-project/.claude/workflows
cp workflows/run.js /path/to/your-project/.claude/workflows/
# Or personal (all projects): the same three directories under ~/.claude/
Copy agents/ alongside the rest: the pipeline roles are native Claude Code subagents. A standalone install drops the forge: prefix, so the skills are /brainstorm, /audit, … the workflow is /run, and roles are addressed as planner rather than forge:planner (pass standalone to the workflow: /run <plan-id> standalone).
Requires a git-initialized project and a recent Claude Code with dynamic workflows available (on Pro, turn on Dynamic workflows in /config).
Agent Teams (for the skills)
The skills (brainstorm, the audit skills, and the pipeline skill) coordinate agents with the Agent and SendMessage tools, which require an experimental flag. /forge:run does not: a workflow runs its own agents.
export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
Add that line to your shell profile (~/.bashrc, ~/.zshrc, …) and restart your terminal. Without it, skills that spawn or message agents fail.
Commands
| Command | Kind | Purpose | Output |
|---|
/forge:brainstorm | skill | Interactive design session: explores the codebase, asks scoping questions | brainstorm.md |
/forge:audit | skill | Any combination of eval, health, and docs audits in one plan directory | intake docs |
/forge:repo-eval | skill | 3-evaluator panel scoring 12 pillars | eval.md |
/forge:repo-health | skill | Technical-debt audit across 4 vectors | health-audit.md |
/forge:doc-health | skill | Documentation drift detection across 6 phases | doc-audit.md |
/forge:run | workflow | The pipeline. Plans, implements, and reviews from any intake doc | committed code + a verdict |
/forge:pipeline | skill | The same pipeline, orchestrated turn by turn in your session | committed code |
Every skill is user-invoked (disable-model-invocation: true): Claude never starts a multi-agent run on its own, and the skill descriptions stay out of context in sessions that don't use Forge.
Usage
# Feature development
/forge:brainstorm I want to add webhook support for payment events
/forge:run 2026-03-12-payment-webhooks
# Full audit (health > eval > docs), one remediation run
/forge:audit all
/forge:run 2026-03-15-audit-my-app
# Or a single audit (each creates its own plan directory)
/forge:repo-eval
/forge:run 2026-03-15-eval-my-app
Running the Pipeline
/forge:run and /forge:pipeline run the same stages with the same roles. They differ in who holds the plan.