feat(glm-4.6): Promote GLM-4.6 as default for cheap/fast tasks

- Add z-ai/glm-4.6 to OPENROUTER_MODELS and MODEL_INFO
- Update for-agents.md: GLM-4.6 for quick tasks, tests, parallel workers
- Set GLM-4.6 as default for haiku and subagent roles
- No OpenRouter key needed - direct Z.AI API

This change encourages GLM-4.6 usage for:
- Quick tasks (replaces grok-code-fast-1)
- Test validation
- Parallel sub-agents
- Any cost-sensitive operations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Alper Altun 2025-12-14 21:41:45 +00:00
parent 90cb696ac6
commit 9f4db3e154
3 changed files with 23 additions and 6 deletions

View File

@ -102,8 +102,10 @@ cat /tmp/claudish-result-abc123.md
|------|-------|-----| |------|-------|-----|
| Code review | `openai/gpt-5.1-codex` | Trained for code analysis | | Code review | `openai/gpt-5.1-codex` | Trained for code analysis |
| Architecture | `google/gemini-3-pro-preview` | Long context, good reasoning | | Architecture | `google/gemini-3-pro-preview` | Long context, good reasoning |
| Quick tasks | `x-ai/grok-code-fast-1` | Fast, cheap | | Quick tasks | `z-ai/glm-4.6` | Fast, cheap, no OpenRouter key needed |
| Parallel workers | `minimax/minimax-m2` | Cheapest, good enough | | Tests & validation | `z-ai/glm-4.6` | Good for repetitive tasks, direct Z.AI API |
| Parallel workers | `z-ai/glm-4.6` | Cheapest option via Z.AI, great for bulk work |
| Fallback workers | `minimax/minimax-m2` | Alternative cheap option via OpenRouter |
--- ---
@ -112,13 +114,21 @@ cat /tmp/claudish-result-abc123.md
Set environment variables for consistent behavior: Set environment variables for consistent behavior:
```bash ```bash
# In sub-agent environment # In sub-agent environment - GLM-4.6 recommended (no OpenRouter key needed)
export CLAUDISH_MODEL_SUBAGENT='minimax/minimax-m2' export CLAUDISH_MODEL_SUBAGENT='z-ai/glm-4.6'
export OPENROUTER_API_KEY='...' export ZAI_API_KEY='your-zai-key'
# Or use OpenRouter models (requires OPENROUTER_API_KEY)
# export CLAUDISH_MODEL_SUBAGENT='minimax/minimax-m2'
# export OPENROUTER_API_KEY='...'
``` ```
Or pass via CLI: Or pass via CLI:
```bash ```bash
# GLM-4.6 via Z.AI (recommended for cost)
claudish --model z-ai/glm-4.6 --stdin < task.md
# Or via OpenRouter
claudish --model minimax/minimax-m2 --stdin < task.md claudish --model minimax/minimax-m2 --stdin < task.md
``` ```

View File

@ -23,6 +23,12 @@ export const MODEL_INFO: Record<
priority: 2, priority: 2,
provider: "MiniMax", provider: "MiniMax",
}, },
"z-ai/glm-4.6": {
name: "Fast & cheap Chinese model",
description: "GLM-4.6 via Z.AI - ideal for quick tasks, tests, and parallel workers",
priority: 3,
provider: "Z.AI",
},
"google/gemini-2.5-flash": { "google/gemini-2.5-flash": {
name: "Advanced reasoning + vision", name: "Advanced reasoning + vision",
description: "Advanced reasoning + vision", description: "Advanced reasoning + vision",

View File

@ -57,7 +57,8 @@ const DEFAULT_CONFIG: ClaudishProfileConfig = {
models: { models: {
opus: "x-ai/grok-3-beta", opus: "x-ai/grok-3-beta",
sonnet: "x-ai/grok-code-fast-1", sonnet: "x-ai/grok-code-fast-1",
haiku: "google/gemini-2.5-flash", haiku: "z-ai/glm-4.6",
subagent: "z-ai/glm-4.6",
}, },
createdAt: new Date().toISOString(), createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(), updatedAt: new Date().toISOString(),