ZCode Getting Started Tutorial
ZCode is a developer agent development environment launched by Zhipu, also called an Agentic Development Environment (ADE for short). Unlike traditional editors, it comes with an AI assistant that can deeply operate on projects, viewing projects, modifying files, executing commands and sorting out code changes.
ZCode can connect AI agents to real projects, completing the full development workflow of requirement analysis, code modification, testing, code review and pre-launch checks in one place.
Ordinary AI tools can only generate scattered code snippets, while ZCode supports issuing complete development tasks in natural language, suitable for users who want to drive development with natural language.

The core of ZCode is not simple chatting, but continuously advancing a complete task around one development goal.
| Concept | Description | Suitable scenarios |
|---|---|---|
| ZCode | A development environment for AI Agents. | For those who want to advance real project development with natural language. |
| ZCode Agent | An agent responsible for understanding tasks, reading context, modifying code and verifying results. | Complex requirement decomposition, code generation, debugging, testing. |
| Long Horizon Task | Development tasks that span a long time and have many steps. | Refactoring modules, fixing complex bugs, implementing complete features. |
| Workspace | The place where ZCode handles project files, terminal, Git status and task context. | Open an existing project, or create a new project in a directory. |
What ZCode Is Good For
ZCode is suited to development work that requires continuous context: it can read files, understand project structure, execute commands, and give a summary after changes are done.
Such capabilities suit real engineering, not just one-off Q&A.
| Task Type | What You Can Ask ZCode to Do | Typical Prompts |
|---|---|---|
| New Feature Development | Check the project structure based on requirements, create or modify relevant files. | Add a login page to this project and wire it into the existing routes. |
| Bug fixes | Locate the cause of the error, modify the code, and run verification commands. | Fix the page flicker that occurs after tapping a button on mobile. |
| Code understanding | Map out module relationships and explain the call chain of a feature from entry point to implementation. | Explain how this project's payment flow works. |
| Code Review | Check change risks and offer inline suggestions or directions for improvement. | Please review the current changes, focusing on regression risks. |
| Release Preparation | Generate a changelog, organize release notes, check Git status. | Generate a draft release note based on recent commits. |
Install ZCode
After entering the ZCode Chinese official site, you can click the download entry on the home page.
The official site address is https://zcode.z.ai/cn.
The site shows currently downloadable versions, supporting Windows, macOS and Linux; usually the official site shows a download button for the current system:

After downloading, just click to install:
Basic preparation after installation
On first launch you enter the "First-time Setup" page; after finishing, click Connect to Use in the bottom left to enter the login page:

To use model services, you also need to complete the API Key or Coding Plan related configuration; you can also configure it on the settings page after logging in:

The official free quota is now very limited and basically not enough; the following Coding Plan packages are recommended:
Next we takeByteDance Ark's Coding Plan as an example for configuration; visit Ark Coding Plan promotion, subscribe to a plan as needed; if usage is light the Lite version is enough, if usage is very heavy you can use the Pro version.
After successful purchase, click Create your API Key:

Then click the Create button:

Click the small eye icon below to see the API key; when you need it, just copy it:

The Base URL configured for different tools varies by compatible protocol:
- Tools compatible with Anthropic API protocol: https://ark.cn-beijing.volces.com/api/coding
- Tools compatible with OpenAI API protocol: https://ark.cn-beijing.volces.com/api/coding/v3
Here we choose https://ark.cn-beijing.volces.com/api/coding, set the API key to your own, the model list can add multiple models, here fill in Kimi-K2.6, and you can also add other models like DeepSeek-V4-Pro:

After adding, you can test whether the model works:

In the bottom right of the home page dialog you can see the model we added:

ZCode provides pages such as API Key configuration, usage statistics, user feedback and support.

Using ZCode for the First Time
We can start with a simple project: have ZCode create a browser mini-game, or have it explain the directory structure of an existing project.
This quickly helps you understand how ZCode works.
Open or create a workspace
A workspace can be understood as the project directory ZCode is currently working on.
You can open an existing project directory or start a new project in an empty directory.
ZCode reads files, executes commands and manages changes around this directory.
Create a New Task
In ZCode, a task is the basic unit that drives the Agent's work.
The official examples show a way of describing tasks in natural language.
The page also shows the new-task shortcut ⌘N.
New task example:
创建一个智能五子棋网页游戏,包含棋盘、玩家落子、胜负判断和简单电脑对手。

Observe the execution process
Once a task starts, ZCode analyzes the project based on the goal and advances step by step.
You can see task progress, execution logs, file changes, terminal output and Git status.
This is more reliable than merely copying a snippet of AI-generated code, because it can put the code back into a real project to verify it.
| Interface Area | Purpose | What beginners should focus on |
|---|---|---|
| Task Progress | Shows the breakdown and completion status of the current task. | Confirm whether the Agent is advancing toward the goal. |
| Terminal Output | Shows command execution results. | Watch for errors and whether verification commands pass. |
| File Changes | Shows added, modified or deleted files. | Check whether the changes meet expectations. |
| Git status | Shows the version-control status of the current workspace. | Before committing, confirm only the changes you need are included. |
A Complete Getting-Started Example
Below, a simple front-end project demonstrates how to assign a task to ZCode.
This example does not depend on a back end and suits beginners for understanding the flow.
Example
Please create a simple web page counter project for me.
Requirements:
Use three files: HTML, CSS and JavaScript.
Display the current count value on the page.
Provide three buttons: "plus one", "minus one" and "reset".
Keep the style simple, suitable for beginners to read.
After finishing, run the necessary checks and tell me which files were created.
This prompt clearly tells ZCode what to create, which files to use, which features to include, and that it needs to report the result when done.
The more specific the prompt, the more likely the Agent's execution matches expectations.

Then a permission prompt appears; allow the permission and click confirm:

Possible generated project structure
If you run this task in an empty directory, ZCode may create a file structure like the one below.
counter-demo/
├── index.html
├── styles.css
└── app.js

You can view the source code:

Source code preview:

How to Write Good Prompts for ZCode
ZCode can understand natural language, but that does not mean shorter prompts are better.
A good prompt should include the goal, scope, constraints and acceptance criteria.
Only then can the Agent plan and execute more reliably.
| Component | Description | Example |
|---|---|---|
| Goals | State what you want to end up with. | Add a user settings page. |
| Range | State which parts should be changed and which should not. | Only modify the front-end pages, do not change the back-end APIs. |
| Constraint | State the tech stack, style and compatibility requirements. | Use the existing component library, do not add new dependencies. |
| Acceptance criteria | State how to judge success after completion. | npm test passes and the mobile layout is correct. |
Example
Please fix the issue where the button on the login page is obscured on mobile.
Scope:
Only modify files related to the login page.
Do not modify the back-end APIs.
Do not add third-party dependencies.
Requirements:
Keep the existing visual style.
Fit a 375px-wide phone screen.
After modifying, state which files were changed.
If the project has test or check commands, run them and report the results.
Do not just write "help me optimize a bit". Such a prompt is too broad, and the Agent can hardly tell what you really want.
Common Workflows
ZCode's strength is connecting the development process end to end.
You can move a task from requirement description to code modification, then to verification and summary.
Creating features from scratch
When creating a new feature, first clarify the feature boundaries.
If the project already has a tech stack, also require ZCode to follow the existing conventions.
Example
Please add an "About Us" page to the current project.
Requirements:
Use the project's existing routing approach.
Reuse existing page layout components.
The page contains three parts: title, introduction and contact info.
Do not add new dependencies.
After finishing, list the added and modified files.
Understanding existing code
When you take over an unfamiliar project, first have ZCode explain the structure instead of modifying code right away.
This helps reduce the risk of incorrect changes.
Example
Please do not modify any files yet.
Read the current project structure for me and explain:
Where the application entry point is.
Where routes are defined.
Where API requests are wrapped.
What the build and test commands are respectively.
Pre-commit checks
Before committing code, you can have ZCode check the current changes.
It can help you find missing files, potential regressions and missing tests.
Example
Please review the changes in the current workspace.
Focus on checking:
Whether there are obvious bugs.
Whether existing features are broken.
Whether there are unused variables or debug code.
Whether tests need to be added.
First give a list of issues, do not modify files directly.
Safety Confirmation and Permissions
ZCode enters a confirmation flow before key commands, file modifications and high-privilege operations, which prevents the Agent from performing dangerous actions without your knowledge.

We can read the confirmation content before a command is executed, then decide whether to allow it.
| Operation types | Why confirmation is needed | Recommended practice |
|---|---|---|
| Modifying files | Changes the project code. | Confirm the file path and modification target are correct. |
| Delete a file | May cause data loss. | Check file content before deleting, back up if necessary. |
| Running commands | Commands may install dependencies, start services or change the environment. | Confirm what the command does, avoid executing unfamiliar high-risk commands. |
| Git operations | May affect commit history or the remote repository. | Check git status before committing and pushing. |
If you are unsure whether a command is safe, first have ZCode explain what the command does instead of directly allowing it to run.
Common Commands and Check Methods
ZCode can use the terminal to execute project commands.
The specific commands depend on your project's tech stack.
Below are some commands that appear in official examples and common development scenarios.
| Command | Function | Example |
|---|---|---|
| pwd | View the current directory. | Confirm whether ZCode's current terminal is in the project directory. |
| git status --short | View Git changes in a concise format. | Before committing, confirm which files were modified. |
| node --check app.js | Check JavaScript file syntax. | Verify whether app.js has syntax errors. |
| npm test | Run project tests. | Suitable for JavaScript or front-end projects. |
| npm run build | Execute the project build. | Before publishing, confirm the project packages correctly. |
$ git status --short
M src/App.js
M src/styles.css
The output above indicates that two files were modified.
Before committing, you should confirm all these changes meet expectations.
Overview of Advanced Capabilities
Besides desktop task execution, the ZCode docs also mention some advanced capabilities.
Beginners need not master them all at once, but can first understand what problems they solve.
| Capability | Description | When to Use |
|---|---|---|
| Remote Control | Follow up on or control Agent tasks remotely. | Tasks take a long time and you want to keep checking progress after leaving the computer. |
| Bot Channel | Trigger and advance tasks via Feishu or WeChat bots. | Team collaboration, mobile follow-up, remote additional instructions. |
| Skill | Provide dedicated capabilities or workflows for specific tasks. | Repeatedly handle similar tasks, such as security audits, documentation generation, test runs. |
| MCP servers | Connect external tools or data sources to the Agent. | Need to connect databases, knowledge bases, internal systems or dedicated tools. |
| Sub-agents | Let different Agents handle different subtasks. | Large tasks need parallel exploration, review or division of work. |
Common Questions from Beginners
Below are some issues commonly encountered when starting to use ZCode.
Will ZCode randomly mess up my project automatically
ZCode's key operations enter a confirmation flow.
You should check the files it wants to modify and the commands it wants to run before allowing.
If you only want it to read the project, you can explicitly write "do not modify files" in the prompt.
Should I have ZCode do many things at once
Beginners are not advised to give overly large tasks at the start.
A better way is to break tasks into smaller ones.
For example, first have it understand the project structure, then modify a module, and finally run verification.
What to do when a task fails
First check the terminal output and error messages.
Then let ZCode continue fixing based on the errors.
Do not rush to start a completely different task, or you may lose context.
When manual review is needed
Manual review is needed whenever business logic, permissions, security, payments, data deletion or release operations are involved.
AI can help find problems, but the final responsibility still lies with the developer.
Learning advice
The best way to learn ZCode is not memorizing commands but practicing with small tasks.
You can first use it to create a simple page, then have it explain the generated code.
Then try having it fix a small bug and observe how it reads files, modifies code and verifies results.
Once you are familiar with this task-driven development style, gradually use capabilities like code review, release preparation, Remote Control and Skill.
Treat ZCode as a development partner that can operate on projects, not just a chatbot that answers questions. This makes it easier to realize its value.
