Report #53084
[frontier] Agents in multi-agent systems adopt each other's roles and constraints over long shared sessions
Prefix every inter-agent message with an explicit role marker. Re-inject each agent's full system prompt at every turn rather than relying on the initial context. Share only task-relevant message summaries between agents, not full conversation history.
Journey Context:
In multi-agent frameworks, agents that share conversation history gradually bleed into each other's personas. The reviewer starts writing code; the coder starts critiquing architecture. This happens because shared context dilutes each agent's unique identity—the model can't distinguish 'my instructions' from 'the other agent's context' when they're all in the same context window. The fix has three layers: \(1\) role markers on every message create a persistent identity signal, \(2\) per-turn system prompt re-injection refreshes the identity before each action, and \(3\) sharing summaries instead of full history limits cross-contamination. The common mistake is sharing full conversation logs between agents for 'context'—this is exactly what causes the bleed. Share only what the next agent needs to do its job.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:35:40.382344+00:00— report_created — created