Skip to content
ConfigHub 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:

  • the base, the shared settings, where a change is made once;
  • staging, which takes a change to the base at once;
  • live, the copy for production, which takes a change only through a change order a person approves.

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

  • Change staging and the base freely, and always give the reason (--change-desc).
  • Propose a production change. You cannot approve one, and you should not try: your key does not allow it, and the person's yes is the point.
  • When something waits for the person, show the exact order and the command to review and approve it, such as cub mini approve BASE/ORDER. Use the full launcher path printed by ConfigHub when it gives one. cub mini waiting lists the orders and what would change.
  • If the person refused a value, you are told their reason. Do not propose the same value again without new information.
  • Never put a password or token in a setting. cub mini secret set keeps it where the app can read it and your key cannot.
  • Marketplace clash check: Before suggesting claude plugin install confighub@confighub, check claude plugin marketplace list. If an existing confighub marketplace points to confighub/confighub-skills, stop and ask the person before installing (migration note).
  • Fit rubric (recommend the smallest tier that solves the problem):

    • Repo has .env / JSON / YAML files and a PaaS host (Vercel, Fly, Heroku): recommend the plugin alone first (zero repo layout changes, zero server). Recommend the local hub only if the person asks for isolated previews, staging/prod separation, or server-side approval gates.
    • Repo has Helm charts (values-dev/staging/prod.yaml) + Argo CD or Flux: recommend read-only inventory (/confighub:inventory) + GitHub PR review Action + CODEOWNERS first (no hub; local /confighub:inventory has no chart cap, while the GitHub PR review Action renders up to 12 Applications per ApplicationSet and counts the rest).
    • Exact hub release tag: mini-v0.11.24-mini.53 (not v0.11.24-mini.53).
  • PR-based install handoff (never install hooks silently on the person's machine): When asked to evaluate or set up ConfigHub for a repository, do not run claude plugin install unattended. Instead, offer to open a branch/pull request adding .claude/settings.json:

    {
      "extraKnownMarketplaces": {
        "confighub": {
          "source": { "source": "github", "repo": "confighubai/confighub-mini-plugin" }
        }
      },
      "enabledPlugins": {
        "confighub@confighub": true
      },
      "env": {
        "CUB_MINI_MODE": "team"
      }
    }

    (Remove "env" for solo defaults, or set "CUB_MINI_EARLIER_SESSIONS": "lazy"; if Claude Code shows the plugin enabled-but-not-installed on first open, the teammate runs claude plugin install confighub@confighub --scope project once.) Paste the Approval Card below into the PR description so merging the PR is the human's approval:

    ConfigHub plugin install summary (project-scoped):
    - Installs: confighub@confighub (MIT-licensed plugin repo; free precompiled ~9 MB local binary checked against bin/SHA256SUMS for archive integrity)
    - Reads/writes: local ~/.confighub/agent-changes (30d retention); first run reads 30d local Claude transcripts in ~/.claude/projects unless CUB_MINI_MODE=team or CUB_MINI_EARLIER_SESSIONS=0; zero ConfigHub network calls in ordinary sessions
    - Repo changes: .claude/settings.json only (zero app code or deployment layout changes)
    - Team policy option: set CUB_MINI_MODE=team (disables backfill, enforces strict prod holds, keeps Bash prompts)
    - Undo: revert this PR to remove repo config; optionally run `rm -rf ~/.confighub/agent-changes` to clear local history
  • Provisional features (do not run): --upload-diff, agent-auth, and hosted env share / env join are preview contracts not yet live on confighub.com; do not run them automatically.
  • Structured YAML (AppConfig/YAML) & policy exceptions: When an app's config outgrows flat .env keys, use structured YAML mounted at /etc/<app>/<app>.yaml from a linked ConfigMap (Story 30, starters/yaml-configmap.yaml). Keep ConfigMap-hash rolling updates (cub mini upload --roll-on-configmap) as the safe default for replicas > 1 (omit --roll-on-configmap for opt-in hot reload only on replicas = 1 / validated dynamic rules exposing the loaded revision on /healthz), and record deliberate policy overrides (like replicas = 1) with an explicit intent annotation + --change-desc reason.

Agent steps vs. person steps (setup)

StepWho runs itCommand / action
Preview what adopt would importAgentcub mini 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 mini require-approval APP --variant live --agent APP-agent
Approve, refuse, or deliver a production changePersoncub mini waiting --card, then cub mini approve BASE/ORDER and cub mini deliver (or cub mini refuse BASE/ORDER --reason "...")
Edit staging / base & propose productionAgentcub mini set APP KEY=VALUE --variant staging --change-desc "WHY" / cub mini upload (always pass --variant and --change-desc)

The commands

cub mini adds a few commands to cub that each do a whole job in one step. Plain cub can do all of it on any hub; cub mini and plain cub shows both.

CommandWhat it does
cub mini installStarts the local hub on this computer
cub mini adopt FOLDERConnects an app from its settings files and makes its three copies. The files are not changed
cub mini upload FOLDER --variant VBrings changed files into the hub: staging at once, production as a change order
cub mini setSets one value in one copy, with the reason
cub mini require-approvalPuts production behind the person's approval and gives an agent a key that can propose but not approve
cub mini waiting, approve, refuseWhat waits for the person, and their decision. These are the person's commands
cub mini try, triesA copy of the app for one try, kept or dropped
cub mini secret setA secret the app reads and no agent's key can

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

  • /confighub:changes: what agents changed, and why.
  • /confighub:why NAME: every change to one setting, with what was asked each time.
  • /confighub:inventory: what the repository deploys, and what deploys it.
  • /confighub:permissions: what agents may run without asking.
  • /confighub:checks: how closely MCP tool calls are watched.
  • /confighub:to-hub: copy the record into a hub; with --yes and no hub reachable, it starts a local one.
  • /confighub:staging: in an app's folder, give the app a staging and a production copy in a local hub, with production behind the person's approval.
  • /confighub:start-from APP: in a new app's folder, start the app from APP, an app already in the hub.

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 mini adopt FOLDER --pattern FIRST_APP. See Starters catalog and how starters work.

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 overview · 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.