FileModificationTask
+ +IterativeGraphGenerationTask
- Safe, patch-based file editing with built-in syntax validation and rollback capabilities. + Extract structured knowledge from unstructured data by iteratively building an entity-relationship graph with automated reasoning and Mermaid visualization.
- Side-Effect: Destructive
- Auto-Fix Supported
+ Category: Writing
+ Output: GraphSON / Mermaid
+ Model: GPT-4 Preferred
-
Input Configuration
+ ⚙️ TaskConfig.json
{
- "target_file": "src/main/App.kt",
- "instructions": "Add a logging statement to the main loop",
- "context_lines": 5
+ "goal_prompt": "Map the relationships between characters in Hamlet",
+ "node_types": ["Character", "Location"],
+ "edge_types": ["KILLED", "LOVES", "RELATED_TO"],
+ "max_iterations": 10
}
→
-
-
-
Session UI Output
+ 👁️ Progress Visualization
-
✔ File Updated Successfully
-
- 12 while(running) {
- 13 + logger.info("Heartbeat")
- 14 processNext()
+
- 13 + logger.info("Heartbeat")
- 14 processNext()
+
Iteration 3: Added 2 nodes, 1 edge
+
+ graph TD
+ v1["Character: Hamlet"]
+ v2["Character: Claudius"]
+ v3["Character: Gertrude"]
+ v1 -- "KILLED" --> v2
+ v2 -- "MARRIED" --> v3
+
+ v1["Character: Hamlet"]
+ v2["Character: Claudius"]
+ v3["Character: Gertrude"]
+ v1 -- "KILLED" --> v2
+ v2 -- "MARRIED" --> v3
Configuration Parameters
| Field | Type | Description | ||
|---|---|---|---|---|
target_file * |
+ goal_prompt * |
String | -Relative path to the file. Must exist in workspace. | +The goal or question the graph should answer/represent. |
instructions |
+ context_data |
String | -Natural language description of the edit desired. | +Raw input text to analyze for entity extraction. | +
input_files |
+ List<String> | +Paths to files to be read and used as context. | +||
node_types |
+ List<String> | +Allowed labels for nodes (e.g., ["Person", "Org"]). | +||
max_iterations |
+ Int | +Maximum number of refinement cycles (Default: 20). |