Skip to content
ConfigHub for coding agents
Reference / examples/gitops-ai/sveltos/AGENTS.md Source on GitHub

Sveltos + ConfigHub Agent Instructions

This fleet is delivered by Sveltos (ClusterProfile / Profile / SveltosCluster) and governed by ConfigHub (cub sveltos + ConfigHub plugin). Use each tool for the half it owns, never mutate live cluster profiles without explicit human approval.

Division of labor

Question or taskUseExamples
Live fleet status, cluster matching, deployed add-on health, drift repairSveltos (sveltosctl) and kubectl (read-only)sveltosctl show addons, kubectl get clusterprofiles,sveltosclusters -A
Offline fleet onboarding preview, rendered chart objects, stage layout (staging → prod-eu → prod-us)ConfigHub Sveltos plugin (cub sveltos, offline)cub sveltos plan my-fleet.yaml --stage-label env --stages staging,prod
Schema validation of rendered fleet manifests before savingConfigHub Workshop plugin (cub config check, read-only)cub config check onboard/<base>/<base>.yaml
Why a fleet value changed across sessions, cross-stage diffs, change historyConfigHub plugin/confighub:why KEY, /confighub:changes, cub mini changes --why KEY
Syncing Sveltos delivery observations back into ConfigHubConfigHub Sveltos plugincub sveltos status --kube-context <mgmt-ctx>

Rules for coding agents

  1. Always start offline and read-only. Confirm kubectl config current-context before reading a management cluster. Export ClusterProfile / SveltosCluster YAML (excluding Secrets) and run cub sveltos plan first, this changes nothing on the cluster and needs no ConfigHub account.
  2. Validate before saving. Run cub config check onboard/<base>/<base>.yaml on generated outputs and report every exclusion, Helm hook warning, or schema error to the person. Never pass --include-hooks blindly.
  3. Human-only live steps. Never run onboard/apply.sh, onboard/handover.sh, kubectl apply against live ClusterProfiles, cub variant approve, or cub release publish for production stages yourself. Prepare the plan or proposed field change with --change-desc, show the diff, and hand the exact command to the human operator.
  4. Protect credentials. Never export or commit Kubernetes Secret objects, Sveltos kubeconfigs, or sveltos-delivery gateway tokens into review files, chat output, or Git.