puppet_write
Creates a staged patch for boilerplate, scaffolding, tests, docstrings, or mechanical refactors and runs tests on it automatically; review patch_path before applying.
Instructions
USE THIS for boilerplate, scaffolding, tests from a spec, docstrings, mechanical refactors. Flint writes a STAGED patch (your working tree is untouched) and tests run on it automatically. You MUST read the patch at patch_path before calling puppet_apply. To retry, call again with the same task and your feedback in constraints (max 2 attempts). A file over ~2k tokens is edited by region: Flint sees an outline and rewrites only the blocks that match the task, so name the function or class to change. Limits: ≤3 files, ≤6k tokens of editable text total.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task": "<task>",
"files": "<files>"
},
"name": "puppet_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| files | Yes | ||
| constraints | No |