Fix loop
fix_loopRuns a controlled verify-analyze-fix loop that repeats project checks, applies corrective edits on failure (when allowed), and rechecks until passing or the maximum iterations are reached.
Instructions
Run a controlled verify→analyze→fix loop. Each iteration runs the project checks; on failure it analyzes errors and, when the client supports MCP sampling, requests corrective edits and applies them (if allowApply=true), then re-checks — up to maxIterations. Every action taken is reported. When sampling is unavailable it returns a precise advisory so the calling assistant can drive the loop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checks | No | Checks to run each iteration. Defaults to all available. | |
| timeoutMs | No | ||
| allowApply | No | Apply corrective patches for real. If false, patches are only proposed. | |
| projectPath | Yes | Absolute path to the project root. | |
| maxIterations | No | ||
| taskDescription | Yes | What to accomplish / keep green. | |
| stopOnFirstSuccess | No |