Copilot CLI v0.0.402: Agent Sessions & Plugin Hooks
Copilot CLI 0.0.402 adds agent and plan session modes to ACP server, plugin lifecycle hooks, and fixes custom agent field handling.
TL;DR
- ACP server now supports agent and plan session modes
- Plugins can hook into session lifecycle events
- Custom agents load with warnings instead of crashing on unknown fields
New
- ACP server agent and plan modes — Server now supports both agent and plan session modes, expanding execution flexibility.
- MCP configuration in ACP mode — MCP configuration now applies when running in ACP mode.
- Plugin session lifecycle hooks — Plugins can now provide hooks for session lifecycle events, enabling deeper integration.
- Environment context for subagents — Custom agents receive environment context when run as subagents.
Improved
- Agent creation wizard styling — UI improvements to the agent creation wizard for better UX.
- Plugin update command — Now works for direct plugins and properly handles Windows file locks.
Fixed
- Custom agent field handling — Custom agents with unknown fields now load with warnings instead of errors, improving robustness.
- MCP server cleanup — MCP servers are now properly stopped when uninstalling plugins.
Update with: npm install -g @github/copilot-cli@0.0.402
Source: Copilot CLI