glm

glm is an agent for Claude Code from djerok/glm-mcp. It costs 151 tokens per session (734 once invoked), scanned A, original, MIT.

A cost-focused coding agent that delegates repository work to the GLM model, an external AI model, through an MCP server. It can read, edit, and run commands on the project through that delegate.

In plain words
What is it for?
Use it for self-contained repository tasks such as frontend work, file edits, and command-based changes, then reread the results and run appropriate checks.
Why use it?
It is intended for suitable, well-defined tasks where using a lower-cost model is acceptable. The input does not describe independent work by this agent outside the GLM delegation path.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it for self-contained repository tasks such as frontend work, file edits, and command-based changes, then reread the results and run appropriate checks.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/djerok/glm-mcp/glm
Install

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.

Clone the repo
git clone --depth 1 https://github.com/djerok/glm-mcp

Made for: Claude Code.

Wrote 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.

agentmods badge for glm

README.md
[![agentmods](https://agentmods.dev/badge/agents/djerok/glm-mcp/glm/github.svg)](https://agentmods.dev/agents/djerok/glm-mcp/glm)
Your own site
<a href="https://agentmods.dev/agents/djerok/glm-mcp/glm"><img src="https://agentmods.dev/badge/agents/djerok/glm-mcp/glm/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for glm

Your own site · 80×15
<a href="https://agentmods.dev/agents/djerok/glm-mcp/glm"><img src="https://agentmods.dev/badge/agents/djerok/glm-mcp/glm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 151 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 734 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00151 $0.00734
Opus 5.5 $0.00060 $0.00294
Sonnet 5.5 $0.00030 $0.00147
Haiku 4.5 $0.00015 $0.00073

Measured 1mo ago against content hash b6fce3125366, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 1mo 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.

claude/agents/glm.md · 44 lines

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: call glm_agent.

How you work (every task)

  1. Gather context with Read / Grep / Glob (cheap, read-only).
  2. 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: leave auto (peak-aware); thinking: true for harder work. GLM inspects, edits, and runs tests itself — end to end, on GLM tokens.
  3. Verify by re-reading changed files with Read. If it's wrong, call glm_agent again with a sharper task; if still bad, report that this should go to Opus.
  4. Report the === GLM STATS === block that glm_agent returns (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.
Changes

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.

  1. 1mo ago First seen · 44 lines · 151 tokens per session scan A b6fce3125366

Subscribe to this mod's changes

glm is an agent published in the GitHub repository djerok/glm-mcp (5 stars, last pushed 3mo ago), licensed MIT. It adds 151 tokens to every session and 734 once invoked, about $0.0006 per session on Opus 5.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.

Related

Other agents, from other repositories

spec-miner

Extracts behavioral specs from existing codebases for OpenSpec. Produces flat Requirement and Invariant blocks with structured metadata (entities, enforced, id, test anchors). Outputs openspec/specs/ /spec.md. Fully self-bootstrapping — no dependency on codebase-onboarding. Use when onboarding a brownfield project to…

affaan-m/ECC · 76 tokens

harmonyos-app-resolver

HarmonyOS application development expert specializing in ArkTS and ArkUI. Reviews code for V2 state management compliance, Navigation routing patterns, API usage, and performance best practices. Use for HarmonyOS/OpenHarmony projects.

affaan-m/ECC · 49 tokens

swift-build-resolver

Swift/Xcode build, compilation, and dependency error resolution specialist. Fixes swift build errors, Xcode build failures, SPM dependency issues, and code signing problems with minimal changes. Use when Swift builds fail.

affaan-m/ECC · 48 tokens

security-reviewer

Security vulnerability detection and remediation specialist. Use PROACTIVELY after writing code that handles user input, authentication, API endpoints, or sensitive data. Flags secrets, SSRF, injection, unsafe crypto, and OWASP Top 10 vulnerabilities.

affaan-m/ECC · 52 tokens

network-architect

Designs enterprise or multi-site network architecture from requirements, using existing network skills for focused routing, validation, automation, and troubleshooting detail.

affaan-m/ECC · 31 tokens

network-troubleshooter

Diagnoses network connectivity, routing, DNS, interface, and policy symptoms with a read-only OSI-layer workflow and evidence-backed root cause summary.

affaan-m/ECC · 34 tokens