generate_patch
Generate a validated unified diff for code changes. Specify files to modify, constraints, and test failures to guide patch creation.
Instructions
Generate a validated candidate unified diff; this tool never edits the repository.
Use deepseek-v4-pro for complex work and deepseek-v4-flash for routine changes. file_context should label each supplied file with its repository-relative path. allowed_paths is the exact list of files the returned patch may add, edit, or delete. On a repair round, send current file contents plus exact test/build failures.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| model | No | deepseek-v4-pro | |
| constraints | No | ||
| file_context | Yes | ||
| allowed_paths | Yes | ||
| test_failures | No |