plan_turn
Routes new tasks by combining search and session history to return insertion targets, scaffold hints, and recommended next tools. Call this first to prevent empty-result hallucinations.
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. Read-only. For broader task context with source code use get_task_context instead. Returns JSON: { verdict, confidence, targets, scaffoldHints, nextSteps }.
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) |