~ / rigs / bar181 / swarm-setup

bar181/swarm-setup

Transform your AI development with custom agent swarms optimized for Agentic Engineering - optimal settings for Claude Code and Claude-flow

↗ GitHub ★ 2 no license updated 1.2y ago personal setup Claude Code
share on X
ARCHETYPE
Orchestrator
A bench of specialised subagents. The main agent mostly delegates.
CONTEXT TAX · EVERY TURN
~13.7k tokens
Heavy · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details

Copy this rig

# review before running: this installs third-party code
$ claude mcp add supabase -- npx -y @supabase/mcp-server-supabase@latest --access-token ${env:SUPABASE_ACCESS_TOKEN}
$ claude mcp add --transport http mem0 'https://mcp.composio.dev/mem0/abandoned-creamy-horse-Y39-hm?agent=cursor'
$ claude mcp add --transport http perplexityai 'https://mcp.composio.dev/perplexityai/abandoned-creamy-horse-Y39-hm?agent=cursor'
$ npx degit bar181/swarm-setup/.claude ./rig-swarm-setup  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ claude mcp add supabase -- npx -y @supabase/mcp-server-supabase@latest --access-token ${env:SUPABASE_ACCESS_TOKEN}
$ claude mcp add --transport http mem0 'https://mcp.composio.dev/mem0/abandoned-creamy-horse-Y39-hm?agent=cursor'
$ claude mcp add --transport http perplexityai 'https://mcp.composio.dev/perplexityai/abandoned-creamy-horse-Y39-hm?agent=cursor'
$ curl -fsSL --create-dirs -o .claude/agents/backend-coder.md https://raw.githubusercontent.com/bar181/swarm-setup/main/.claude/agents/backend-coder.md
$ curl -fsSL --create-dirs -o .claude/agents/debugger.md https://raw.githubusercontent.com/bar181/swarm-setup/main/.claude/agents/debugger.md
$ curl -fsSL --create-dirs -o .claude/agents/epic-planner.md https://raw.githubusercontent.com/bar181/swarm-setup/main/.claude/agents/epic-planner.md
$ curl -fsSL --create-dirs -o .claude/agents/frontend-coder.md https://raw.githubusercontent.com/bar181/swarm-setup/main/.claude/agents/frontend-coder.md
$ curl -fsSL --create-dirs -o .claude/agents/frontend-expert.md https://raw.githubusercontent.com/bar181/swarm-setup/main/.claude/agents/frontend-expert.md
$ curl -fsSL --create-dirs -o .claude/agents/modular-designer.md https://raw.githubusercontent.com/bar181/swarm-setup/main/.claude/agents/modular-designer.md
$ curl -fsSL --create-dirs -o .claude/agents/optimizer.md https://raw.githubusercontent.com/bar181/swarm-setup/main/.claude/agents/optimizer.md
$ curl -fsSL --create-dirs -o .claude/agents/planner.md https://raw.githubusercontent.com/bar181/swarm-setup/main/.claude/agents/planner.md
$ curl -fsSL --create-dirs -o .claude/agents/product-owner.md https://raw.githubusercontent.com/bar181/swarm-setup/main/.claude/agents/product-owner.md
$ curl -fsSL --create-dirs -o .claude/agents/project-manager.md https://raw.githubusercontent.com/bar181/swarm-setup/main/.claude/agents/project-manager.md
$ curl -fsSL --create-dirs -o .claude/agents/researcher.md https://raw.githubusercontent.com/bar181/swarm-setup/main/.claude/agents/researcher.md
$ curl -fsSL --create-dirs -o .claude/agents/reviewer.md https://raw.githubusercontent.com/bar181/swarm-setup/main/.claude/agents/reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/security-expert.md https://raw.githubusercontent.com/bar181/swarm-setup/main/.claude/agents/security-expert.md
$ curl -fsSL --create-dirs -o .claude/agents/senior-developer.md https://raw.githubusercontent.com/bar181/swarm-setup/main/.claude/agents/senior-developer.md
$ curl -fsSL --create-dirs -o .claude/agents/test-writer.md https://raw.githubusercontent.com/bar181/swarm-setup/main/.claude/agents/test-writer.md
$ curl -fsSL --create-dirs -o .claude/agents/tester.md https://raw.githubusercontent.com/bar181/swarm-setup/main/.claude/agents/tester.md

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "permissions": {
    "deny": [
      "Bash(rm -rf /)",
      "Bash(curl * | bash)",
      "Bash(wget * | sh)",
      "Bash(eval *)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "cat | jq -r '.tool_input.command // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks pre-command --command '{}' --validate-safety true --prepare-resources true"
          }
        ]
      },
      {
        "matcher": "Write|Edit|MultiEdit",
        "hooks": [
          {
            "type": "command",
            "command": "cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks pre-edit --file '{}' --auto-assign-agents true --load-context true"
          }
        ]
      }
    ]
  }
}

MCP servers (3)

serversourceest. tokens
Supabase npm 7.0k
mcp.composio.dev · "mem0" remote · remote 2.5k
mcp.composio.dev · "perplexityai" remote · remote 2.5k

Subagents (16)

backend-coder—
debugger—
epic-planner—
frontend-coder—
frontend-expert—
modular-designer—
optimizer—
planner—
product-owner—
project-manager—
researcher—
reviewer—
security-expert—
senior-developer—
test-writer—
tester—

Hooks (7)

eventmatcherruns
PreToolUseBashcat | jq -r '.tool_input.command // empty' | tr '\n' '\0' | xargs -0 -I {} npx claude-flow@alpha hooks pre-command --command '{}' --validate-safety true --prepare-resources true
PreToolUseWrite|Edit|MultiEditcat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr '\n' '\0' | xargs -0 -I {} npx claude-flow@alpha hooks pre-edit --file '{}' --auto-assign-agents true --load-context true
PostToolUseBashcat | jq -r '.tool_input.command // empty' | tr '\n' '\0' | xargs -0 -I {} npx claude-flow@alpha hooks post-command --command '{}' --track-metrics true --store-results true
PostToolUseWrite|Edit|MultiEditcat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr '\n' '\0' | xargs -0 -I {} npx claude-flow@alpha hooks post-edit --file '{}' --format true --update-memory true
Stop*npx claude-flow@alpha hooks session-end --generate-summary true --persist-state true --export-metrics true
PreCompactmanual/bin/bash -c 'INPUT=$(cat); CUSTOM=$(echo "$INPUT" | jq -r ".custom_instructions // \"\""); echo "🔄 PreCompact Guidance:"; echo "📋 IMPORTANT: Review CLAUDE.md in project root for:"; echo " • 54 available agents and concurrent usage patter
PreCompactauto/bin/bash -c 'echo "🔄 Auto-Compact Guidance (Context Window Full):"; echo "📋 CRITICAL: Before compacting, ensure you understand:"; echo " • All 54 agents available in .claude/agents/ directory"; echo " • Concurrent execution patterns fr

Slash commands (71)

/analysis/COMMAND_COMPLIANCE_REPORT/analysis/performance-bottlenecks/analysis/token-efficiency/automation/self-healing/automation/session-memory/automation/smart-agents/coordination/init/coordination/orchestrate/coordination/spawn/github/code-review-swarm/github/github-modes/github/issue-tracker/github/multi-repo-swarm/github/pr-manager/github/project-board-sync/github/release-manager/github/release-swarm/github/repo-architect/github/swarm-issue/github/swarm-pr/github/sync-coordinator/github/workflow-automation/memory/neural/memory/usage/monitoring/status/optimization/auto-topology/optimization/parallel-execution/sparc/sparc/analyzer/sparc/architect/sparc/ask/sparc/batch-executor/sparc/code/sparc/coder/sparc/debug/sparc/debugger/sparc/designer/sparc/devops/sparc/docs-writer/sparc/documenter/sparc/innovator/sparc/integration/sparc/mcp/sparc/memory-manager/sparc/optimizer/sparc/orchestrator/sparc/post-deployment-monitoring-mode/sparc/refinement-optimization-mode/sparc/researcher/sparc/reviewer/sparc/security-review/sparc/sparc-modes/sparc/sparc/sparc/spec-pseudocode/sparc/supabase-admin/sparc/swarm-coordinator/sparc/tdd/sparc/tester/sparc/tutorial/sparc/workflow-manager/swarm/analysis/swarm/development/swarm/examples/swarm/maintenance/swarm/optimization/swarm/research/swarm/testing/training/neural-patterns/training/specialization/workflows/development/workflows/research

Permissions

deny (4)
Bash(rm -rf /)
Bash(curl * | bash)
Bash(wget * | sh)
Bash(eval *)
ask (0)
—
allow (16)
Bash(npx claude-flow *)
Bash(npm run lint)
Bash(npm run test:*)
Bash(npm test *)
Bash(git status)
Bash(git diff *)
Bash(git log *)
Bash(git add *)
Bash(git commit *)
Bash(git push)
Bash(git config *)
Bash(gh *)
Bash(node *)
Bash(which *)
Bash(pwd)
Bash(ls *)

Similar rigs

copied ✓