glm-mcp-copilot v1.2.0 — GLM subagent for Copilot
Near-parity with the Claude Code edition. Copilot has custom agents (subagents) after all, so this release adds one.
New
GLMcustom agent (subagent) — restricted to theglmMCP tools (tools: ['glm/*']), the Copilot analog of the Claudeglmsubagent. It can't edit/run files itself, so it must route all work through GLM — keeping the work and the tokens on GLM (~10× cheaper). Invoke it from the chat mode dropdown or via an agent handoff..instructions.mddelegation policy (applyTo: '**') using the current instructions mechanism — not the deprecatedcodeGeneration.instructionsarray.- Installer now sets up the custom agent + instructions in both workspace (
.github/agents/,.github/copilot-instructions.md) and--global(~/.copilot/agents/,~/.copilot/instructions/) modes, and registerschat.agentFilesLocations/chat.instructionsFilesLocations/chat.agent.enabledin VS Code user settings (migrating off the deprecated setting).
Same server
The GLM agent loop, peak-aware model picks, cost bias, token-cap toggle, usage ledger, and dry_run oversight are the same server as the Claude edition — identical behavior once a tool runs. The only thing Copilot lacks is Claude Code's PreToolUse hook (auto-routing), so delegation is driven by the subagent + instructions.
Install
```bash
npx glm-mcp-copilot --key YOUR_ZAI_KEY # this workspace
npx glm-mcp-copilot --global --key YOUR_ZAI_KEY # all workspaces
```