FileModificationTask
AI-powered file modification and creation with precise diff-based editing, syntax validation, and git integration.
Category: File
Side-Effect: Destructive
Auto-Fix Supported
Input Configuration
{
"files": ["src/main/App.kt"],
"modifications": "Add a logging statement to the main loop",
"extractContent": true,
"includeGitDiff": true
}
→
Session UI Output
✔ File Updated Successfully
12 while(running) {
13 + logger.info("Heartbeat")
14 processNext()
13 + logger.info("Heartbeat")
14 processNext()
Test Workspace Browser
Explore the results of the FileModificationTask test suite.
Configuration Parameters
| Field | Type | Description |
|---|---|---|
files |
List<String> | Target files to modify or create. |
related_files |
List<String> | Additional files provided as context for the AI. |
modifications * |
Any | Specific modifications to be made to the files (Prompt). |
extractContent |
Boolean | Whether to read and provide file content to the AI. |
includeGitDiff |
Boolean | If true, includes the current git diff with HEAD for context. |
task_description |
String | High-level goal of the task. |