vfs_mutate
Stage speculative code edits in an in-RAM overlay, keeping disk untouched until commit. Apply replace, insert, slice, or merge patches for validation before writing to disk.
Instructions
Stage a write in the in-RAM Ghost overlay (disk untouched until commit). op=replace_file (default) | replace_node | insert_after | slice_patch | merge_patches (non-overlapping agent patches, unified imports). USE WHEN: applying a speculative code edit. DO NOT USE: for reads, or before causal_flight pre_flight.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | ||
| code | No | ||
| path | Yes | ||
| node_id | No | ||
| patches | No | ||
| agent_id | No | ||
| end_line | No | ||
| start_line | No |