Run a GLM sub-agent
glm_agentDelegate a self-contained coding task to a GLM sub-agent that works in a specified project folder and returns only a summary and changed files, saving Claude tokens.
Instructions
Delegate a self-contained coding task to a GLM sub-agent (use when the user asks for GLM or glm_agent, or wants to save Claude tokens). GLM works inside workdir with its own read/write/edit/list/bash tools and returns a summary plus the list of changed files. Give a complete task description (goal, constraints, how to verify); GLM does not see this conversation. workdir must be an absolute path. File tools cannot leave workdir; bash is not sandboxed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Complete, self-contained task for the sub-agent. | |
| model | No | GLM model id. Default glm-5.3. Coding Plan models: glm-5.3, glm-5.3-flash. | |
| context | No | Optional extra background or constraints. | |
| workdir | Yes | Absolute path of the directory GLM works in. |