Title
Feature: Add ZCode (Z.ai / GLM-5.2) as a first-class supported agent
Body
Is your feature request related to a problem?
Yes. ZCode (Z.ai's AI coding agent running GLM-5.2) cannot be selected as an agent
in Orca. It is absent from the agent registry, so users cannot spawn it from the
Orca UI, and Orca's status bar cannot report "ZCode is working".
Proposed solution
Add ZCode to Orca's supported agent list, alongside Claude Code / Codex / Cursor / Gemini.
Concretely, one or more of:
- Ship a
zcode-hook.sh entry under ~/.orca/agent-hooks/ mirroring the existing
cursor-hook.sh / kimi-hook.sh templates (they differ only by URL path).
- Provide an official wrapper recipe bridging ZCode's local-subprocess hooks to
Orca's HTTP hook endpoint, so lifecycle state (SessionStart / PreToolUse / Stop / …)
is forwarded into Orca.
- Engage with Z.ai on zai-org/feedback#32
as an integration partner, since that bug currently blocks native-agent hook firing.
Why ZCode is a good fit
- ZCode already exposes a lifecycle hooks model
(docs) that is structurally close to Claude Code's
(SessionStart / UserPromptSubmit / PreToolUse / PostToolUse / Stop), so the existing
Claude hook adapter is a reasonable starting point.
- ZCode supports invoking arbitrary CLI sub-agents via its
Task tool, and tool events
match Agent / Task aliases — this aligns naturally with Orca's multi-agent orchestration.
- ZCode has a non-trivial user base in the GLM ecosystem and is available as a free desktop app.
Current blockers (measured on a real machine)
- Orca's on-disk agent registry
~/.orca/agent-hooks/ lists 12 agents and does NOT include zcode:
antigravity claude codex command-code copilot cursor devin droid gemini grok kimi openclaude.
- ZCode's hooks today only support a local subprocess protocol (
type: "process" / "command").
There is no HTTP / webhook / IPC callback, which is what Orca's hook model expects
(agent POSTs to http://127.0.0.1:${ORCA_AGENT_HOOK_PORT}/hook/<agent>).
- ZCode has an open P2 bug — zai-org/feedback#32 —
where the native/built-in agent does not fire configured hooks.events lifecycle events.
Only "external CLI sub-agents" trigger them.
Environment snapshot
Orca: /Applications/Orca.app, orca CLI at /opt/homebrew/bin/orca
On-disk agent-hooks (12): antigravity claude codex command-code copilot cursor
devin droid gemini grok kimi openclaude
ZCode: ~/.zcode/v2 (desktop app); no standalone `zcode` binary on PATH
Platform: darwin 25.5.0 arm64
Workaround users currently have
orca terminal create --worktree active --command "zcode" (or a wrapper) launches ZCode
inside an Orca-managed terminal/worktree, but without status-bar integration or agent-dropdown
support — a "lightweight" path only.
Title
Feature: Add ZCode (Z.ai / GLM-5.2) as a first-class supported agentBody
Is your feature request related to a problem?
Yes. ZCode (Z.ai's AI coding agent running GLM-5.2) cannot be selected as an agent
in Orca. It is absent from the agent registry, so users cannot spawn it from the
Orca UI, and Orca's status bar cannot report "ZCode is working".
Proposed solution
Add ZCode to Orca's supported agent list, alongside Claude Code / Codex / Cursor / Gemini.
Concretely, one or more of:
zcode-hook.shentry under~/.orca/agent-hooks/mirroring the existingcursor-hook.sh/kimi-hook.shtemplates (they differ only by URL path).Orca's HTTP hook endpoint, so lifecycle state (SessionStart / PreToolUse / Stop / …)
is forwarded into Orca.
as an integration partner, since that bug currently blocks native-agent hook firing.
Why ZCode is a good fit
(docs) that is structurally close to Claude Code's
(SessionStart / UserPromptSubmit / PreToolUse / PostToolUse / Stop), so the existing
Claude hook adapter is a reasonable starting point.
Tasktool, and tool eventsmatch
Agent/Taskaliases — this aligns naturally with Orca's multi-agent orchestration.Current blockers (measured on a real machine)
~/.orca/agent-hooks/lists 12 agents and does NOT include zcode:antigravity claude codex command-code copilot cursor devin droid gemini grok kimi openclaude.type: "process"/"command").There is no HTTP / webhook / IPC callback, which is what Orca's hook model expects
(agent POSTs to
http://127.0.0.1:${ORCA_AGENT_HOOK_PORT}/hook/<agent>).where the native/built-in agent does not fire configured
hooks.eventslifecycle events.Only "external CLI sub-agents" trigger them.
Environment snapshot
Workaround users currently have
orca terminal create --worktree active --command "zcode"(or a wrapper) launches ZCodeinside an Orca-managed terminal/worktree, but without status-bar integration or agent-dropdown
support — a "lightweight" path only.