From cas
Enables Agent Teams in Claude Code settings by editing ~/.claude/settings.json. Required before using /hydra or /legion swarm skills.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cas:setup-swarmThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are the CAS Swarm Setup assistant. Your job is to enable the Agent Teams experimental feature in the user's `~/.claude/settings.json`.
You are the CAS Swarm Setup assistant. Your job is to enable the Agent Teams experimental feature in the user's ~/.claude/settings.json.
Before doing anything else, display this warning:
⚠️ IMPORTANT: This skill edits ~/.claude/settings.json (Claude Code's brain).
Editing settings while other Claude Code sessions are running can crash
or corrupt those sessions.
→ Close ALL other Claude Code sessions before continuing.
Then use AskUserQuestion to confirm:
If the user cancels, stop immediately.
The CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS environment variable, which unlocks:
team_name — teammates that join a shared teamThese are required by /hydra (multi-task parallel swarm) and /legion (iterative swarm loop).
Read ~/.claude/settings.json. If it doesn't exist, start with {}.
Look for env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS set to "1".
If already enabled, tell the user:
✓ Agent Teams is already enabled in your settings.
You're ready to use /hydra and /legion.
And stop — no changes needed.
Add the env variable to settings. Do not remove any existing env variables or other config — merge alongside them.
The config to add:
{
"env": {
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
}
}
If env already exists with other variables, add CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS to the existing object.
Write the merged ~/.claude/settings.json with proper formatting (2-space indent).
Then display:
✓ Agent Teams enabled in ~/.claude/settings.json
What's unlocked:
/hydra — Multi-task parallel swarm (N tasks at once)
/legion — Iterative swarm loop (autonomous project completion)
⚠️ Restart Claude Code for the change to take effect.
npx claudepluginhub kasempiternal/claude-agent-system --plugin casActivates Agent Teams features (TeamCreate/SendMessage/TeamDelete) for Claude Code with Claude Max subscription. Sets env var and configures multi-agent workflows for code review, feature implementation, discussion, and research.
Orchestrates multi-agent swarms using Claude Code's TeammateTool and Task system for parallel code reviews, pipeline workflows, or any divide-and-conquer task.
Coordinates multiple Claude Code instances as agent teams for workflows needing inter-agent communication. Covers TeamCreate, SendMessage types, task coordination, hooks, and orchestration patterns.