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.
Install zdev
Section titled “Install zdev”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:
cargo install zdev --version 2.3.0 --lockedzdev --versionPrebuilt 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:
zdev skill install codexzdev skill check codexReplace 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.
Make a small repository
Section titled “Make a small repository”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:
mkdir zdev-greetingcd zdev-greetinggit init -b maincat > hello.py <<'PY'print("Hello, world!")PYpython3 hello.pygit add hello.pygit 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:
zdev init --record personalprintf '\n/.zdev/\n' >> .git/info/excludegit switch -c greetingzdev 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.
Agree on the change
Section titled “Agree on the change”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 Adait should print Hello, Ada! Use Python's standard library. Checkingthose 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.
Review the task
Section titled “Review the task”Ask the agent to draft the task bundle:
Use zdev to create tasks for greeting. Show me the proposed bundlebefore 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.
Implement, review, and verify
Section titled “Implement, review, and verify”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:
python3 hello.pypython3 hello.py --name Adazdev status greetingzdev next greetinggit log -1 --format=fullYou 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.
Continue or finish
Section titled “Continue or finish”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:
zdev area close greetingMerge 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.