ConfigHub · Durable config for coding agents
Docs / examples/walkthroughs/story-28-multi-agent-handoff.md Source on GitHub →

28. Three agents, zero shared chat history, one operational memory

Three engineers work on the same service (fx-api) using three different AI coding agents — Claude Code (claude-dev), Codex (codex-ops), and Antigravity (agy-oncall) — with zero shared chat transcripts. Each agent has its own scoped ConfigHub service account and one thin shared skill (examples/skills/confighub-ops/SKILL.md):

A hub is a ConfigHub server and database that stores your app's settings, the reason for each value, and who approved each change — locally on your laptop, hosted on confighub.com, or self-hosted in your cluster.

Quick start

You need: cub with a local hub (install the local hub) or a shared hub, and the portable skill examples/skills/confighub-ops/SKILL.md.

By handAsk your agent
Adopt the app and issue scoped keyscub repo adopt . --name fx-api then cub agent require-approval fx-api --variant live --agent claude-dev (repeat for codex-ops, agy-oncall)"Adopt fx-api into ConfigHub and create scoped agent keys for dev, ops, and on-call."
Agent 1 ships to stagingCUB_CONTEXT=claude-dev cub repo set fx-api FX_POLL_INTERVAL_MS=1000 --variant staging --change-desc "1s live FX ticker""Set FX_POLL_INTERVAL_MS=1000 in staging with a clear reason."
Agent 2 inspects cold and hardensCUB_CONTEXT=codex-ops cub revision list --space fx-api-staging app then propose hardening to live"Inspect what changed in staging, harden rate limits and cache for prod, and propose it for approval."
Agent 3 fixes 2 AM incident coldCUB_CONTEXT=agy-oncall cub revision list --space fx-api-live app then propose FX_CACHE_TTL_SEC=15"Check fx-api-live history for why 429s started and propose a surgical fix without reverting the ticker or touching FX_SPREAD_BPS."
Human approves productioncub inbox approve ORDER (agents are refused by the hub)You approve production yourself.

Without ConfigHub: each agent only sees its own local chat transcript and static Git files, so an on-call agent at 2 AM has to guess why a setting exists or blindly revert a whole release.

Where this grows (1:46 video): Watch the ConfigHub Trailer to see this exact cub unit blame + approval + field-guard workflow running across multi-region Kubernetes fleets with Argo CD, Flux, and Sveltos.

Deeper dive

Show the full walkthrough

Human

What you need

A local hub (cub local start) or shared hub, and an app folder with .env containing FX_POLL_INTERVAL_MS=5000, FX_RATE_LIMIT_RPM=60, FX_CACHE_TTL_SEC=30, and FX_SPREAD_BPS=25.

Steps

  1. Adopt fx-api and create three scoped agent keys:
    cub repo adopt . --name fx-api
    cub inbox approve fx-api --yes
    cub agent require-approval fx-api --variant live --agent claude-dev --try staging
    cub agent require-approval fx-api --variant live --agent codex-ops
    cub agent require-approval fx-api --variant live --agent agy-oncall
  2. As claude-dev, ship the 1-second ticker to staging with a reason:
    CUB_CONFIG="$HOME/.confighub-agent-claude-dev" CUB_CONTEXT=claude-dev \
      cub repo set fx-api FX_POLL_INTERVAL_MS=1000 --variant staging \
      --change-desc "claude-dev: 1s live FX ticker for Harbor Bank FX desk"
  3. As codex-ops (zero shared chat), read staging's history and propose the hardened production values:
    CUB_CONFIG="$HOME/.confighub-agent-codex-ops" CUB_CONTEXT=codex-ops \
      cub revision list --space fx-api-staging app
    CUB_CONFIG="$HOME/.confighub-agent-codex-ops" CUB_CONTEXT=codex-ops \
      cub repo set fx-api FX_POLL_INTERVAL_MS=1000 FX_RATE_LIMIT_RPM=10 FX_CACHE_TTL_SEC=0 --variant live \
      --change-desc "codex-ops: carry 1s ticker, enforce 10 RPM per-pod vendor cap, disable stale quote cache"
  4. Verify that codex-ops cannot self-approve any waiting order, then approve the hardened release as the human owner:
    cub inbox approve fx-api-file-proposals/ORDER --yes
  5. As agy-oncall (2 AM cold start, zero shared chat), read fx-api-live history and propose the surgical forward fix FX_CACHE_TTL_SEC=15; approve as the human owner and confirm FX_POLL_INTERVAL_MS=1000, FX_RATE_LIMIT_RPM=10, FX_CACHE_TTL_SEC=15, and FX_SPREAD_BPS=25:
    CUB_CONFIG="$HOME/.confighub-agent-agy-oncall" CUB_CONTEXT=agy-oncall \
      cub revision list --space fx-api-live app
    CUB_CONFIG="$HOME/.confighub-agent-agy-oncall" CUB_CONTEXT=agy-oncall \
      cub repo set fx-api FX_CACHE_TTL_SEC=15 --variant live \
      --change-desc "agy-oncall: fix HTTP 429s by caching vendor FX quotes 15s without reverting 1s ticker or touching FX_SPREAD_BPS"

Agent

Follow examples/skills/confighub-ops/SKILL.md: always use your assigned CUB_CONFIG and CUB_CONTEXT, inspect cub revision list before editing, attach a clear --change-desc to every change, and never attempt to approve production changes yourself.

Testing

The full three-agent handoff ran end to end against a real ConfigHub v0.11.1 hub on macOS arm64 with three separate scoped service accounts (claude-dev, codex-ops, agy-oncall). codex-ops attempting to approve a live change order was refused by ConfigHub (only a person named as an approver for production can approve this change, and codex-ops is not one. Nothing was changed). After agy-oncall's surgical fix and human approval, fx-api-live held FX_POLL_INTERVAL_MS=1000, FX_RATE_LIMIT_RPM=10, FX_CACHE_TTL_SEC=15, and FX_SPREAD_BPS=25.

As claude-dev, set FX_POLL_INTERVAL_MS=1000 in staging with a reason.

As agy-oncall, inspect fx-api-live history and propose FX_CACHE_TTL_SEC=15 without reverting the ticker or touching FX_SPREAD_BPS.

This proves: three different AI agents with zero shared chat history can hand off, harden, and recover a production service safely using ConfigHub as their shared operational memory, with human approval enforced on every production change.

Test results

26 November 2026, on published confighub-mini-0.11.1-mini.41 (macOS arm64). Three scoped service accounts (claude-dev, codex-ops, agy-oncall) ran Acts 1–3 with zero shared chat history. codex-ops self-approval was refused by ConfigHub; human owner approved hardened release and agy-oncall's surgical FX_CACHE_TTL_SEC=15 fix; final fx-api-live held FX_POLL_INTERVAL_MS=1000, FX_RATE_LIMIT_RPM=10, FX_CACHE_TTL_SEC=15, and FX_SPREAD_BPS=25.