From grok-swarm
Multi-perspective reasoning with Grok's swarm. Compare approaches, evaluate trade-offs, get architectural guidance.
How this command is triggered — by the user, by Claude, or both
Slash command
/grok-swarm:reason <question-or-task>This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Grok Swarm — Reason Multi-perspective collaborative reasoning using Grok 4.20's multi-agent swarm. ## Usage ## Examples ## Step 1 — Check API key If `nokey`, direct the user to `/grok-swarm:setup` or `/grok-swarm:set-key`. ## Step 2 — Run reasoning ## Step 3 — Present results Present the multi-agent consensus and highlight where agents disagreed — divergent perspectives are often the most valuable part of reason mode.
Multi-perspective collaborative reasoning using Grok 4.20's multi-agent swarm.
/grok-swarm:reason <question-or-task>
/grok-swarm:reason Compare microservices vs monolith for this project
/grok-swarm:reason What's the best database schema for a multi-tenant SaaS?
/grok-swarm:reason Should we use GraphQL or REST for this API?
/grok-swarm:reason Evaluate the trade-offs of our current auth approach
python3 -c "
import json, os
from pathlib import Path
config = Path.home() / '.config' / 'grok-swarm' / 'config.json'
env_key = os.environ.get('OPENROUTER_API_KEY') or os.environ.get('XAI_API_KEY')
if env_key:
print('key:env')
elif config.exists():
data = json.loads(config.read_text())
print('key:file' if data.get('api_key') else 'nokey')
else:
print('nokey')
"
If nokey, direct the user to /grok-swarm:setup or /grok-swarm:set-key.
PLUGIN_ROOT="$(find ~/.claude/plugins -name 'grok_bridge.py' -exec dirname {} \; 2>/dev/null | head -1 | xargs -I{} dirname {})"
[ -z "$PLUGIN_ROOT" ] && PLUGIN_ROOT="$(find /usr /usr/local ~/.local -name 'grok_bridge.py' -exec dirname {} \; 2>/dev/null | head -1 | xargs -I{} dirname {})"
python3 "$PLUGIN_ROOT/src/bridge/cli.py" reason "$ARGUMENTS"
Present the multi-agent consensus and highlight where agents disagreed — divergent perspectives are often the most valuable part of reason mode.
npx claudepluginhub khaentertainment/grok-multiagent-plugin --plugin grok-swarm/reasonRefines task/question via multi-agent adversarial process: generate, critique, synthesize, judge in repeated rounds until convergence. Produces evolving candidate lineage with decision rationale.
/reasonApplies structured reasoning frameworks (cot/tot/debug/rca) to Jira issues or problems after mandatory technology documentation lookup, storing insights.