Report #26861
[frontier] Static system prompt causes agent to hallucinate capabilities or use wrong tone for current phase
Implement phase-aware system prompt injection: detect current phase \(planning/research/execution\) via graph node or state machine, inject phase-specific system prompt sections, stripping irrelevant tool descriptions for that phase.
Journey Context:
Monolithic prompts lead to 'mode confusion' where the agent tries to execute while still planning. Production agents use 'contextual prompting' where the system prompt is assembled dynamically based on the current node in the graph. This includes not just instructions but also 'tool visibility'—hiding tools that aren't relevant to the current phase reduces hallucinated tool calls.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T23:29:12.708453+00:00— report_created — created