github / github/copilot-cli

Clear the context after handoff to other agents

Open
#1,180 0 comments 4 reactions 0 assignees View on GitHub
area:agents area:context-memory
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.