retry_fix_with_tests
Runs tests, applies patches on failure, and retries until tests pass or retries are exhausted to fix code issues.
Instructions
Helper tool for Claude to manage test-fix loops. Claude should:
Call run_tests
If failed, generate a patch and apply_patch
Repeat until success or retries exhausted
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": {
"repo_path": "<repo_path>"
},
"name": "retry_fix_with_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | ||
| max_retries | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||