zdev 1.0: yet another agentic loop, this one is mineDRAFT
When I use coding agents for work larger than a single patch, the harness usually handles each individual step well: exploring a repository, comparing designs, implementing a task, and reviewing a diff. The awkward part is keeping the work coherent from one session to the next.
There are plenty of systems for running agentic loops, and I have built one too. Writing your own is starting to feel like the agentic-development equivalent of the web-development “write a blog” starter project.
zdev 1.0 is my version, published as an open-source command-line tool and agent skill in case a concrete example helps other people building their own workflows.
Zdev keeps a small development loop right inside the repository. An area represents one coherent objective, with a brief for shared decisions and individual Markdown files for the implementation tasks.
A small example
Suppose I want to add CSV export to a scheduling application. A condensed version of the first interaction might look like this:
Me: Use zdev to explore adding CSV export for the schedule currentlyshown to the user.
Agent: I found two export paths in the repository, but neither uses thefilters from the schedule view. Before I finish the brief:
1. Should the export contain all assignments or only the visible ones?2. Should timestamps retain the schedule's stored time zone or use UTC?3. Should exporting require the same permission as viewing the schedule?
Me: Use the visible assignments and require the same permission as theschedule view. Retain the schedule's stored time zone; my reasoning isthe same as in:https://codeblog.jonskeet.uk/2019/03/27/storing-utc-is-not-a-silver-bullet/
Agent: I created the schedule-export area and recorded those decisionsin its brief.Once I agree with the brief, I ask zdev to turn it into tasks:
Me: Create tasks for the schedule-export area.
Agent: Prepared three tasks for review:
schedule-export-001 Add the CSV serialiser and testsschedule-export-002 Add the authenticated download endpoint depends on: schedule-export-001schedule-export-003 Add the export button and error handling depends on: schedule-export-002
Import this task bundle?
Me: Yes.I can end the session there and pick up later just by asking for the next task:
Me: Use zdev to implement the next task.
Agent: Selected schedule-export-001. The implementation agent added theserialiser and tests. A fresh agent verified the task against the diffand repository rules: PASS.
Completed schedule-export-001 and recorded commit 4c12a9e.If verification had failed, the task would have gone back to implementation with the findings. Either way, the next session picks up from the brief and the remaining tasks on disk rather than relying on my memory of an earlier conversation.
If I want the agent to keep going until the whole area is finished, I can set a goal:
Me: Set a goal to use zdev to run the schedule-export area until alltasks are complete.The goal lives with the agent rather than with zdev itself: it tells the agent to keep picking, implementing, and verifying tasks until nothing is left, while zdev supplies the state on disk and the next ready task.
The loop
The split of responsibilities is simple: I leave judgment to the agent and bookkeeping to the binary. The agent decides whether a module boundary makes sense or whether a test checks the right behaviour. The CLI validates task structure and dependencies, ties an import to the exact bundle I reviewed, regenerates the index, and selects the next ready task.
Zdev only writes down the state that actually needs to survive between sessions: metadata, the area brief, individual task files, and a generated index. It does not save model transcripts or maintain a separate execution database alongside Git.
For an area named scheduling, the layout looks like this:
.zdev/├── config.toml├── guidance.md # optional repository guidance└── scheduling/ ├── area.toml # objective, branch, and base metadata ├── brief.md # decisions shared by the whole area ├── TASKS.md # generated task index └── tasks/ ├── scheduling-001.md ├── scheduling-002.md └── scheduling-003.mdBecause the brief and task files are plain Markdown, they can be reviewed and tracked in Git like anything else in the repository.
TASKS.md is generated, so each task has a single source of truth.
The complete task loop is:
Using the zdev skill
In practice, I tell the coding harness to use zdev and describe what I want in ordinary language. Depending on the request, the skill takes one of these paths:
- Explore an objective: inspect the repository, compare plausible approaches, and create or revise the area brief.
- Discuss the brief: push back on choices that could affect behaviour, scope, task boundaries, or validation.
- Improve: survey the codebase without modifying it and return vetted candidate work.
- Investigate: answer one specific uncertainty through research, diagnosis, or a throwaway prototype.
- Create tasks: break an agreed brief into tasks with explicit dependencies and done conditions, presenting the rendered bundle for my approval before importing it.
- Implement: pick the next ready task and delegate it within its declared boundaries.
- Verify: hand the task, diff, and repository rules to a fresh agent; a failed review goes back to implementation, and only a pass allows completion and commit.
These modes all work against the same brief and task files, but they have different boundaries on what they are allowed to touch. An investigation can inform a design choice without editing production code, an audit finding only becomes work if I accept it, and verification is not allowed to quietly redefine the task it is checking.
What I borrowed
Zdev pulls together ideas from several existing projects. Get Shit Done, now maintained as GSD Core, gave me the flow from requirements and research through planning, execution, and verification. beads and its Rust port, beads_rust, showed how dependency-aware tasks can live right inside a repository. Matt Pocock’s agent skills contributed patterns for structured discussion, codebase exploration, task decomposition, investigation, and separate implementation review. The audit mode adapts shadcn’s Improve skill, which surveys a codebase, vets its findings, and stops before turning into edits.
For a while I used these tools and skills side by side, which got messy quickly: planning wrote one kind of file, issue tracking expected another, implementation assumed a third workflow, and each skill had its own idea of when it was allowed to modify the repository. Putting them under one brief format, one task model, and one set of review boundaries was the main reason to build zdev.
The same skill in different harnesses
Codex, Claude Code, OpenCode, Pi, and Oh My Pi all differ in how they discover skills, ask structured questions, expose commands, and spawn fresh agents. Zdev renders the same workflow contract into a native integration for each one:
- Codex uses collaboration agents, including a fresh context for verification.
- Claude Code defines scoped implementer and verifier agents, plus zdev task and audit commands.
- OpenCode installs a skill, agents, and
/zdev-taskand/zdev-auditcommands. - Pi installs prompt templates and an extension that spawns a fresh child process for implementation or verification.
- Oh My Pi uses constrained native task agents along with OMP’s task and hub facilities.
Across all five, the task format, approval gate, independent verification, and CLI commands stay the same, and discussion uses the harness’s built-in question mechanism whenever one exists.
Integrations can be installed per user across repositories or checked into a single project. Project-scoped installs also fold the repository’s own guidance into the generated harness files, so every agent gets the right build, test, generated-file, and safety rules without hard-coding them into zdev.
Installing zdev
Zdev is a Rust binary for macOS and Linux on x86-64 and Arm64. Prebuilt binaries are on the GitHub release and are the simplest option if you do not want to compile it yourself. It is also on crates.io:
cargo install zdev --lockedThe same binary installs the integration for whichever coding harness you use:
zdev skill install codex# or: claude, opencode, pi, ompShipping the integration inside the binary means the skill prompts and CLI contract always come from the same version, with no separate prompt repository to keep in sync.
I maintain zdev in public mainly as a personal tool, and 1.0 was the point where the loop felt stable enough in my own daily work to share. I still expect to make breaking changes, including new major versions, whenever using it points to a cleaner design. The core I intend to keep is small: durable briefs and tasks, reviewed imports, separate implementation and verification, and Git commits that stay legible as history moves on.