Skip to content

zdev area

Create and manage an area: one development objective, its brief, and its task queue. An area either belongs to an isolated branch or follows the project’s configured trunk.

Create an area on the checked-out branch:

Terminal window
zdev area create greeting \
--title 'Greeting command' \
--objective 'Greet a named person from the terminal'

After its tasks are complete, close it:

Terminal window
zdev area close greeting
zdev area create TAG --title TITLE --objective OBJECTIVE [--branch BRANCH | --trunk]
zdev area close AREA
zdev area reopen AREA

Creation writes area.toml, brief.md, TASKS.md, and an empty tasks directory under .zdev/TAG. Tags use lowercase letters, digits, and hyphens. Use --branch for an explicit owner or --trunk to follow project trunk. Without either flag, the mode follows workspace.branching. Under on-request, the default, an area created on the checked-out project trunk is a trunk area. Under isolated, on another branch, or with pull-request records, the checked-out branch owns the area. See the configuration reference.

Closing requires an empty or exhausted task queue. Reopening preserves task states. See area lifecycle for completion and reopening.

Form Effect
zdev area bind AREA [BRANCH] Bind to the named branch, or the current branch when omitted.
zdev area bind AREA --trunk Follow the configured project trunk.
zdev area parent AREA PARENT Use another area’s branch as the base.
zdev area parent AREA --remove Return to project trunk as the base.
zdev area rebase AREA Rebase the checked-out area branch onto its current base.
zdev area rebase AREA --continue Continue after resolving and staging conflicts.
zdev area rebase AREA --abort Restore the state before the managed rebase.

A new rebase requires a clean worktree. Read branch orientation and trunk areas before changing an area’s branch model.

zdev area profile AREA [HARNESS] [PROFILE] inspects or assigns an execution profile. Use --clear to remove the configured profile. Profile definitions are managed by config profile.

zdev area research AREA reads research settings. Add --from PATH to store validated JSON settings, or --from - to read standard input. This configures the policy without running an evaluator; research runs experiments. During an active research run, add --administrative REASON to change only the command text of existing correctness checks, such as a relocated path. The run records the amendment and keeps its comparison state; see amending a correctness command.