Zero-Drift Workstations and Autonomous Agencies
Why reproducible macOS environments, repo-scoped Git brokers, and isolated Copy-on-Write workspaces make autonomous coding agents safe to run daily.
Running autonomous coding agents on a hand-crafted laptop is a recipe for subtle chaos. One missing Homebrew formula, one unpinned Python environment, or one careless git push using your personal hardware-backed SSH key is all it takes to turn a helpful assistant into an evening of clean-up.
Over the past year I converged on two complementary ideas: Groundhog for zero-drift workstation management, and groundhog-agency for delegating real implementation work without surrendering control of Git history or credentials.
Treat the Workstation as Code
A workstation drifts the moment you install a package “just to test something” and forget to record it. Groundhog keeps macOS reproducible through a small, auditable stack:
- Ansible + Homebrew: Every CLI, cask, font, and macOS default is declared once and re-applied idempotently.
- GNU Stow dotfiles: Shell, editor, terminal, and multiplexers live in versioned packages rather than scattered home-directory edits.
- Nushell by default: Structured tables replace brittle
awkandsedpipelines when inspecting processes, JSON payloads, or repository state.
When every tool on the machine is predictable, agents stop wasting turns diagnosing why node, uv, or ruff behaves differently between sessions.
Least-Privilege Autonomy
Even on a clean machine, an autonomous implementer should never hold the keys to the kingdom. Our agency workflow enforces three simple boundaries:
- Copy-on-Write (CoW) workspaces (
.ws/t-<N>): On APFS, cloning a workspace takes milliseconds and almost zero extra disk space. Each implementer edits solely inside its assigned directory while remaining completely VCS-blind—no branch switching, no rebasing, and no accidental force pushes. - Repo-scoped GitHub App brokerage (
agent-git/agent-gh): The orchestrator handles commits, pushes, and pull requests through scoped short-lived tokens onagent/<persona>/<slug>branches, never touching hardware-bound Secretive master keys. - Hard verification gates: Nothing ships until
make verifypasses cleanly and an independent reviewer checks the diff against the ticket’s acceptance criteria.
The Payoff
The real win isn’t raw speed; it’s calmness. You can queue a handful of well-scoped tickets, let the agency work through red/green TDD loops in parallel, and review clean, small pull requests with full confidence that your main branch and your laptop remain untouched.