Skip to content

ZenCODE v5.0.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 13:24
· 102 commits to main since this release

ZenCODE 5.0.0 is a breaking release. Setup now has a single entry point, zen --setup, and it adds Git worktrees, so a session can work on a branch without touching your main checkout. Coming from 4.x? Read "Heads-up: breaking changes" before you update.

Highlights

  • zen --worktree NAME runs the terminal chat (or zen --ui) in the Git worktree NAME of the current repository, on the branch NAME (checked out if it exists, otherwise created from HEAD). The worktree shares the repository's project memory, saved sessions, task graphs and project agents with the main checkout. When the chat ends, a menu offers to merge the branch into the main branch and remove the worktree, keep it (the default), or remove it without merging; the macOS app asks the same when its last window closes. It is not available with --acp, --telegram, -p/-f or --jsonl. See Docs/zen.md.

  • zen --setup is the one way to configure ZenCODE, for the first setup and every later change. It always opens the setup menu, never enters a chat, and exits with status 0 when a valid configuration exists at the end. See Docs/zen.md.

  • No more cap of 8 sub-agents per agent.create request. The only limit left is the 64 participants of a session's shared-chat room.

  • Delegated agents now write their prompts, task descriptions and messages in the session's response language, too.

  • One elapsed-time formatter (1.25s, 420ms) is shared by the terminal, Telegram, ACP clients and the macOS app.

  • The sub-agent overview has a new intermediate layout, so with many agents each one keeps its model, metrics and current tool row. On a narrow terminal the status bar truncates the agent name to 24 columns, leaving room for the model, context and token counters.

Heads-up: breaking changes

  • The /setup command is removed from the terminal chat. Use zen --setup.
  • Starting without a valid configuration (missing or invalid settings.json/agents.json, or no model configured) no longer opens the setup. zen, zen --ui, -p/-f, --jsonl and --telegram print a hint to run zen --setup and exit with status 1. ACP is the only exception: zen --acp still answers initialize.
  • ZENCODE_AGENT_MODE is no longer read. If your ACP client relied on it alone, add --acp to the command.
  • The ACP terminal authentication method zencode-setup ("Set up ZenCODE") now runs zen --setup. The setup opens in the client's terminal and exits when it ends, then the client reconnects.
  • Swift API, only for code that embeds ZenCODECore: the setup handler and in-process restart state are removed, along with AgentRunMode.automatic, DirectSubAgentRuntime.AgentSnapshot.accumulatedOutput, the keepingExternalTools: parameter of ChatSessionHost.shutdown, the TerminalChatActor alias (deprecated since 4.0.0), and public symbols with no callers in ToolCore, FeatureMCPBridgeKit and ZenCODEACPBridge. Some other public signatures change. See the Breaking entries in the CHANGELOG.

Install

See the README (--ref v5.0.0) and the CHANGELOG for the full list of changes. After updating, run zen --setup once if you need to change anything. macOS arm64 and Linux x86_64/arm64 archives are attached below, each with its .sha256.

Full Changelog: v4.1.0...v5.0.0