replan
Regenerate a goal's sub-task DAG and adjust intentions when execution blockers or environment shifts occur, rather than creating new goals; returns new subgoals and invalidated intentions.
Instructions
Regenerate sub-task DAG and adjust intentions upon unexpected obstacles or state changes (actions: blocker, event, full). Use replan instead of set_goal when recovering from execution blockers or environment shifts rather than creating new goals.
Returns replanned goal DAG, invalidated intentions, and newly synthesized subgoals.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"goal_id": "<goal_id>"
},
"name": "replan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Replanning trigger type: blocker, event, full | |
| goal_id | Yes | ID of goal to replan | |
| project | No | Target project slug | |
| trigger_event | No | Event description triggering replanning | |
| preserve_completed | No | Whether to preserve already completed subgoals | |
| blocker_description | No | Description of the obstacle or blocker encountered |