- Added guided mode support with --guided and --no-guided command-line options to enable contextual editing hints. - Added --max-attempts option (default: 2, range: 1-5) to enable retry logic for failed benchmark tasks. - Added --require-read-tool-call option to enforce read tool invocation before edit operations. - Implemented retry mechanism in task runner that re-attempts failed tasks up to maxAttempts with guided context on subsequent attempts. - Extended TaskMetadata to capture file location details including filePath, fileName, lineNumber, originalSnippet, and mutatedSnippet. - Changed success metric from patchApplied to editSucceeded to better reflect successful edit tool invocations.
682 B
682 B
You are working in a repository with {{#if multiFile}}multiple unrelated files{{else}}a single edit task{{/if}}.
{{task_prompt}}
{{#if guided_context}}
Guided fix (authoritative)
{{guided_context}} {{/if}}
{{#if retry_context}}
Retry context
{{retry_context}} {{/if}}
Important constraints
- Make the minimum change necessary. Do not refactor, improve, or "clean up" other code.
- If you see multiple similar patterns, only change the ONE that is buggy.
- Preserve exact code structure. Do not rearrange statements or change formatting. {{#if multiFile}}- Only modify the file(s) referenced by this request. Leave all other files unchanged. {{/if}}
{{instructions}}