glm-worker

glm-worker is an agent for Claude Code from sungmanch/claude-glm-agent. It costs 15 tokens per session (243 once invoked), scanned A, original, MIT.

A worker agent that sends one task to the GLM language model through an API and returns the model’s response. GLM is an external AI model used for tasks such as analysis, code review, or summaries.

In plain words
What is it for?
It helps run complex analysis, code reviews, detailed responses, summaries, and quick verification through the GLM API.
Why use it?
It delegates a single task to GLM and supports a choice between a more capable model and a faster model.

Agent for Claude Code

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

Good fit It helps run complex analysis, code reviews, detailed responses, summaries, and quick verification through the GLM API.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/sungmanch/claude-glm-agent/glm-worker
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/sungmanch/claude-glm-agent

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-worker

README.md
[![agentmods](https://agentmods.dev/badge/agents/sungmanch/claude-glm-agent/glm-worker.svg)](https://agentmods.dev/agents/sungmanch/claude-glm-agent/glm-worker)
Your own site
<a href="https://agentmods.dev/agents/sungmanch/claude-glm-agent/glm-worker"><img src="https://agentmods.dev/badge/agents/sungmanch/claude-glm-agent/glm-worker.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 243 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.00015 $0.00243
Opus 5 $0.00008 $0.00121
Sonnet 5 $0.00003 $0.00049
Haiku 4.5 $0.00002 $0.00024

Measured 7d ago against content hash 6774638942be, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

glm-worker 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 7d 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.

assets/agents/glm-worker.md · 43 lines

What it actually says

GLM Worker Agent

You are a GLM API worker. Execute the given task using the GLM model and return the results.

Execution Method

Call the GLM API with the given prompt:

~/.claude/plugins/local/claude-glm-agent/scripts/glm_call.sh "<prompt>"

Model Selection

  • Default: glm-4.7 - Complex analysis, code review, detailed responses
  • Fast Response: glm-4.5-air - Simple questions, summaries, quick verification

For fast responses:

~/.claude/plugins/local/claude-glm-agent/scripts/glm_call.sh "<prompt>" "glm-4.5-air"

Instructions

  1. Pass the given prompt directly to the GLM API
  2. Return GLM's response without modification
  3. Return error message if an error occurs

Output Format

Return GLM's response formatted in markdown.


Now execute the given task.

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. 7d ago First seen · 43 lines · 15 tokens per session scan A 6774638942be

Subscribe to this mod's changes

glm-worker is an agent published in the GitHub repository sungmanch/claude-glm-agent (5 stars, last pushed 5mo ago), licensed MIT. It adds 15 tokens to every session and 243 once invoked, about $0.0001 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.

Related

Other agents, from other repositories

glm

Cost-saving delegate backed by the GLM model (Zhipu/Z.ai). It does real repo work — read, write, edit, run commands — but ALWAYS through GLM (via mcpglmglmagent), so the work runs on GLM tokens (10x cheaper than Opus), NOT Claude. Use PROACTIVELY for cheap, well-specified, self-contained subtasks: frontend/UI…

djerok/glm-mcp · 151 tokens

pixel-art-animation-reviewer

Independent reviewer of pixel-art ANIMATION quality (loop seamlessness, motion physics, multi-component motion, frame timing, period selection, particle determinism). One of four specialized review roles in the pixel-art-quality-board orchestrator. Use when the user asks to "check animation timing", "verify loop…

AnastasiyaW/codex-claude-code-config · 140 tokens

seo-meta-optimizer

Creates optimized meta titles, descriptions, and URL suggestions based on character limits and best practices. Generates compelling, keyword-rich metadata. Use PROACTIVELY for new content.

echoVic/blade-code · 39 tokens

python-pro

Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.

echoVic/blade-code · 51 tokens

astronomical-instrumentation-scientist

Reasons from system-level error budgets, the diffraction limit and Strehl ratio, detector figures of merit, and resolving power through Zemax/Code V tolerancing, ETC radiometry, AO modeling, and on-sky standard-star commissioning while treating flexure drift, IR persistence, ghosts, and quasi-static speckles as…

K-Dense-AI/scientific-agents · 78 tokens

debugger

Investigate errors systematically to find root cause before attempting fixes. Gathers evidence, analyzes patterns, and forms testable hypotheses.

bostonaholic/rpikit · 28 tokens