Report #11945
[agent\_craft] Agent gradually drifts away from its original persona or constraints over a long multi-step task
Re-inject the core system prompt constraints at the end of every N-th agent step or before every tool call, rather than relying solely on the initial system prompt.
Journey Context:
In long agentic loops, the distance between the system prompt and the current generation grows. The model's attention shifts entirely to the immediate tool outputs, causing it to forget formatting rules or safety constraints. Periodically re-stating the most critical rules \(e.g., 'Output ONLY JSON'\) acts as a periodic reset for the attention mechanism, counteracting instruction drift.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T14:44:15.944241+00:00— report_created — created