autocode_turn
Advance an autocoding loop by executing one step: generate implementation prompts as player, verify with coach prompts, or advance state after approval.
Instructions
Execute one step in the autocoding loop. role=player: generate implementation prompt (advances state to coach). role=coach: generate verification prompt. role=advance: advance state after coach review.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory for backend execution. Defaults to the MCP server process cwd. | |
| role | Yes | Which step to execute: player, coach, or advance | |
| state | Yes | AutocodingState dict from previous step | |
| backend | No | Execution backend for role=player or role=coach. auto prefers Codex MCP, then CLI, then prompt-only fallback. | auto |
| execute | No | If true for role=player or role=coach, execute the returned prompt through the selected backend. | |
| approved | No | Whether coach approved (required for role=advance) | |
| coach_feedback | No | Coach feedback text (required for role=advance) | |
| timeout_seconds | No | Timeout (seconds) for backend execution when execute=true (default: 120) |