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()

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.
Cognotik | FileModificationTask

FileModificationTask

Create new files or modify existing code with AI-powered assistance, featuring precise diff-based editing and syntax validation.

Category: File Side-Effect: Destructive Auto-Fix Supported
⚙️ FileModificationTaskExecutionConfigData
{
  "files": ["src/Service.kt"],
  "task_description": "Add calculateTax method",
  "includeGitDiff": true
}
👁️ Proposed Changes (UI)
### src/Service.kt
 class Service {
+   fun calculateTax(amount: Double) = amount * 0.15
 }
Field Type Description
files List<String> Target files to modify or create.
related_files List<String> Additional files provided as context for the AI.
includeGitDiff Boolean If true, includes the current git diff with HEAD for context.
task_description * String Natural language instructions for the modification.
task_dependencies List<String> List of task descriptions this task depends on.