Specialized Agents
Red Agent debate, Parallel Coders, and Security Auditor.
Specialized & Opt-In Agents
Beyond the full Planner → Coder → Tester → Reviewer topology, NIKI supports advanced stages configured in niki.toml.
1. Red/Blue Adversarial Agent ([red_blue])
When enabled, a Red Agent inspects the Coder’s diff before the Reviewer sees it. Its sole goal is to find edge-case vulnerabilities, silent logic flaws, and performance hazards.
The Reviewer is then required to explicitly evaluate, uphold, or refute each of the Red Agent’s challenges.
[red_blue]
enabled = true
provider = "anthropic"
model = "claude-sonnet-4-20250514"
2. Parallel Coders & Synthesizer ([parallel])
For complex architectural tasks, NIKI can spawn $N$ concurrent Coder agents working independently in isolated Git worktrees.
A Synthesizer agent then merges the best ideas and approaches from all solutions into a single unified diff.
[parallel]
enabled = true
coder_count = 3
3. Security Auditor ([security])
The Security Auditor is appended after the Reviewer. It records findings about secrets, injection risks, unauthorized access, and related issues; by default its verdict does not gate the revision loop.
[security]
enabled = true
provider = "anthropic"
model = "claude-sonnet-4-20250514"