Git integration internals
One git-service backs both the user-facing Changes drawer and AIgency's worktree/branch automation, always shelling out to a real git executable.
AgentDock has no bundled or vendored git implementation — every git-related feature shells out to the git executable configured in Settings (git on PATH by default; see Advanced & diagnostics), through src/main/services/git-service.ts.
What it's used for
- Diff and status — the Changes drawer's changed-file list and per-file diffs, plus its file-revert action.
- Worktree and branch automation (AgentDock Pro) —
aigency-worktree-service.tscalls into the same git service to create and clean up isolated worktrees under.aigency-worktrees/<runId>/<taskId>, on branches namedaigency/<runId8>/<taskId8>-<slug>— see AIgency worktree service.
Scope discipline
Destructive git operations (a file revert, worktree cleanup) stay explicit and scoped to what the user or the orchestrator actually asked for — there's no blanket "reset everything" operation exposed anywhere in the git service's surface. See Safety behaviour.