zcode-agent 1.1.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,26 +1,26 @@
1
1
  <p align="center">
2
2
  <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/0xgeorgemathew/zcode-agent/main/docs/assets/hero-dark.svg">
4
- <img src="https://raw.githubusercontent.com/0xgeorgemathew/zcode-agent/main/docs/assets/hero-light.svg" width="960" alt="Your agent (Claude Code, Codex or any agent with a shell) writes the decisions and a task contract. zcode-agent runs parallel GLM-5.3-Flash sessions that build, run their own checks, repair failures and have a fresh session judge screenshots. One handback line returns to your agent.">
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/0xgeorgemathew/zcode-agent/main/docs/assets/hero-dark.svg?v=1.2.1">
4
+ <img src="https://raw.githubusercontent.com/0xgeorgemathew/zcode-agent/main/docs/assets/hero-light.svg?v=1.2.1" width="960" alt="Your agent (Claude Code, Codex or any agent with a shell) writes the decisions and a task contract. zcode-agent runs parallel GLM-5.3 sessions that build, run their own checks and repair failures, and has a fresh GLM-5.3-Flash session judge screenshots. One handback line returns to your agent.">
5
5
  </picture>
6
6
  </p>
7
7
 
8
8
  <p align="center">
9
9
  <a href="https://www.npmjs.com/package/zcode-agent"><img src="https://img.shields.io/npm/v/zcode-agent.svg?color=2E2A7A&label=npm" alt="npm version"></a>
10
10
  <img src="https://img.shields.io/badge/node-%E2%89%A522.13-2E2A7A" alt="node 22.13 or later">
11
- <img src="https://img.shields.io/badge/model-GLM--5.3--Flash-1C7C54" alt="runs on GLM-5.3-Flash">
11
+ <img src="https://img.shields.io/badge/models-GLM--5.3%20%C2%B7%20GLM--5.3--Flash-1C7C54" alt="runs on GLM-5.3 and GLM-5.3-Flash">
12
12
  <a href="https://github.com/0xgeorgemathew/zcode-agent/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-2E2A7A" alt="MIT license"></a>
13
13
  </p>
14
14
 
15
15
  # zcode-agent
16
16
 
17
- zcode-agent is a command-line executor for any agent that can run a shell command: Claude Code, Codex, or your own. Your agent writes the decisions and a task contract. zcode-agent builds it with GLM-5.3-Flash, runs your checks itself, repairs what fails, and has a separate Flash session that never saw the code look at screenshots of the result. It returns one line of JSON. Your agent never reads the diff, re-runs the tests or opens a screenshot, so its expensive tokens go to decisions and exceptions.
17
+ zcode-agent is a command-line executor for any agent that can run a shell command: Claude Code, Codex, or your own. Your agent writes the decisions and a task contract. zcode-agent builds it with GLM-5.3, runs your checks itself, repairs what fails, and has a separate GLM-5.3-Flash session that never saw the code look at screenshots of the result. It returns one line of JSON. Your agent never reads the diff, re-runs the tests or opens a screenshot, so its expensive tokens go to decisions and exceptions.
18
18
 
19
19
  | | does | never does |
20
20
  |---|---|---|
21
21
  | **Your agent** | product, design and logic decisions; splits the work; answers questions | writes code, re-runs checks, looks at screenshots |
22
- | **zcode-agent** (GLM-5.3-Flash) | builds inside the paths it owns, runs subagents in parallel, runs the checks, fixes failures | invents anything user-visible the decisions left open, commits, deploys |
23
- | **The verifier** (a fresh Flash session) | serves the app, screenshots every viewport, quotes the text it can read, judges each criterion | edits files, trusts the DOM over the pixels |
22
+ | **zcode-agent** (GLM-5.3, or Flash with `--model flash`) | builds inside the paths it owns, runs subagents in parallel, runs the checks, fixes failures | invents anything user-visible the decisions left open, commits, deploys |
23
+ | **The verifier** (a fresh GLM-5.3-Flash session) | serves the app, screenshots every viewport, quotes the text it can read, judges each criterion | edits files, trusts the DOM over the pixels |
24
24
 
25
25
  &nbsp;
26
26
 
@@ -186,14 +186,14 @@ Flags cover the common fields. For a larger handoff, pass `--task contract.json`
186
186
 
187
187
  ## Models and effort
188
188
 
189
- Every command runs on GLM-5.3-Flash at effort `max` unless you pass a flag. Flash reads images, so the executor can check its own UI and the verifier can judge screenshots. `--model glm-5.3` is an override for work that needs the larger model, and it cannot read images.
189
+ Every command runs on GLM-5.3 at effort `high` unless you pass a flag, in `zcode-agent acp` as well as on the command line. Both models are always available: `--model flash` switches to GLM-5.3-Flash, which is cheaper and faster and, unlike GLM-5.3, can read images. The visual verifier always runs on Flash, so `--visual` works on either model. Pass `--model flash` when the executor should look at its own screenshots too.
190
190
 
191
191
  | flag | values | default |
192
192
  |---|---|---|
193
- | `--model` | `glm-5.3-flash`, `glm-5.3` | Flash |
194
- | `--effort` | `low`, `high`, `max` | `max` |
193
+ | `--model` | `glm-5.3`, `glm-5.3-flash` | GLM-5.3 |
194
+ | `--effort` | `low`, `high`, `max` | `high` |
195
195
 
196
- `--model` also takes the short names `flash`, `5.3-flash` and `53f` for Flash, and `5.3` and `53` for GLM-5.3. A contract can set `"model"` and `"effort"`, and flags override it. A resumed session keeps its model and effort unless you pass the flags again. Any other model or an unsupported effort exits 2 before anything starts.
196
+ `--model` also takes the short names `5.3` and `53` for GLM-5.3, and `flash`, `5.3-flash` and `53f` for Flash. A contract can set `"model"` and `"effort"`, and flags override it. A resumed session keeps its model and effort unless you pass the flags again. Any other model or an unsupported effort exits 2 before anything starts.
197
197
 
198
198
  &nbsp;
199
199
 
@@ -274,6 +274,13 @@ The counts come from each session's own engine database and include the executor
274
274
 
275
275
  ## Use it in T3 Code, Zed or any ACP client
276
276
 
277
+ <p align="center">
278
+ <picture>
279
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/0xgeorgemathew/zcode-agent/main/docs/assets/acp-dark.svg?v=1.2.1">
280
+ <img src="https://raw.githubusercontent.com/0xgeorgemathew/zcode-agent/main/docs/assets/acp-light.svg?v=1.2.1" width="960" alt="An ACP client such as T3 Code or Zed sends prompts and answers to zcode-agent over stdio. zcode-agent streams text, diffs and the plan back and asks before edits and commands. Mode, model and effort are pickers; the defaults are GLM-5.3, effort high and Ask mode.">
281
+ </picture>
282
+ </p>
283
+
277
284
  `zcode-agent acp` speaks the [Agent Client Protocol](https://agentclientprotocol.com) (v1) on stdio, so an ACP client drives GLM-5.3 directly: you chat with it, approve its edits and commands, and watch its tool calls, diffs and plan as they happen. `zcode-agent-acp` is the same command for clients that take only an executable. Key, MCP servers and skills work the same way as for `task`.
278
285
 
279
286
  **T3 Code** (a build with the ACP Registry provider): install zcode-agent globally, then add a provider in Settings → Providers. Choose **ACP Registry**, set **ACP source** to **Local command** and **Executable override** to `zcode-agent-acp`. To set it in `~/.t3/userdata/settings.json` instead:
@@ -289,7 +296,7 @@ The counts come from each session's own engine database and include the executor
289
296
  }
290
297
  ```
291
298
 
292
- T3 Code then offers GLM-5.3-Flash and GLM-5.3, with **Mode** and **Effort** pickers. Its runtime modes map onto the agent's approvals: in full access T3 answers every approval itself, and in approval-required it asks you. T3's plan mode switches the agent to its read-only Plan mode.
299
+ T3 Code then offers GLM-5.3 (the default, at effort high) and GLM-5.3-Flash, with **Mode** and **Effort** pickers. Its runtime modes map onto the agent's approvals: in full access T3 answers every approval itself, and in approval-required it asks you. T3's plan mode switches the agent to its read-only Plan mode.
293
300
 
294
301
  **Zed** (`settings.json`):
295
302
 
@@ -313,7 +320,7 @@ What the client gets:
313
320
  - **Picker updates.** Mode, model and effort as session config options; switching model keeps the effort when the new model supports it.
314
321
  - **Usage.** Context use and the session's GLM cost so far at API list price, after every turn.
315
322
  - **Sessions.** `session/list` and `session/load`: a session reopens in a new process with its history replayed. Every ACP session is a zcode-agent session (`kind: "acp"`), so `zcode-agent status`, `watch` and `cost` include it.
316
- - **Inputs.** Images (saved to the session's tmp dir for GLM-5.3-Flash to read), embedded files and file links in prompts. Your client's MCP servers (stdio, HTTP, SSE) are added to the session.
323
+ - **Inputs.** Images (saved to the session's tmp dir; GLM-5.3 cannot read them, so the prompt says so and suggests GLM-5.3-Flash), embedded files and file links in prompts. Your client's MCP servers (stdio, HTTP, SSE) are added to the session.
317
324
  - **Cancel.** Stops the running turn and its tools.
318
325
 
319
326
  The engine starts at the first prompt, not at `session/new`, so client probes cost nothing and leave no session behind. Flags set the defaults for new sessions: `--mode`, `--model`, `--effort`, `--hermetic` (fastest start: none of the app's MCP servers to connect), `--no-browser`, `--mcp`, `--skills`, `--timeout-ms` (per prompt; default none). `ZCODE_ACP_MODE` sets the default mode for clients that take no arguments, and `ZCODE_ACP_LOG=<file>` logs every frame. Questions the model would ask through a form are asked in its reply instead, because ACP v1 has no form UI.
@@ -384,8 +391,8 @@ The brief lists only failing checks (`checksPassed` counts the rest), unmet visu
384
391
  | `--serve` | task: the command that serves the app on `$ZCODE_PORT` |
385
392
  | `--max-repairs` | task and resume: repair turns after failures. Default: 2 |
386
393
  | `--check-timeout-ms` | task and resume: time limit per check. Default: 300000 |
387
- | `--model` | `glm-5.3-flash` (default) or `glm-5.3` |
388
- | `--effort` | `low`, `high` or `max` (default) |
394
+ | `--model` | `glm-5.3` (default) or `glm-5.3-flash` |
395
+ | `--effort` | `low`, `high` (default) or `max` |
389
396
  | `--timeout-ms` | the whole run, checks and repairs included. Default: 10 min for run, 2 h for task |
390
397
  | `--session` | run: continue by zcode-agent id or engine `sess_` id |
391
398
  | `--profile` | agent: the subagent profile. Default: `general-purpose` |
@@ -2,7 +2,7 @@
2
2
  'use strict';
3
3
  // zcode — CLI entry: argv parsing + command dispatch. Parsing rejects bad
4
4
  // input (exit 2) before any engine spawn or session record exists.
5
- const { normalizeModel, unknownModelMessage, normalizeEffort, EFFORT_LEVELS, DEFAULT_MODEL } = require('../lib/models.js');
5
+ const { normalizeModel, unknownModelMessage, normalizeEffort, EFFORT_LEVELS, DEFAULT_MODEL, DEFAULT_EFFORT } = require('../lib/models.js');
6
6
 
7
7
  const USAGE = `usage:
8
8
  zcode-agent task [options] <objective…> execute a task contract, verify it, hand back
@@ -95,10 +95,10 @@ acp (zcode-agent acp):
95
95
  --skills, --no-skills, --inherit-desktop
96
96
 
97
97
  execution:
98
- --model <id> glm-5.3 | glm-5.3-flash (+aliases). default: glm-5.3-flash
98
+ --model <id> glm-5.3 | glm-5.3-flash (+aliases). default: glm-5.3
99
99
  --effort <level> low | high | max for both models (zcode-agent doctor lists the
100
100
  engine's levels per model); an unsupported level exits 2
101
- before any spawn. default: max
101
+ before any spawn. default: high
102
102
  --timeout-ms <n> whole invocation incl. checks/repairs (default 600000;
103
103
  task default 7200000 = 2 h)
104
104
  --profile <name> subagent profile (agent command; default general-purpose)
@@ -179,7 +179,7 @@ function parseArgv(argv) {
179
179
  given: new Set(),
180
180
  flags: {
181
181
  model: DEFAULT_MODEL,
182
- effort: 'max',
182
+ effort: DEFAULT_EFFORT,
183
183
  cwd: process.cwd(),
184
184
  json: false,
185
185
  fresh: false,
package/lib/acp-map.js CHANGED
@@ -27,8 +27,8 @@ const MODES = [
27
27
  const MODE_IDS = MODES.map((m) => m.id);
28
28
 
29
29
  const MODELS = [
30
+ { value: 'GLM-5.3', name: 'GLM-5.3', description: 'Default; larger model, text only' },
30
31
  { value: 'GLM-5.3-Flash', name: 'GLM-5.3-Flash', description: 'Fast and cheap; sees images' },
31
- { value: 'GLM-5.3', name: 'GLM-5.3', description: 'Larger model; text only' },
32
32
  ];
33
33
 
34
34
  // Context windows by model (engine session/create settings; fallback).
package/lib/acp.js CHANGED
@@ -368,7 +368,7 @@ class Agent {
368
368
  this.send(s, { sessionUpdate: 'current_mode_update', currentModeId: value });
369
369
  } else if (configId === 'model') {
370
370
  const model = normalizeModel(value);
371
- if (!model) throw new AcpError(ERR.invalidParams, `unknown model "${value}" (GLM-5.3-Flash, GLM-5.3)`);
371
+ if (!model) throw new AcpError(ERR.invalidParams, `unknown model "${value}" (GLM-5.3, GLM-5.3-Flash)`);
372
372
  s.model = model;
373
373
  s.effort = map.effortFor(model, s.effort, opts);
374
374
  } else if (configId === 'effort') {
package/lib/help.js CHANGED
@@ -8,8 +8,8 @@ const SESSION = ` --id <id> name the session (existing id is never re-ru
8
8
  --cwd <dir> workspace (default: current dir)
9
9
  --owns <path> repeatable: paths this session may change (default: whole workspace)
10
10
  --allow-overlap start despite overlapping ownership`;
11
- const EXEC = ` --model <id> glm-5.3 | glm-5.3-flash (default glm-5.3-flash)
12
- --effort <lvl> low | high | max (default max)
11
+ const EXEC = ` --model <id> glm-5.3 | glm-5.3-flash (default glm-5.3)
12
+ --effort <lvl> low | high | max (default high)
13
13
  --mcp <json|@f> add MCP servers (repeatable) --mcp-inherit --no-browser
14
14
  --skills <dir> add skills (repeatable) --no-skills
15
15
  --inherit-desktop give the executor the desktop's AGENTS.md, skills, plugins
@@ -126,8 +126,8 @@ client run GLM-5.3 through it. Each ACP session is a zcode-agent session
126
126
  --mode <mode> default for new sessions: build (ask before edits and
127
127
  commands) | edit (accept edits) | plan | yolo (full access)
128
128
  default build (or $ZCODE_ACP_MODE)
129
- --model <id> glm-5.3 | glm-5.3-flash (default glm-5.3-flash)
130
- --effort <lvl> low | high | max (default max)
129
+ --model <id> glm-5.3 | glm-5.3-flash (default glm-5.3)
130
+ --effort <lvl> low | high | max (default high)
131
131
  --timeout-ms <n> per prompt (default: none)
132
132
  --mcp <json|@f> add MCP servers (repeatable) --hermetic --no-browser
133
133
  --skills <dir> add skills (repeatable) --no-skills
package/lib/models.js CHANGED
@@ -5,7 +5,8 @@
5
5
 
6
6
  const fs = require('node:fs');
7
7
 
8
- const DEFAULT_MODEL = 'GLM-5.3-Flash';
8
+ const DEFAULT_MODEL = 'GLM-5.3';
9
+ const DEFAULT_EFFORT = 'high';
9
10
 
10
11
  // Case-insensitive aliases → official ids (exact ids pass through verbatim;
11
12
  // they are exactly "GLM-5.3" / "GLM-5.3-Flash").
@@ -21,8 +22,8 @@ const ALIASES = new Map([
21
22
 
22
23
  const SUPPORTED = ['glm-5.3', 'glm-5.3-flash'];
23
24
 
24
- // Effort enum per the bundle's schema (DESIGN §8). `max` is the default and
25
- // the only guaranteed-portable choice across both models.
25
+ // Effort enum per the bundle's schema (DESIGN §8). `high` is the default;
26
+ // `low|high|max` are the levels both models accept.
26
27
  const EFFORT_LEVELS = ['low', 'medium', 'high', 'xhigh', 'max'];
27
28
 
28
29
  function normalizeEffort(input) {
@@ -171,6 +172,7 @@ module.exports = {
171
172
  effortProblem,
172
173
  FALLBACK_LEVELS,
173
174
  DEFAULT_MODEL,
175
+ DEFAULT_EFFORT,
174
176
  normalizeModel,
175
177
  unknownModelMessage,
176
178
  normalizeEffort,
package/lib/plan.js CHANGED
@@ -18,7 +18,7 @@ const store = require('./store.js');
18
18
  const { buildContract } = require('./taskspec.js');
19
19
  const { ContractError } = require('./contract.js');
20
20
  const { workspaceRoot, normalizeOwns, ownsOverlap, OwnershipError } = require('./workspace.js');
21
- const { normalizeModel, normalizeEffort, effortProblem, unknownModelMessage, DEFAULT_MODEL } = require('./models.js');
21
+ const { normalizeModel, normalizeEffort, effortProblem, unknownModelMessage, DEFAULT_MODEL, DEFAULT_EFFORT } = require('./models.js');
22
22
  const { buildBrief } = require('./brief.js');
23
23
 
24
24
  const BIN = path.join(__dirname, '..', 'bin', 'zcode-agent.js');
@@ -167,7 +167,7 @@ function checkPlan(r, { name, state } = {}) {
167
167
  if (!model) {
168
168
  problems.push(`session "${s.id}": ${unknownModelMessage(contract.model)}`);
169
169
  } else {
170
- const effort = contract.effort === null ? 'max' : normalizeEffort(contract.effort);
170
+ const effort = contract.effort === null ? DEFAULT_EFFORT : normalizeEffort(contract.effort);
171
171
  if (!effort) problems.push(`session "${s.id}": contract effort "${contract.effort}" is not valid.`);
172
172
  else {
173
173
  const p = effortProblem(model, effort, { source: `session "${s.id}" effort` });
package/lib/ui.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // are unset, and nothing animates — the feed is append-only lines, so a
6
6
  // non-interactive log reads exactly like the terminal did.
7
7
  //
8
- // ▸ zcode zc-1a2b3c4d task GLM-5.3-Flash · effort max session header
8
+ // ▸ zcode zc-1a2b3c4d task GLM-5.3 · effort high session header
9
9
  // ● executing phase
10
10
  // → Edit · ✓ Edit · ✗ Bash tools (dim)
11
11
  // ⇢ subagent started / returned subagents
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zcode-agent",
3
- "version": "1.1.0",
4
- "description": "Cheap, verified execution for Claude Code and Codex: your orchestrator decides, GLM-5.3-Flash builds, tests and visually verifies in headless ZCode sessions (parallel sessions, subagents, dependency plans) and hands back a compact result. Also an ACP agent for T3 Code, Zed and any Agent Client Protocol client. Uses your ZCode app's key, MCP servers and skills, or runs standalone.",
3
+ "version": "1.2.1",
4
+ "description": "Cheap, verified execution for Claude Code and Codex: your orchestrator decides, GLM-5.3 builds and tests, and a GLM-5.3-Flash verifier checks the screenshots in headless ZCode sessions (parallel sessions, subagents, dependency plans) and hands back a compact result. Also an ACP agent for T3 Code, Zed and any Agent Client Protocol client. Uses your ZCode app's key, MCP servers and skills, or runs standalone.",
5
5
  "license": "MIT",
6
6
  "bin": {
7
7
  "zcode-agent": "bin/zcode-agent.js",
@@ -1,13 +1,13 @@
1
1
  ---
2
2
  name: zcode-agent
3
- description: Delegate scoped implementation work to the zcode-agent CLI (cheap GLM-5.3-Flash executor: sees images, has Playwright; an independent vision verifier judges UI) and consume its compact verified handback. Use when you are orchestrating: you make the product, design and logic decisions once, then zcode-agent implements, tests, visually verifies and repairs — in one session with subagent units, several parallel sessions, or a dependency plan — while you spend tokens only on decisions and exceptions.
3
+ description: Delegate scoped implementation work to the zcode-agent CLI (cheap GLM-5.3 executor with Playwright; an independent GLM-5.3-Flash vision verifier judges UI) and consume its compact verified handback. Use when you are orchestrating: you make the product, design and logic decisions once, then zcode-agent implements, tests, visually verifies and repairs — in one session with subagent units, several parallel sessions, or a dependency plan — while you spend tokens only on decisions and exceptions.
4
4
  ---
5
5
 
6
6
  # Operating zcode-agent as an executor
7
7
 
8
8
  zcode-agent is a CLI execution engine. You decide; it builds. It implements a scoped task in its own session, runs your checks itself, has a fresh, independent vision verifier screenshot and judge UI when you ask, repairs failures within a budget, and returns a small structured handback.
9
9
 
10
- **The point is cost.** Your tokens are the expensive ones; GLM-5.3-Flash's are cheap. Your tokens go to decisions and exceptions. Everything mechanical — writing code, running builds and tests, reading diffs, looking at screenshots, fixing small failures — is zcode-agent's. If you are doing any of that after dispatch, you are paying twice.
10
+ **The point is cost.** Your tokens are the expensive ones; GLM-5.3's are cheap. Your tokens go to decisions and exceptions. Everything mechanical — writing code, running builds and tests, reading diffs, looking at screenshots, fixing small failures — is zcode-agent's. If you are doing any of that after dispatch, you are paying twice.
11
11
 
12
12
  Check readiness once per machine: `zcode-agent doctor` (exit 3 → no key: the user runs `zcode-agent login` or sets `ZAI_API_KEY`; with the ZCode app installed its key, MCP servers and skills are used automatically). Don't run `--help` or a bare `zcode-agent status`: everything you need is here.
13
13
 
@@ -81,7 +81,7 @@ Parallel sessions cost you nothing extra while they run: one background `wait` o
81
81
 
82
82
  Environment: by default the executor gets the ZCode app's MCP servers and user skills (OAuth-only remote servers excluded) plus zcode-agent's own executor instructions; `--hermetic` gives it only your `--mcp` servers and `--skills`. Leave the default unless a run needs to be reproducible on another machine.
83
83
 
84
- Model and effort: don't pass `--model`. Everything runs on GLM-5.3-Flash by default (it sees images): sessions, units, plans, the verifier. Use `--model glm-5.3` only when the user asks for it; it can't see images. `--effort low|high|max` (default `max`). Other values are refused before anything starts.
84
+ Model and effort: don't pass `--model` or `--effort`. Everything runs on GLM-5.3 at effort `high` by default: sessions, units and plans. The visual verifier always runs on GLM-5.3-Flash, because only Flash can see images. Use `--model flash` when the user asks for it, or when the executor itself should look at screenshots or attached images (GLM-5.3 can't); it is cheaper and faster too. `--effort low|high|max`. Other values are refused before anything starts.
85
85
 
86
86
  ## Running
87
87
 
@@ -1,13 +1,13 @@
1
1
  ---
2
2
  name: zcode-agent
3
- description: Delegate scoped implementation work to the zcode-agent CLI (cheap GLM-5.3-Flash executor: sees images, has Playwright; an independent vision verifier judges UI) and consume its compact verified handback. Use when you are orchestrating: you make the product, design and logic decisions once, then zcode-agent implements, tests, visually verifies and repairs — in one session with subagent units, several parallel sessions, or a dependency plan — while you spend tokens only on decisions and exceptions.
3
+ description: Delegate scoped implementation work to the zcode-agent CLI (cheap GLM-5.3 executor with Playwright; an independent GLM-5.3-Flash vision verifier judges UI) and consume its compact verified handback. Use when you are orchestrating: you make the product, design and logic decisions once, then zcode-agent implements, tests, visually verifies and repairs — in one session with subagent units, several parallel sessions, or a dependency plan — while you spend tokens only on decisions and exceptions.
4
4
  ---
5
5
 
6
6
  # Operating zcode-agent as an executor
7
7
 
8
8
  zcode-agent is a CLI execution engine. You decide; it builds. It implements a scoped task in its own session, runs your checks itself, has a fresh, independent vision verifier screenshot and judge UI when you ask, repairs failures within a budget, and returns a small structured handback.
9
9
 
10
- **The point is cost.** Your tokens are the expensive ones; GLM-5.3-Flash's are cheap. Your tokens go to decisions and exceptions. Everything mechanical — writing code, running builds and tests, reading diffs, looking at screenshots, fixing small failures — is zcode-agent's. If you are doing any of that after dispatch, you are paying twice.
10
+ **The point is cost.** Your tokens are the expensive ones; GLM-5.3's are cheap. Your tokens go to decisions and exceptions. Everything mechanical — writing code, running builds and tests, reading diffs, looking at screenshots, fixing small failures — is zcode-agent's. If you are doing any of that after dispatch, you are paying twice.
11
11
 
12
12
  Check readiness once per machine: `zcode-agent doctor` (exit 3 → no key: the user runs `zcode-agent login` or sets `ZAI_API_KEY`; with the ZCode app installed its key, MCP servers and skills are used automatically). Don't run `--help` or a bare `zcode-agent status`: everything you need is here.
13
13
 
@@ -81,7 +81,7 @@ Parallel sessions cost you little extra while they run: one `wait` on all of the
81
81
 
82
82
  Environment: by default the executor gets the ZCode app's MCP servers and user skills (OAuth-only remote servers excluded) plus zcode-agent's own executor instructions; `--hermetic` gives it only your `--mcp` servers and `--skills`. Leave the default unless a run needs to be reproducible on another machine.
83
83
 
84
- Model and effort: don't pass `--model`. Everything runs on GLM-5.3-Flash by default (it sees images): sessions, units, plans, the verifier. Use `--model glm-5.3` only when the user asks for it; it can't see images. `--effort low|high|max` (default `max`). Other values are refused before anything starts.
84
+ Model and effort: don't pass `--model` or `--effort`. Everything runs on GLM-5.3 at effort `high` by default: sessions, units and plans. The visual verifier always runs on GLM-5.3-Flash, because only Flash can see images. Use `--model flash` when the user asks for it, or when the executor itself should look at screenshots or attached images (GLM-5.3 can't); it is cheaper and faster too. `--effort low|high|max`. Other values are refused before anything starts.
85
85
 
86
86
  ## Running
87
87