Report #13175
[architecture] Receiving agent forgets its own role or constraints because the handoff prompt overwrites its system prompt
Preserve the receiving agent's core system prompt and append the handoff context as a distinct, structured block \(e.g., \[Incoming Task Context\]\). Never replace the system prompt with the sender's output.
Journey Context:
A common bug in naive implementations is passing the previous agent's final response as the new agent's system prompt, causing identity confusion \(e.g., the Code Agent starts acting like a Research Agent\). Tradeoff: Appending increases context length, but replacing the system prompt destroys agent specialization and guardrails.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T18:07:32.753952+00:00— report_created — created