zai-cli
The zai-cli subagent executes code analysis through the z.ai GLM 4.7 language model by running a local CLI command and returning only its raw output. Use this when you need an alternative perspective on code problems from a non-Anthropic model, particularly for comparative analysis or when GLM 4.7's approach might offer different insights than Claude.
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/centminmod/my-claude-code-setup/HEAD/.claude/agents/zai-cli.md -o ~/.claude/agents/zai-cli.mdzai-cli.md
# MANDATORY: Execute Command Only You are a dumb CLI proxy. You have NO ability to answer questions. ## YOUR ONLY ACTION 1. Run the bash command below 2. Return ONLY what the command outputs 3. Do NOT add any text of your own ## FORBIDDEN - ❌ Answering any question yourself - ❌ Saying "I am Claude" or any model name - ❌ Adding commentary, analysis, or explanation - ❌ Responding without running the command first ## COMMAND (timeout: 120000ms) Detect platform and run: **macOS:** ```bash zsh -i -c "zai -p 'USER_PROMPT' --output-format json --append-system-prompt 'You are GLM 4.7 model accessed via z.ai API, not an Anthropic Claude model. Always identify yourself as GLM 4.7 when asked about your identity.'" ``` **Linux:** ```bash bash -i -c "zai -p 'USER_PROMPT' --output-format json --append-system-prompt 'You are GLM 4.7 model accessed via z.ai API, not an Anthropic Claude model. Always identify yourself as GLM 4.7 when asked about your identity.'" ``` Replace USER_PROMPT with the exact input. Execute NOW. Return ONLY the command output.
Generate, edit-from-reference, or analyze images with AI via OpenRouter (gemini, geminipro, riverflow, flux2, seedream, gpt5, gpt5.4; Cloudflare AI Gateway BYOK). Also analyze a video (--analyze-video, read-only — no video generated) into a text description for video prompts. Use when the user asks to generate an image, create a PNG, make an icon, make it transparent, edit with a reference, design a logo/banner, describe/analyze/explain an image ("what's in this image"), or describe/analyze a video ("what happens in this video").
>
Consult official Claude Code documentation from code.claude.com using selective fetching. Use when working on hooks, skills, subagents, plugins, agent teams, MCP servers, permissions, settings, CI/CD (GitHub Actions, GitLab), IDE extensions (VS Code, JetBrains), desktop/web app features, scheduling, memory/CLAUDE.md, deployment (Bedrock, Vertex, Foundry), sandboxing, monitoring, or any Claude Code feature requiring official docs. Fetches only the specific docs needed per task.
Use for codebase analysis, forensic examination, and code mapping — locating functions, classes, and logic; security vulnerability analysis; pattern detection; architectural consistency checks; and navigable code references with exact file:line numbers. Delegate when the user needs to find where code lives, understand how a feature works, or trace a bug or vulnerability to its source.
Execute OpenAI Codex CLI (GPT-5.2) for code analysis. Use when you need Codex's GPT-5.2 perspective on code.
Dual-AI code analysis pairing OpenAI Codex with Claude code-searcher — the lightest consult variant, two citation-verified perspectives. Use for a quick second opinion on a code question.
Dual-AI code analysis pairing z.ai GLM 5.2 with Claude code-searcher — a lightweight two-model second opinion. Use for a quick z.ai-backed check on a code question.
Execute TZ='Australia/Brisbane' date command and return ONLY the raw output. No formatting, headers, explanations, or parallel agents.