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

Sveltos + ConfigHub AI Partner Kit (Opt-In sveltosctl ai setup Prototype)

Unlike upstream CNCF Flux or Argo CD, Sveltos already has a working cub sveltos integration (confighub/sveltos-confighub) and a single maintainer team, making an explicit, opt-in AI setup or co-launched Sveltos community edition practical today.

This folder is a working prototype you can run as-is or adapt directly into a subcommand such as sveltosctl ai setup.

Why opt-in instead of silent bundling

  • Installing sveltosctl never touches ~/.claude/ or ~/.codex/ behind a user's back.
  • Operators who want AI assistance explicitly opt in (either by running ./sveltos-ai-setup.sh / sveltosctl ai setup in their fleet repo, or by cloning a Sveltos fleet starter repo).
  • Everything written is project-scoped, inspectable in Git, and reversible with --undo.

What is in this folder

FileWhat it does
sveltos-ai-setup.shWorking opt-in CLI prototype (--dry-run, --client claude|codex|both, --install-plugins, --undo). Checks installed tools, writes project-scoped AI config, and prints exact next steps and undo commands.
.claude/settings.jsonDeclares the confighub plugin marketplace and enables confighub@confighub at repo scope so Claude Code prompts once to enable it.
AGENTS.mdRepo-level instructions defining Sveltos vs. ConfigHub ownership and forbidding agents from applying live ClusterProfiles or running apply.sh/handover.sh unreviewed.
skills/sveltos-with-confighub/SKILL.mdReusable skill combining sveltosctl, cub sveltos plan / apply / status, cub config check, and ConfigHub change history.

Try the prototype (dry-run first)

chmod +x sveltos-ai-setup.sh

# Preview what would be written in your fleet repo without touching anything:
./sveltos-ai-setup.sh --dir /path/to/your-sveltos-fleet --dry-run

# Apply project-scoped setup for Claude Code (or --client codex / --client both):
./sveltos-ai-setup.sh --dir /path/to/your-sveltos-fleet --client claude

# Undo cleanly at any time:
./sveltos-ai-setup.sh --undo --dir /path/to/your-sveltos-fleet

For Sveltos maintainers: two ways to ship this together

  1. Opt-in sveltosctl ai setup command: Embed the same project-scoped writer (AGENTS.md, .claude/settings.json, and sveltos-with-confighub/SKILL.md) behind an explicit sveltosctl ai setup subcommand with --dry-run and --undo.
  2. Co-launched Sveltos edition of the ConfigHub plugin: Publish a Sveltos-focused marketplace entry or starter pack pointing to sveltos-with-confighub, cub sveltos plan, and the Workshop Sveltos onboarding guide, starting 100% read-only and offline before any live cluster handover.