1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/// Check if a string contains a GLM-like model name.
///
/// GLM-like models include GLM, `ZhipuAI`, ZAI, Qwen, and `DeepSeek`.
/// Use this for detecting GLM models in any context (e.g., prompt selection).
/// For detecting CCS/Claude-based GLM agents specifically (error handling),
/// use `is_glm_like_agent` instead.
/// Check if an agent is a CCS/Claude-based agent using a GLM-like model.
///
/// These agents have known compatibility issues because they use Claude CLI
/// with GLM models via CCS (Claude Code Switch). They require:
/// - The `-p` flag for non-interactive mode
/// - Special error handling for GLM-specific quirks
///
/// This does NOT match `OpenCode` agents using GLM models, as `OpenCode` has
/// its own mechanism (`--auto-approve`) and JSON format.