dual_iterate
Generate high-quality code via an iterative generate-review-fix loop using dual AI backends. The internal process returns only the final approved code, minimizing token consumption for complex tasks.
Instructions
Dual Iterative Code Generation - Internal generate->review->fix loop using dual backends. Generator creates code, reviewer validates, generator fixes. Runs entirely within Smart AI Bridge, returning only final approved code to Claude. Massive token savings for complex generation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Code generation task description (e.g., "Write a function that validates email addresses") | |
| max_iterations | No | Maximum review iterations before accepting result (default: 3) | |
| include_history | No | Include iteration history in response (useful for debugging) | |
| quality_threshold | No | Quality threshold for accepting code (0.5-1.0) |