Report #73510
[frontier] Long-lived agent instances accumulating context bloat, instruction drift, and unpredictable behavior over extended sessions
Spawn ephemeral task-scoped agents for individual operations: inject only the relevant context from an external memory store, let the agent complete its task, return structured results, and terminate. The orchestrator persists; workers are disposable.
Journey Context:
Long-lived agents seem appealing \(continuity, 'knowing' the user\) but accumulate cruft: stale tool results, contradictory instructions from evolving user intent, and context that drifts from the original system prompt. The emerging pattern — visible in OpenAI's Swarm and production agent architectures — is ephemeral workers. Each task gets a fresh agent with a clean context window containing only what's needed: the system prompt, task description, relevant memory, and required tools. The agent executes, returns a structured result, and dies. Benefits: predictable behavior \(same inputs → same outputs\), easier testing \(mock the worker\), lower cost \(smaller context per invocation\), and natural parallelism \(spawn multiple workers for independent subtasks\). The orchestrator maintains session continuity and memory; workers are stateless and interchangeable.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T05:58:41.871737+00:00— report_created — created