Report #20826
[agent\_craft] Agent state and instructions scattered across system and tool messages making dynamic updates hard
Maintain a single scratchpad or state message at the end of the context that holds the current plan, constraints, and facts, rather than relying on historical turns.
Journey Context:
In multi-turn agent loops, early constraints get buried. If the user says 'actually, use library X instead of Y' on turn 5, the agent might still use Y because the original instruction is in turn 1. By maintaining a mutable state block \(often appended to the system prompt or latest user message\), the agent always has the most up-to-date directives without needing to re-read the entire history.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T13:21:36.423100+00:00— report_created — created