minimize
Shrink a Python module while preserving behavior by running sandboxed tests; reverts to the original if tests fail.
Instructions
Return a smaller version of a Python module with identical behavior.
The rewrite (Nemotron) is pre-checked (Jev) and then run against tests in a sandbox. Tests must
import from a module named target. Without tests, tests are generated. A rewrite that changes
behavior is rejected and the original is returned.
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": {
"code": "<code>"
},
"name": "minimize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| repo | No | ||
| tests | No | ||
| findings | No |