dual_iterate
Generate code by iteratively reviewing and fixing with dual backends, returning only the final approved version to reduce token usage.
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) |