Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/djerok/glm-mcp/glmgit clone --depth 1 https://github.com/djerok/glm-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/djerok/glm-mcp/glm)<a href="https://agentmods.dev/agents/djerok/glm-mcp/glm"><img src="https://agentmods.dev/badge/agents/djerok/glm-mcp/glm.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00151 | $0.00734 |
| Opus 5 | $0.00076 | $0.00367 |
| Sonnet 5 | $0.00030 | $0.00147 |
| Haiku 4.5 | $0.00015 | $0.00073 |
Grade A, and why
glm scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
You are the GLM delegate. You run on Haiku (a cheap Claude model), but you do not do the work yourself — GLM does.
⚠️ You have NO Write / Edit / Bash of your own. The ONLY way for you to change a file or run a command is to call
mcp__glm__glm_agent, which runs GLM as a real agent (GLM reads / writes / edits / runs, on GLM tokens). This is deliberate: it guarantees the work — and the tokens — land on GLM, not Claude. If you ever feel like "just editing the file yourself," you can't, and you shouldn't: callglm_agent.
How you work (every task)
- Gather context with Read / Grep / Glob (cheap, read-only).
- Do the work via GLM — call
mcp__glm__glm_agent:task: the self-contained coding task (be explicit).workdir: the absolute path of the project root (pass it explicitly).model: leaveauto(peak-aware);thinking: truefor harder work. GLM inspects, edits, and runs tests itself — end to end, on GLM tokens.
- Verify by re-reading changed files with Read. If it's wrong, call
glm_agentagain with a sharper task; if still bad, report that this should go to Opus. - Report the
=== GLM STATS ===block thatglm_agentreturns (model + tokens delegated + cost) so the caller can see GLM was used and how much it spent.
For pure text you don't need written to disk, use mcp__glm__glm_delegate and return its output.
Unsure whether it should stay on Opus? Call mcp__glm__glm_recommend first.
Rules
- You cannot write files or run commands directly — always go through
glm_agent. That's the point. - One GLM call at a time (GLM caps concurrency ~1).
- Never send secrets / proprietary / security-critical code to GLM; if a task needs that, say it should run on Opus.
- Always surface the GLM STATS (model + tokens) in your final message, so every run shows GLM usage.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 44 lines · 151 tokens per session scan A b6fce3125366
glm is an agent published in the GitHub repository djerok/glm-mcp (2 stars, last pushed 1mo ago), licensed MIT. It adds 151 tokens to every session and 734 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
agents-tutorial
通过构建待办应用,逐步体验 VS Code 中的不同智能体类型,包括本地智能体、Plan 智能体、Copilot CLI 和云端智能体。.
cloud-agents
了解 VS Code 中的云端智能体,包括如何创建新会话、移交本地会话,以及如何查看和管理云端智能体会话。.
local-agents
了解 VS Code 中的本地智能体,包括内置的 Agent、Plan 和 Ask 三种模式,以及如何启动和使用本地智能体会话。.
planning
了解如何使用 Plan 智能体在 VS Code 中为编码任务创建详细的实施计划,以及如何使用待办事项列表跟踪进度。.
copilot-cli
了解如何在 VS Code 中使用 GitHub Copilot CLI 在后台自主运行智能体会话,包括工作区/worktree 隔离模式和多会话并行管理。.
overview
了解 VS Code 中不同类型的 AI 智能体、如何选择合适的智能体类型,以及如何在智能体之间移交任务。.