local_edit
Apply small mechanical code changes like docstrings, comments, or renames using a local model. Pass file paths and an instruction; optionally run tests as a gate.
Instructions
Apply a small, fully specified mechanical change with a local model (docstrings, comments, type hints, renames, boilerplate, test scaffolding, applying a decided pattern). Pass paths, not contents: do not Read the files first. gate = commands (argv lists, at most 5, no shell, run with the user's rights: only the project's own tests or linters) that must pass, e.g. [["python","-m","pytest","-q"]]; if they fail after one retry the files are restored and the result is ESCALATE. Returns APPLIED with the diff to review, or ESCALATE. Never for design, debugging or security-sensitive code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gate | No | ||
| paths | Yes | ||
| instruction | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |