ConfigHub · Durable config for coding agents

For AI agents: read this first

This page teaches an AI agent what this project is, so it can help a person use it or explain it. It is written for agents, but people may read it too. Every page it names is listed, with a line on each, in llms.txt (and on the web router at https://confighub.github.io/helm-expt/ai-agents/llms.txt).

What the project is

Start with the person's app. ConfigHub keeps its setup as durable config in a hub, with the reason for each change. The next session can use it, and the next app can start from it. Change staging as the person asks. Propose production changes for an owner to approve, and verify what the running service reads.

A local hub runs on the person's own computer. A shared hub runs on confighub.com or the organization's own servers. Use cub on either, and move an app to a shared hub when other people or agents need it. From your laptop to a shared hub.

Start with the walkthrough for the app: Web, Argo CD (AI repo starter), AWS Parameter Store, Vercel, Next.js on Vercel, Heroku, Flux (AI repo starter), Sveltos fleets (AI partner kit), Daytona, Temporal worker, and Unikraft. Read its Agent section before doing the job for a person. For Rails on Fly, check staging first. Use the delivery command only after the owner approves the exact production order.

Then use the cub mini tour, your first hour, approve from Slack, size a service from real use, Git, the hub and what is running, and one base for ten apps, and staging and production in the app on your laptop. The walkthrough index has the remaining tools and stories.

The Claude plugin records settings without a hub. Codex has its own setup. On its own, with no hub, it records supported settings changes and the reasons the agent gives. What the next agent is told and which actions can be held depend on the client and operation; read the capability matrix. When the person asks for an app "using ConfigHub", it sets up the local hub.

How an app lives in a hub

An app connected to a hub has three copies of its settings:

A value one copy keeps as its own, such as production's database address, is never overwritten by a change to the base.

What you, the agent, may and may not do

Agent steps vs. person steps (setup)

StepWho runs itCommand / action
Preview what adopt would importAgentcub repo adopt . --dry-run (safe, read-only)
Install plugin or type slash commandsPersonclaude plugin install confighub@confighub (add --scope project for one repo) · /confighub:staging
Clear macOS Gatekeeper quarantine (manual download)Personxattr -dr com.apple.quarantine . (only after verifying SHA256SUMS)
Set up approval gate & scoped agent keyPersoncub agent require-approval APP --variant live --agent APP-agent
Approve, refuse, or deliver a production changePersoncub inbox list --card, then cub inbox approve BASE/ORDER and cub repo deliver (or cub inbox refuse BASE/ORDER --reason "...")
Edit staging / base & propose productionAgentcub repo set APP KEY=VALUE --variant staging --change-desc "WHY" / cub repo upload (always pass --variant and --change-desc)

The commands

Every workflow across Zero Hub, Local Hub, and Remote Hub uses the 7 canonical cub <noun> <verb> groups (cub env, cub bundle, cub agent, cub repo, cub secret, cub inbox, cub local; cub mini ... remains a silent compatibility alias). Plain cub can do all hub operations on any hub; 7-noun CLI & plain cub shows both.

CommandStageWhat it does
cub env share | join | exec | shell | preview | tryZero Hub (+ Hub preview)Share staging envs in memory, run guarded sandboxes, open local previews or isolated tries
cub bundle init | validate | build | inspect | podspecZero HubValidate structured YAML and build deterministic OCI Config Bundles (K8s 1.36+ volumes[].image)
cub agent why | changes | lock | undo | permissions | checks | require-approvalZero Hub (+ Hub keys)Cross-session memory, field locks, config-only undo, permissions/MCP checks, scoped agent keys
cub repo inventory | adopt | upload | set | deliver | rollback | starter | starter-exportZero → Local/RemoteMap GitOps repos, connect apps into base/staging/live, set values with reasons, deliver 1:1
cub secret set | list | files | pull | pull-keyLocal / Remote HubStore secrets no agent key can read, mint minimal pull keys, write approved files
cub inbox list | approve | refuse | reviewLocal / Remote HubDecision Inbox: inspect pending proposals and approve or refuse them (person commands)
cub local start | stop | status | uninstall | connect | offer | copy | to-hub | start-fromLocal ↔ RemoteManage the Local Hub on 127.0.0.1, start an app from an existing app, and graduate to a Remote Hub

In Claude Code, the plugin adds 6 slash commands. The person types them; an agent cannot, so tell the person which one to type:

(Permissions, MCP checks, and starters are CLI commands: cub agent permissions, cub agent checks, and cub repo starter / cub local start-from.)

Starters

A starter gives apps of one kind the team's defaults, each with a reason. Use CUB_MINI_STARTERS=on to start with the packaged starters, or name a folder of your own. Once the owner approves a starter in the hub, the hub supplies it to new apps. An existing app can take an approved upgrade and keep its own values. To make a second app from the first app's setup, use cub repo adopt FOLDER --pattern FIRST_APP. See starters.

Which page answers which question

The person asksRead
Show me how to do X, step by stepwalkthroughs: one page for each tool and for most starters and user stories
How do I start?README, then a new app or an app you already have
My app is deployed by Argo CD, Flux, or Sveltosan app Argo CD or Flux deploys · AI for Flux · AI for Argo CD · AI for Sveltos fleets
How do approvals work?approvals
What does the Claude plugin record, and where?how it works
How do I stop or limit an agent?agents that run for weeks
How do I undo something, or remove it all?going back
Does it work with my tools?integrations
What doesn't it do?limits

The Claude plugin's own instructions for an agent at work are the skill app-with-confighub.

If you are changing this repository

plugins/confighub/ is built by each release, so do not edit it here; describe the change in an issue instead. The guides are in docs/, and fixes to them and to examples/ are welcome as pull requests. Commands and output in the guides come from released versions, so run a command before you quote its output.