# ZCode Executor

> Free install-and-dispatch skill for open-source zcode-executor: write a task file, run implementation in a git worktree, verify with git diff and tests. Works with any host coding agent. Links to GitHub/npm; upsells Pro for orchestration templates.

ZCode Executor is a free AI agent skill on Agensi by kyomio, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [kyomio](https://www.agensi.io/creators/kyomio)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Uses: 3
- Version: 1.0
- Last updated: 2026-10-15
- Security: scan passed (2026-10-15); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/zcode-executor
- Tags: ai-agents, workflow-automation, git, node-js, testing, zcode, coding-agent, worktree

## About this skill

Free install-and-dispatch skill for open-source zcode-executor: write a task file, run implementation in a git worktree, verify with git diff and tests. Works with any host coding agent. Links to GitHub/npm; upsells Pro for orchestration templates.

**Coding Plan:** A ZCode Coding Plan gives about 150% equivalent quota (roughly 0.67× consumption, per official docs). Calling the executor through this skill gets that same Coding Plan benefit.

**Open source:** [zcode-executor on GitHub](https://github.com/KyoMio/zcode-executor) · npm package `zcode-executor` (Apache-2.0). Skill id: `zcode-executor`.

You are the planning hub. The local executor implements. Write a task file, dispatch into an isolated git worktree, and accept only with `git diff` and tests — never by trusting the executor's self-report.

### Install

Works with any host agent that can run shell commands (Claude Code, Cursor, Codex, and similar).

```bash
npm install -g zcode-executor
zcode-executor doctor
```

Or without a global install: `npx zcode-executor doctor`.

**Requirements:** macOS or Linux; Node ≥ 22; ZCode desktop app ≥ 3.12.2, installed and logged in. Windows is not supported yet.

### One task, end to end

1. Write a task file from the upstream template (`templates/task.md`). Acceptance criteria must be machine-checkable. One independently verifiable change per task file.
2. Create an isolated git worktree (one per repo; branch per task).
3. Register a local session: `zcode-executor new --cwd <worktree> --title T-xxx --tier fast --json`.
4. Send the task (the message is only a doorbell; the task file is the contract): `zcode-executor send <id> "Run tasks/T-xxx.md" --task <absolute-path>`.
5. Verify with `git diff` and tests before accepting. On failure, revise and send to the same session.

### Iron rules

- Always `send` with `--task`. Editing the file later does not change authorization until you send again.
- Accept with `git diff` and tests, not the executor's narrative.
- Never put credentials in the task file.

### Pro

This free skill covers the open-source install-and-dispatch workflow only. For multi-session orchestration, ready task templates, and updates when the executor or agent ecosystem changes, see **zcode-executor-pro** on Agensi. The core engine stays free and open on GitHub.

## Requires

- zcode-executor
- Node.js
- Git
- ZCode desktop app

## Known limitations

Requires macOS or Linux and Node 22+. Does not support Windows. The ZCode desktop app (v3.12.2+) must be installed and active.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the ZCode Executor skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill prevent the AI from incorrectly claiming a task is finished?

This skill prevents 'hallucinated success' by offloading tasks to isolated git worktrees where changes must pass machine-verifiable criteria, such as git diffs and test suites, before being accepted.

### What are the technical requirements for running the zcode executor starter?

The skill requires Node.js 22 or higher, a macOS or Linux environment, and the ZCode desktop application for orchestration. Windows is not supported at this time.

### Can I use different AI model tiers for planning versus execution?

Yes, the skill is designed for a hub-and-spoke model where you can dispatch mechanical tasks to faster, cheaper tiers while maintaining a stronger model for high-level planning.

### What exactly is included in the 'zcode executor starter' package?

You receive the core orchestration logic for managing isolated worktrees, the contract-based dispatching system, and pre-configured session management tools for your ZCode environment.

### How does the skill ensure that background tasks don't break my main codebase?

Isolation is handled via dedicated git worktrees, ensuring that implementation tasks are sandboxed from your main development branch until they pass all automated verification checks.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
