MultiAgentContextManager provides per-agent context isolation with controlled sharing policies for multi-agent workflows.
Quick Start
Architecture
Context Policy
Share Modes
| Mode | Description | Use Case |
|---|---|---|
NONE | No context shared | Independent agents |
SUMMARY | Summarized context | Reduce token usage |
FULL | Full context (bounded) | Continuity needed |
Tool Share Modes
| Mode | Description |
|---|---|
NONE | No tools shared |
SAFE | Only safe tools shared |
FULL | All tools shared |
Policy Configuration
Handoff Preparation
Per-Agent Isolation
Each agent has isolated:- Token budget
- Conversation history
- Optimization state
- Monitoring output
Preventing Context Blow-up
Default policies prevent multiplicative context growth:Integration with Workflow
CLI Usage
Best Practices
- Default to isolation - Only share when necessary
- Use summaries - Full context sharing is expensive
- Set token limits - Always bound shared context
- Protect recent turns - Keep last few turns for continuity
- Monitor per-agent - Track each agent’s usage separately

