Welcome, AI Agent. This document provides context, architecture, and instructions for working within the drover repository.
Part of the Drover Ecosystem:
droveris Drover Orchestrator—parallel task dispatch in Git worktrees via DBOS. It invokes Drover Code (and other agents) locally per worktree run. Milestone A hosted path: Drover Cloud runs single agent jobs on workers; Orchestrator is self-hosted and out of scope until a future platform integration.
Glossary: CONTEXT.md. Org index: ../AGENTS.md.
Drover is a durable workflow orchestrator designed to parallelize AI coding tasks. Instead of running a single agent linearly, Drover breaks down a large epic into dependencies, respects blockers, and executes tasks using multiple agents concurrently inside isolated Git worktrees.
- Language: Go 1.26.3
- Workflow Engine: DBOS —
dbos.Gofor concurrent steps,dbos.Sleepfor durable delays - Database: PostgreSQL (production) / SQLite (local)
- CLI: Cobra
- Observability: OpenTelemetry
- Agent interface: Pluggable — Claude Code, Codex, Amp, OpenCode, Drover Code
| Package | Purpose |
|---|---|
internal/workflow |
Core orchestration (Orchestrator, DBOSOrchestrator, step functions) |
internal/db |
SQLite/PostgreSQL persistence |
internal/executor |
Pluggable agent interface |
internal/git |
Git worktree lifecycle |
internal/config |
Configuration loading |
internal/analytics |
Task execution analytics |
internal/backpressure |
Adaptive concurrency (AIMD) |
internal/beads |
Hierarchical task ID parser |
internal/modes |
Execution modes (parallel, sequential, queue) |
pkg/telemetry |
OpenTelemetry |
workflow.GitManager— worktree operations; do not use*git.WorktreeManagerdirectly in orchestratorexecutor.Agent— pluggable agent executionclock.Clock— injectable time for tests
- Durable workflows: checkpointed by DBOS; resume after crash
- Git worktrees: isolated parallel agent workspaces
- Hierarchical tasks:
task-123.1sub-tasks (Beads-style) - Use
dbos.Gofor fire-and-forget side effects;dbos.RunAsStepwhen results are needed - Use
dbos.Sleepnottime.Sleepinside workflows - Use
clock.Clocknot rawtime.Now()in testable workflow paths
go build -o drover ./cmd/drover
go test ./...
go test -race ./...DBOS integration tests require DBOS_SYSTEM_DATABASE_URL.
- No non-deterministic work inside workflow functions without a DBOS step
- Respect OpenTelemetry spans on new operations
- Provisioning work never runs through Orchestrator — that is Drover Cloud only