From ants
Iterative self-improvement pipeline -- review-fix loop with adversarial sentinels until all issues (info severity and above) are resolved or max iterations reached
How this skill is triggered — by the user, by Claude, or both
Slash command
/ants:improveThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Stateless iterative review-fix pipeline. Dispatches specialist sentinels (correctness, security, perf) in parallel, consolidates via review-arbiter, dispatches review-fixer to apply targeted fixes, then re-reviews. Loops until arbiter returns "clean" verdict (zero issues) or max iterations (5) reached. No state.json, no hooks, no Agent Teams -- follows the same stateless direct-dispatch model a...
Stateless iterative review-fix pipeline. Dispatches specialist sentinels (correctness, security, perf) in parallel, consolidates via review-arbiter, dispatches review-fixer to apply targeted fixes, then re-reviews. Loops until arbiter returns "clean" verdict (zero issues) or max iterations (5) reached. No state.json, no hooks, no Agent Teams -- follows the same stateless direct-dispatch model as the debug pipeline.
.agents/tmp/state.json is created or read during improvecheck_ants_workflow() in every hook returns false (exits 0 immediately), so all hooks pass through without interfering.agents/tmp/improve/Phase I0 | REVIEW | Adversarial Review | 4x parallel sentinels + review-arbiter
Phase I1 | FIX | Targeted Repair | 1x review-fixer
[loop back to I0 if issues remain, up to 5 iterations]
Phase I2 | REPORT | Summary | Orchestrator displays results
Iteration 1:
I0 Review (4x parallel sentinels)
/ | | \
correctness security perf testing
\ | | /
review-arbiter (consolidate)
|
verdict?
/ \
clean issues_found
| |
I2 Report I1 Fix (review-fixer)
|
[loop -> I0 Review, iteration 2]
...repeat up to 5 iterations...
I2 Report (summary of all iterations)
Four specialist sentinels dispatched in parallel: ants:sentinel-correctness, ants:sentinel-security, ants:sentinel-perf, ants:sentinel-testing. Each reviews all project files relevant to the task description. (sentinel-docs and sentinel-style are excluded from the improve pipeline — docs/style quality is out of scope for defect-focused improvement.)
After all four complete, ants:review-arbiter consolidates findings by cross-referencing, deduplicating, and resolving conflicts across all sentinel reports. The arbiter reports all issues by default -- no severity threshold override is needed, as the arbiter naturally captures all severities including info.
.agents/tmp/improve/iter-{N}/I0-review.sentinel-correctness.json, .agents/tmp/improve/iter-{N}/I0-review.sentinel-security.json, .agents/tmp/improve/iter-{N}/I0-review.sentinel-perf.json, .agents/tmp/improve/iter-{N}/I0-review.sentinel-testing.json.agents/tmp/improve/iter-{N}/I0-quality.jsonclean (zero issues) terminates loop; issues_found (any severity) triggers I1Single ants:review-fixer agent reads issues from .agents/tmp/improve/iter-{N}/I0-quality.json. The dispatch prompt overrides the fixer's default state.json input -- since the improve pipeline is stateless, there is no state file. Instead, the fixer is pointed directly to the arbiter's quality file.
Fixer processes issues in severity order: critical first, then warning, then info. ALL severities are fixed (info and above) -- this is the key differentiator from the swarm pipeline.
.agents/tmp/improve/iter-{N}/I1-fix.jsonNo agent dispatched -- the orchestrator reads all iteration outputs and displays a summary. Shows: iteration count, issues found per iteration, issues fixed per iteration, final verdict. Displayed directly to the user.
clean verdict (zero issues at any severity)| Phase | Agent | Model | Reused | Count | Execution |
|---|---|---|---|---|---|
| I0 | ants:sentinel-correctness | sonnet | Yes | 1 | Parallel |
| I0 | ants:sentinel-security | sonnet | Yes | 1 | Parallel |
| I0 | ants:sentinel-perf | sonnet | Yes | 1 | Parallel |
| I0 | ants:sentinel-testing | sonnet | Yes | 1 | Parallel |
| I0 | ants:review-arbiter | sonnet | Yes | 1 | Sequential (after sentinels) |
| I1 | ants:review-fixer | inherit | Yes | 1 | Single |
Total: 6 reused agents, 0 new agents
All output files live under .agents/tmp/improve/ with per-iteration subdirectories:
| Phase | File | Format | Description |
|---|---|---|---|
| I0 sentinel | .agents/tmp/improve/iter-{N}/I0-review.sentinel-correctness.json | JSON | Correctness findings |
| I0 sentinel | .agents/tmp/improve/iter-{N}/I0-review.sentinel-security.json | JSON | Security findings |
| I0 sentinel | .agents/tmp/improve/iter-{N}/I0-review.sentinel-perf.json | JSON | Performance findings |
| I0 sentinel | .agents/tmp/improve/iter-{N}/I0-review.sentinel-testing.json | JSON | Test quality findings |
| I0 arbiter | .agents/tmp/improve/iter-{N}/I0-quality.json | JSON | Consolidated verdict |
| I1 fixer | .agents/tmp/improve/iter-{N}/I1-fix.json | JSON | Fix report |
The improve pipeline uses stateless direct dispatch -- the same model as the debug pipeline, fundamentally different from the swarm pipeline's hook-driven Agent Teams orchestration.
.agents/tmp/state.json. Because no state file exists, all ants hooks (check_ants_workflow()) exit 0 immediately as no-ops.npx claudepluginhub kenkenmain/ken-cc-plugins --plugin antsOrchestrates parallel agent teams for implementation, simplify/harden audits, and iterative fixes until code compiles cleanly, tests pass, and zero issues found. For multi-file features, hardening, or batch fixes.
Iterative auto-fix code review loop that runs review-fix-test cycles in isolated subagents until convergence or iteration cap. Use for thorough cleanup before release.
Orchestrates implement-analyze-fix loops: implements code, AI-reviews changes, fixes issues, repeats until clean or max iterations. For iterative development with quality checks.