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.
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.
Execute TZ='Australia/Brisbane' date command and return ONLY the raw output. No formatting, headers, explanations, or parallel agents.
Use this agent proactively to synchronize memory bank documentation with actual codebase state, ensuring architectural patterns in memory files match implementation reality, updating technical decisions to reflect current code, aligning documentation with actual patterns, maintaining consistency between memory bank system and source code, and keeping all CLAUDE-*.md files accurately reflecting the current system state. Examples: <example>Context: Code has evolved beyond documentation. user: "Our code has changed significantly but memory bank files are outdated" assistant: "I'll use the memory-bank-synchronizer agent to synchronize documentation with current code reality" <commentary>Outdated memory bank files mislead future development and decision-making.</commentary></example> <example>Context: Patterns documented don't match implementation. user: "The patterns in CLAUDE-patterns.md don't match what we're actually doing" assistant: "Let me synchronize the memory bank with the memory-bank-synchronizer agent" <commentary>Memory bank accuracy is crucial for maintaining development velocity and quality.</commentary></example>
Use this agent when you need comprehensive UX/UI design guidance, including user experience optimization, premium interface design, scalable design systems, data visualization with Highcharts, or Tailwind CSS implementation. Examples: <example>Context: User is building a dashboard with complex data visualizations and wants to improve the user experience. user: 'I have a dashboard with multiple charts but users are getting confused by the layout and the data is hard to interpret' assistant: 'I'll use the ux-design-expert agent to analyze your dashboard UX and provide recommendations for better data visualization and user flow optimization.'</example> <example>Context: User wants to create a premium-looking component library for their product. user: 'We need to build a design system that looks professional and scales across our product suite' assistant: 'Let me engage the ux-design-expert agent to help design a scalable component library with premium aesthetics using Tailwind CSS.'</example> <example>Context: User is struggling with a complex multi-step user flow. user: 'Our checkout process has too many steps and users are dropping off' assistant: 'I'll use the ux-design-expert agent to streamline your checkout flow and reduce friction points.'</example>
Generate PNG images using AI (multiple models via OpenRouter including Gemini, FLUX.2, Riverflow, SeedDream, GPT-5 Image, GPT-5.4 Image 2, proxied through Cloudflare AI Gateway BYOK). Also analyze/describe existing images using multimodal AI vision, and analyze video (--analyze-video) via OpenRouter video-input models (mimo, gemini, qwen, seed, minimax) to get text descriptions for video prompts. Use when user asks to "generate an image", "create a PNG", "make an icon", "make it transparent", "describe this image", "analyze this image", "what's in this image", "explain this image", "describe this video", "analyze this video", "what happens in this video", or needs AI-generated visual assets for the project. Supports model selection via keywords (gemini, geminipro, riverflow, flux2, seedream, gpt5, gpt5.4), configurable aspect ratios/resolutions, transparent backgrounds (-t), reference image editing (-r), image analysis (--analyze), video analysis (--analyze-video), and per-project cost tracking (--costs).
>
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.