Skip to content

Worktree checkpoints ​

Every DevAgent worktree carries a lightweight, free-text comment field visible in the UI — a status snapshot of what the worktree is doing right now. Agents can update it from the CLI, and it's the pattern we recommend for keeping human collaborators in the loop without forcing chat.

The pattern ​

devcore worktree set --worktree active --comment "reproduced auth failure; testing credential-chain fix" --json

Card status (optional) ​

Alongside the free-text comment, set the workspace card status when the phase changes:

devcore worktree set --worktree active \
  --comment "fix implemented; running integration tests" \
  --workspace-status in-progress \
  --json

Statuses: todo, in-progress, in-review, completed (or a custom id your workspace uses).

Good checkpoint moments ​

  • Finished a meaningful slice of implementation.
  • Confirmed or refuted a hypothesis.
  • Completed a code review.
  • Hit a blocker (waiting on external input, upstream bug, missing access).
  • Transitioning from investigation to fix, or fix to verify.

Format ​

First line is the action: what just happened, where, and the status or next step.

devcore worktree set --worktree active --comment "added debounce to SearchBar onChange (src/components/SearchBar.tsx); ready for review
goal: reduce redundant API calls per #298" --json

Reading before writing ​

If the comment might have user-written context, read it first so you don't clobber goals or constraints:

devcore worktree current --json

Preserve what's still valid, drop what's stale, and weave in your update.

DevAgent Desktop Documentation