ConfigHub · Durable config for coding agents
Docs / docs/swarms-and-durable-config.md Source on GitHub →

Durable Config & Agent Swarms

Short answer: ConfigHub is not a live swarm message board or task-coordination bus. It is the durable configuration, intent, and approval floor underneath any swarm.

A swarm board coordinates work in flight (task briefs, @mentions, wakeups, heartbeats, claims, code collaboration). ConfigHub governs what the system is supposed to be (settings, per-value reasons, environment variants, 3-way merges, and human production approvals).

EPHEMERAL (come and go)                        DURABLE (ConfigHub)
───────────────────────────────────────────    ──────────────────────────────────────────
Swarm workers / worktrees / chats / sandboxes ─▶ Zero Hub (hooks) ─▶ Local Hub ─▶ Cloud Hub
                                                 ├── settings + exact reason ("why")
                                                 ├── cross-worktree memory & undo guard
                                                 ├── shared defaults -> staging / live
                                                 └── cryptographic human approval gate

Clean split: Swarm Board vs. ConfigHub

ConcernSwarm board / orchestratorConfigHub
Briefs, @mentions, wakeups, heartbeats, worker statusOwnerNo
Task queues, leases, retries, sub-task handoffsOwnerNo
Intermediate reasoning & source-code collaborationOwner (+ Git)No
Durable config/infra state & per-value "why"Reads from hubOwner
Parallel config merge & same-field conflict refusalSurfaces/triggersOwner
Scoped worker keys, policy triggers, human prod approvalEnforced around workersOwner
Swarm roster, prompt, model, and limit configurationConsumes approved revOwner

Why not put swarm chatter in ConfigHub?

  1. Store what explains, not everything: high-frequency chat and heartbeat streams bury the small set of decisions that explain why a setting has its value.
  2. Keep the core small: swarm boards need push wakeups, leases, and threaded chat; ConfigHub primitives (Space, Unit, Revision, ChangeOrder, Trigger, OCI Bundles) are built for structured configuration and approval gates.
  3. Speed, token cost, and prompt-injection surface: running durable config transparently around workers via hooks avoids turning a shared config store into a peer-to-peer prompt-injection bus.

Swarm topologies: 1 machine vs. sandboxes vs. multi-machine fleets

ConfigHub is model- and runtime-agnostic. Plain Gemini / Antigravity, Claude Code agent teams, Codex parallel worktrees, Daytona sandboxes, c3agent, and google/ax all use the exact same three-stage progression:

Swarm setupExamplesStage that fitsWhat works transparently
1 machine (shared disk & git worktrees)Antigravity / Gemini swarms, Claude Code subagents & teams, Codex parallel worktreesZero Hub (v0.99.46+) → Local Hub (cub-server, Apple Silicon Mac)Zero Hub hooks share ~/.confighub/agent-changes across sibling git worktrees via --git-common-dir and watermark peer edits per file so workers see each other's uncommitted config changes and reasons before commit (~20 ms/hook). Step up to Local Hub for 3-way merge, previews, and scoped keys.
1 laptop + disposable sandboxesLocal agent spawning Daytona, Unikraft, Docker, or nono sandboxes that vanish on exitZero Hub (cub env exec --capture) → Local Hub or Cloud Hubcub env exec --mode test --capture keeps live credentials out of the sandbox and saves the winning config diff + rationale before teardown.
2+ machines, cloud sandboxes, or CI fleetsRemote Daytona workspaces, GitHub Actions matrix agents, c3agent pods, google/ax Substrate actors, Temporal workersCloud Hub (confighub.com or self-hosted Helm + OIDC)Local disk (~/.confighub) and loopback 127.0.0.1 Local Hub stop at one machine. Cloud Hub gives every remote worker its own scoped key, shared desired state, human prod approvals (cub inbox approve), and immutable OCI Config Bundles.

What works transparently at Zero Hub (v0.99.48+, macOS & Linux)

One ~4.8 MB MIT plugin (confighubai/confighub-mini-plugin) drops natively into all three leading AI consoles — Claude Code (hooks/hooks.json), Codex CLI (hooks/codex-hooks.json), and Google Antigravity (hooks.json, confighub mini hook --agy) — with zero servers and zero prompt changes:

Drop-in install across AI consoles

When to step up from Zero Hub → Local Hub → Cloud Hub

Keep Zero Hub transparent as long as workers share one machine and only need shared config memory and advisory guardrails. Graduate when the swarm hits one of these triggers:

TriggerWhy Zero Hub stops hereNext stage
Parallel workers editing the same app's settingsWarns on undo; no 3-way config merge or isolated preview/staging/live copiesLocal Hub (cub server local up, Apple Silicon Mac) or Cloud Hub
Hard production approval gateLocal hooks are advisory when workers share OS credentialsLocal Hub or Cloud Hub with per-worker scoped keys + cub inbox approve
Workers across containers, Daytona Cloud, CI, or multiple hosts~/.confighub/agent-changes is local disk onlyCloud Hub (confighub.com or self-hosted Helm)
Org-wide policy triggers & immutable fleet deliveryLocal --validate-config only; no org triggers or OCI release lifecycleCloud Hub + cub bundle OCI Config Bundles

Pairing with agent runtimes (c3agent, google/ax, orchestrators)

Agent platforms sit at three distinct layers rather than competing as one tool:

  1. Compute & swarm steering: google/ax (K8s/Substrate actors, suspend/resume/fork, task steering), Temporal, or a local harness.
  2. Team dispatch, threads, roles, & session handoff: c3agent (Slack channels, role-bound workstreams, terminal takeover) or a swarm message board.
  3. Durable config, per-value intent, & production gates: ConfigHub — embed the MIT Zero Hub plugin (darwin/linux, ~4.8 MB) inside workspaces/pods for passive config memory, and point cub at a Cloud Hub (or Local Hub on Apple Silicon Macs) with per-worker scoped keys for ChangeOrder production approvals.