Skip to content

glm-mcp-copilot v1.2.0 — GLM subagent for Copilot

Choose a tag to compare

@djerok djerok released this 02 Jul 15:10

Near-parity with the Claude Code edition. Copilot has custom agents (subagents) after all, so this release adds one.

New

  • GLM custom agent (subagent) — restricted to the glm MCP tools (tools: ['glm/*']), the Copilot analog of the Claude glm subagent. 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.md delegation policy (applyTo: '**') using the current instructions mechanism — not the deprecated codeGeneration.instructions array.
  • 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 registers chat.agentFilesLocations / chat.instructionsFilesLocations / chat.agent.enabled in 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
```

npm: https://www.npmjs.com/package/glm-mcp-copilot