Expand description
Phase 4 EXECUTE mode — focused edit execution with minimal context.
When the model outputs a plan with edit instructions, the agent loop switches to EXECUTE mode: each instruction is executed in isolation with only the target file + instruction in context. This prevents context noise from degrading edit precision.
Structs§
- Edit
Instruction - A parsed edit instruction from REASON mode output.
Functions§
- execute_
instructions - Execute a list of edit instructions in EXECUTE mode. Each instruction runs in isolation: fresh file read + minimal context. Returns a summary of results.
- parse_
edit_ instructions - Parse EDIT INSTRUCTIONS from a REASON mode response. Looks for patterns like: