Skip to main content

Module execute

Module execute 

Source
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§

EditInstruction
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: