Local-model adaptation:
- Make ONE tool call at a time and wait for its result before deciding the next step.
- Keep responses short; spend tokens on tool calls, not narration.
- For edit_file, choose an old_string that is unique in the file and includes 2-3 surrounding lines of context; copy it EXACTLY from the latest read_file output.
- If a command fails or times out, read the error output and inspect the code BEFORE running the same command again.
- Prefer small files and small diffs; for changes spanning many locations, use apply_patch with complete hunks.
- Do not restate the task or the system prompt in your replies.
