- Picks one ready task per run from the aven
todoqueue, limited to improver and security-analyst findings, reopened test-writer PRs, and tasks you created yourself ("taskFilter": { "found-by": ["improver", "security-analyst", "test-writer", null] }) - Works in an isolated git worktree (never touches the main working tree)
- Makes minimal, focused changes following existing code style
- Does not commit or push; the orchestrator handles all git operations and PR creation
- Default cron: every 5 minutes (
*/5 * * * *)
What a run does
Section titled “What a run does”vteam run coder- Acquires an advisory lock (
locks/coder.lockin the project’s state directory) - Under a short-lived claim lock shared by all agents (
locks/task-claim.lock), picks the highest-severity ready task routed to it from aven (aven list --status todo --readyfiltered by itstaskFilter, see Triage and routing; oldest first within a severity; skips tasks that have failedmaxRetriestimes), or the task given with--task, and sets it toactivewithclaimed-*metadata - Fetches the base branch and creates a git worktree at
worktrees/vteam/<task-title-slug>-<runId>in the project’s state directory, branched fromorigin/<baseBranch>, so the branch starts from the latest remote code and never picks up unpushed local commits - Builds the prompt with the task description, the task’s aven notes (including summaries from earlier attempts), existing task titles, and agent instructions
- Spawns
claude -pin the worktree; Claude implements the fix and returns a commit message as structured JSON - If Claude reported changes:
- The orchestrator commits (
git add -A+git commitusing Claude’s commit message) - Pushes the branch to origin with
--force-with-lease, retrying network errors - Creates a pull request via
ghorglab(falls back gracefully if the CLI is missing or labels don’t exist) - Sets the task to
donewith completion metadata
- The orchestrator commits (
- If Claude reported no changes: returns the task to
todoand increments itsretry-countmetadata - On any other ending (crash, error): returns the task to
todowithout incrementing retries - Unless it crashed or errored, adds an aven note to the task with Claude’s summary (and blocker reason or PR URL, if any)
- Cleans up the worktree
- Releases the lock
Follow-ups
Section titled “Follow-ups”When a task already has a PR (pr-url metadata), the coder works on that PR instead of opening a new one. See Following up on review comments.