Skip to content

feat(teams): add agent team support with subagent definitions and skill migrations#55

Open
wpfleger96 wants to merge 1 commit into
mainfrom
feat/agent-teams
Open

feat(teams): add agent team support with subagent definitions and skill migrations#55
wpfleger96 wants to merge 1 commit into
mainfrom
feat/agent-teams

Conversation

@wpfleger96
Copy link
Copy Markdown
Owner

This PR adds Claude Code agent team support — a library of 7 subagent role definitions and migrations of /research and /code-reviewer to use native teams instead of ad-hoc Agent spawning.

Claude Code's experimental agent teams feature allows spawning coordinated teammates with shared task lists and peer-to-peer messaging. The version-controllable primitive is subagent definitions (.claude/agents/*.md), which ai-rules already symlinks from src/ai_rules/config/claude/agents/ — the directory just needed to be created and populated. Teams are gated to the personal profile so default-profile users don't get the experimental feature; work inherits it via extends: personal.

  • src/ai_rules/config/claude/agents/ — 7 role definitions symlinked to ~/.claude/agents/: security-reviewer (opus), perf-reviewer, test-coverage-reviewer, impl-worker (worktree-isolated), test-writer-agent, researcher, and research-synthesizer
  • /research Standard+ tiers migrated to TeamCreate + TaskCreate with researcher and research-synthesizer teammates; lead reviews synthesizer output before delivery; falls back to parallel Agent calls when teams unavailable
  • /code-reviewer Medium/Large path migrated: lead handles Design & Functionality inline while security-reviewer, test-coverage-reviewer, and optionally perf-reviewer run as teammates; crossfire path unchanged
  • CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 added to personal.yaml under settings_overrides.claude.env; work profile inherits via extends: personal

Agent role definitions (security-reviewer, perf-reviewer, impl-worker, etc.)
now live in a generic src/ai_rules/config/agents/ directory and get distributed
to both Claude Code (~/.claude/agents/) and Gemini CLI (~/.gemini/agents/) via
the SharedAgent symlink infrastructure — same pattern skills already use.

This replaces the prior Claude-only approach (src/ai_rules/config/claude/agents/)
with a portable-first design. Skills keep their existing Agent-tool orchestration
as primary, with a minimal conditional hint for teams optimization when available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant