Files
team/memory/subagent-alternative.md
T
2026-04-19 21:47:08 +08:00

1.1 KiB
Raw Blame History

name, description, type, originSessionId
name description type originSessionId
SubAgent 替代方案 GLM 环境下 Agent tool SubAgent 不可用时的替代方案:通过 tmux 创建独立 pane 执行并行任务 feedback 6ac4a596-249e-45e3-bda1-6749001cc67c

当需要 SubAgent 但遇到 "模型不存在" 错误时,优先检查模型代码是否正确,再考虑 tmux 替代方案。

Why: ANTHROPIC_DEFAULT_HAIKU_MODEL 曾配置为 4.5-air(缺少 glm- 前缀),GLM API 报错 code 1211。已修正为 glm-4.5-air。Explore agent 默认使用 haiku 层级,因此最容易触发此错误。

How to apply:

  1. Agent tool 报 1211 错误时,先检查对应层级的模型代码是否在 GLM API 上有效(curl https://open.bigmodel.cn/api/paas/v4/models
  2. 如确认模型不可用,用 tmux pane 替代:tmux split-window → 新 pane 启动 cc → 文件系统协调结果
  3. 简单任务直接用 Grep/Read 工具串行执行,无需创建 pane

相关工具:

  • /isos-tmux-team 命令可创建 4-pane 团队布局(PM + Agent-A + Agent-B + Ops
  • scripts/tmux-team.sh 底层实现脚本