local_edit
Delegate mechanical code edits, such as renames or docstrings, to a local model that applies them and returns only a compact receipt, rolling back changes that fail the project gate.
Instructions
Delegate a MECHANICAL code edit to the local model. USE THIS INSTEAD OF Read+Edit whenever the change is well-specified and does not need cross-file reasoning: renames, docstrings and comments, type annotations, adding a logging line, applying a pattern you already decided on, boilerplate, test scaffolding, formatting fixes.
Do NOT read the files first -- that spends the tokens this tool exists to save.
Pass file paths inside instruction and let the local model read them.
The edit is applied to the working tree only if it passes the project's verification gate; otherwise it is rolled back and you get an ESCALATE.
Args: workspace_root: Absolute path to the repository root. instruction: Self-contained task, naming the exact files and the exact change. The local model sees nothing else -- no conversation history. tier: "fast" for mechanical/high-volume work, "deep" for edits needing real code reasoning (slower, larger model).
Returns: A receipt: files changed with line counts, gate verdict, timing. Never file content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | No | fast | |
| instruction | Yes | ||
| workspace_root | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |