Skip to content

Clear the context after handoff to other agents #1180

@maxakak1998

Description

@maxakak1998

Describe the feature or problem you'd like to solve

Agent A has handoff:true for the Agent B. After the Agent A completes the task, the context window is nearly full. It leads to the agent B won't have enough context window to properly do the task.

Proposed solution

Should compact the conversation and give the next agent a clear context window

Example prompts or workflows

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agentsSub-agents, fleet, autopilot, plan mode, background agents, and custom agentsarea:context-memoryContext window, memory, compaction, checkpoints, and instruction loading
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions