plan_turn
Analyzes new coding tasks to identify existing solutions, suggest implementation targets, and recommend next steps using search algorithms and framework-aware intelligence.
Instructions
Opening-move router for new tasks. Combines BM25/PageRank search + session journal (negative evidence + focus signals) + framework-aware insertion-point suggestions + change-risk + turn-budget advisor into ONE call. Returns verdict (exists/partial/missing/ambiguous), confidence, ranked targets with provenance, scaffold hints when missing, and recommended next tool calls. Call this FIRST on a new task to break the empty-result hallucination chain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Natural-language task description (e.g. "add a webhook endpoint for stripe payments") | |
| intent | No | Optional intent hint; auto-classified from task if omitted | |
| max_targets | No | Cap on returned targets (default 5) | |
| skip_risk | No | Skip change-risk assessment for the top target (default false) |