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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| repo | No | ||
| tests | No | ||
| findings | No |