Who it is forA maintainer who needs to check the packaged zcode command before publishing it.
The problemSource runs do not prove the full release bundle works, so the packaged output needs its own test.
The outcomeA tested unpacked zcode runtime that serves the web interface on port 3030 from the built bundle.
What you need first
- Git
- Node.js 24.14.0 and pnpm 10.33.2, as pinned in mise.toml
- Clone of the zai-org/ZCode repository
- A local project folder to point the agent at
Steps
- Set
ZCODE_DIST_BASE_URLin.envor the environment, or pass--base-urlto the build with your own hosting address. - Run
pnpm build:zcode --base-url https://downloads.example.com/zcode/, replacing the placeholder with the real download address. - Read the version from dist/zcode/latest.json and extract
dist/zcode/releases/<version>/zcode-<version>.tar.gzintodist/zcode/debug. - Start the unpacked runtime with
node dist/zcode/debug/zcode/bin/zcode.mjs --web --workspace "$PWD" --port 3030 --no-open. (inferred, check the README) - Open
http://127.0.0.1:3030in a browser to confirm the web page and agent run from the same backend.
Prompt for your agent
In the zai-org/ZCode repo, run `pnpm build:zcode --base-url <download-root-url>`, extract the tarball listed in dist/zcode/latest.json into dist/zcode/debug, and start it with --web on port 3030. Report the URL and confirm that http://127.0.0.1:3030 returns a page.
Caveat. pnpm build:zcode only creates the release package and does not replace an existing zcode command already on PATH.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for zai-org/ZCode and "Package the zcode command and test it locally"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer