Skip to content

Your first zdev task

Zdev keeps an agreed plan and its remaining tasks inside your Git repository. Your coding agent reads that plan, implements one task, and hands the result to a separate agent to review and verify before committing. Because the state lives on disk, you can close the session at any point and resume the same work later.

This tutorial walks through adding a --name option to a tiny Python program. The change is intentionally trivial so you can see the whole loop (what you approve, what the agent does next, and where the state ends up) without getting bogged down in application code.

You can run the terminal commands below yourself or ask an agent with terminal access to run them for you. The chat blocks show the requests where you ask the agent to coordinate a zdev workflow rather than execute a single command.

To follow the agent workflow, you need Git and a coding harness (the app or CLI agent you use to work on code, such as Codex or Claude Code) with an authenticated model account. Zdev uses that harness’s model access and delegation tools; installing zdev on its own does not launch agents or supply a model subscription.

The binary runs on macOS and Linux (x86-64 and Arm64). This guide targets zdev 2.3. With a Rust toolchain, install it through Cargo:

Terminal window
cargo install zdev --version 2.3.0 --locked
zdev --version

Prebuilt binaries are also published on GitHub releases. Check zdev --version to confirm you have 2.3.

Next, install the integration for your harness and verify it:

Terminal window
zdev skill install codex
zdev skill check codex

Replace codex with claude, opencode, pi, omp, or agy if you use another harness. By default this installs at user scope so it works across repositories, and zdev skill check should report ok. Whenever you upgrade zdev later, refresh the integration with zdev skill install codex --force. See the harness reference for how capabilities differ across harnesses.

The hello.py example below uses Python 3, though zdev itself works with any language. If you would rather try this in an existing project, the same planning and implementation steps apply.

In a scratch directory, create a new repository with a one-line greeting script:

Terminal window
mkdir zdev-greeting
cd zdev-greeting
git init -b main
cat > hello.py <<'PY'
print("Hello, world!")
PY
python3 hello.py
git add hello.py
git commit -m "Add greeting program"

The script prints Hello, world!. Make sure Git has your author name and email configured before running the commit.

While you are still on main, initialize zdev and create a branch and area for the change:

Terminal window
zdev init --record personal
printf '\n/.zdev/\n' >> .git/info/exclude
git switch -c greeting
zdev area create greeting \
--title "Named greetings" \
--objective "Let hello.py greet a named person with --name."

Using personal keeps the planning files local to this clone, and the .git/info/exclude entry prevents Git from staging them while accepted source changes are still committed normally. If you want the planning record tracked in Git, versioned in its own shadow repository, or reviewed on a pull-request branch, see the record-policy reference.

An area groups work toward one objective. Here greeting is bound to the branch you just created, and its files live under .zdev/greeting/: brief.md holds the agreed outcome and boundaries, each task gets its own Markdown file under tasks/, and TASKS.md is generated from them.

Open your coding harness in this repository and send the following message in chat:

Use zdev to explore the greeting area. Add --name NAME to hello.py.
Without the option it should still print Hello, world! With --name Ada
it should print Hello, Ada! Use Python's standard library. Checking
those two invocations is enough validation for this example.
Use this checkout for the tutorial.

The agent reads the repository and writes .zdev/greeting/brief.md. Read it over: it should capture the two expected outputs, the standard-library boundary, and the agreed validation. If it adds extra scope you did not ask for, have the agent trim the brief before creating tasks.

For a larger change, this is where you would discuss open design questions. Here the requirements are already settled, so you can move straight to tasks.

Ask the agent to draft the task bundle:

Use zdev to create tasks for greeting. Show me the proposed bundle
before importing it.

The agent proposes one or more tasks and renders them for review, stating what will change and how completion will be checked. One task is plenty for this example; if the proposal splits it further or introduces extra work, ask for a simpler bundle.

Once the displayed bundle matches the brief, approve that exact version:

Import this exact task bundle for greeting.

Importing records the approved tasks without starting implementation, so you can stop here and resume in a new session if you like.

Now ask the agent to carry out one task:

Use zdev to implement the next task in greeting in this checkout.

The agent picks a task whose dependencies are satisfied, implements the change, and runs the agreed checks. A separate agent then reviews the code and verifies it against the task requirements and repository guidelines. If the reviewer finds required corrections, the implementer gets one correction pass followed by a focused recheck. Anything still unresolved, or any missing prerequisite, leaves the task open rather than forcing an acceptance.

Once verification passes, the coordinating agent marks the task done and commits the accepted source changes. Under a personal record, the commit has no zdev trailer, leaving the main Git history clean; project and pull-request records add a Zdev-Change-Id trailer to identify the logical change across rebases. Because you asked for one task, the run stops after that commit.

Check the result in the checkout where the agent committed:

Terminal window
python3 hello.py
python3 hello.py --name Ada
zdev status greeting
zdev next greeting
git log -1 --format=full

You should see Hello, world! and Hello, Ada! from the script, the completed task in zdev status, no ready tasks left in zdev next (assuming you imported one task), and the source change in the latest commit while .zdev/ stays untracked locally.

On a larger area, implement handles one ready task at a time, goal or loop works through the approved queue where your harness supports continuation, and a parallel batch runs compatible tasks in separate worktrees.

Finishing the last task leaves the area open so you can review the overall result before closing it. Once you are happy with hello.py, close the area:

Terminal window
zdev area close greeting

Merge the greeting branch with your usual Git workflow whenever you are ready. If a run is ever interrupted mid-task, run recovery before starting another task. From here, the command guide lists the other requests you can make in chat, and the workflow reference covers task selection, verification, branch handling, and recovery in full.