By lswank
Dynamic multi-agent workflows for Grok Code — fan-out, pipelines, tournaments, adversarial verification, and loop-until-done harnesses, exposed as grok slash-commands. Each skill self-locates its bundled harness, so the plugin works in any directory (git repo or not) with no per-repo install.
Brainstorm many options for a naming/design/approach decision from diverse angles, then run a rubric-scored pairwise tournament to pick the top 3. Use when the user wants help naming a tool/product/project, choosing a design direction, picking among approaches, asks you to "brainstorm options and pick the best", wants a ranked shortlist of ideas, or asks for /brainstorm-tournament.
Multi-source web research that fans out searches, fetches sources, adversarially verifies each claim, and synthesizes a cited markdown report. Use when the user wants deep, fact-checked research on a topic, asks you to "research X thoroughly", wants a sourced report, or asks for /deep-research.
Extracts every factual/technical claim from a document and verifies each one in detail — a fresh investigator per claim gathers concrete evidence (files, grep, web), then an adversarial auditor tries to debunk every "supported" finding. Use when the user wants a document, README, spec, PR description, or report fact-checked claim-by-claim, asks you to "verify the claims in X", "fact-check this doc", wants each assertion checked against the codebase/web, or asks for /deep-verify.
Lightweight eval harness — runs the SAME task N independent ways, each in its own isolated git worktree and fresh context window, then grades the candidates with separate evaluator agents (per-candidate rubric scoring + a pairwise tournament) to pick and explain the best. Use when the user wants to try a task several ways and compare, asks to "run this N ways and pick the best", wants an A/B/N bake-off of approaches, wants an impartial eval of candidate solutions against a rubric, or asks for /eval-skill.
Wrap any task or sub-workflow with a hard, verifiable completion criterion. Repeats the inner work (delegating to other harnesses when named) until a dedicated checker agent confirms the criterion is fully met. Use when the user says "/goal", "keep going until", "do not stop until the following is true", or wants a hard stop condition instead of a fixed number of passes. Composes with /loop.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Dynamic workflows for Grok Code (the grok CLI).
A small, dependency-free orchestration engine that lets you build multi-agent harnesses on top of Grok's headless mode — fan-out, pipelines, tournaments, adversarial verification, and loop-until-done — plus a library of ready-to-run harnesses you can invoke from the command line or as Grok slash-commands.
It's the Grok analog of Claude Code's built-in dynamic workflows: instead of one agent planning and executing in a single context window, you spawn many focused Grok agents, each with its own fresh context, and coordinate them with plain JavaScript.
When a single agent plans and executes a long, parallel, or adversarial task in one context window, three failure modes creep in:
Giving each unit of work its own Grok process — its own context window, its own goal — structurally defeats all three. A deterministic JS loop holds the structure; the agents just do the focused work. That is what this engine provides.
Every agent here is a real grok -p … --output-format json --yolo child
process. Nothing about the orchestration is magic — it's child_process + a
concurrency limiter + the patterns from the
Claude Code dynamic-workflows playbook, ported
to Grok's CLI.
node:* built-ins; zero npm dependencies).grok CLI on your PATH and authenticated (grok login, or set
XAI_API_KEY). See Grok's headless-mode docs.
GROK_BIN=/path/to/grok if it's not on PATH.You do not need an API key to develop or test the orchestration logic — see Testing without spending credits.
git clone https://github.com/lswank/grok-workflows
cd grok-workflows
# list the bundled harnesses
node src/cli.mjs list
# run one
node workflows/deep-research.mjs "Did Postgres add MERGE in v15 or v16?"
node workflows/sort-tournament.mjs "severity :: login broken | typo in footer | data loss on save"
node workflows/triage.mjs ./incidents.txt
Each harness prints a JSON result to stdout; progress narration goes to
stderr (silence it with GROK_WORKFLOWS_QUIET=1).
| Harness | What it does | Core pattern |
|---|---|---|
| deep-research | Fan out web searches, fetch sources, adversarially verify each claim, synthesize a cited report. | fan-out + verify |
| deep-verify | Extract every factual/technical claim from a doc and verify each against the codebase and/or web. (Per-claim investigator/auditor isolation is prompt-only + disallowedTools:['Agent']; see src/SPEC.md for the documented tradeoff.) | fan-out + adversarial verify |
| sort-tournament | Rank a list by a qualitative criterion via pairwise comparison (beats absolute scoring). | tournament |
| root-cause | Generate competing hypotheses from disjoint evidence, test each against a panel until one survives. (Lane isolation between the 3 evidence slices is prompt-only + disallowedTools:['Agent']; code lane needs repo reads via shell — see src/SPEC.md for the explicit assumption + guardrails.) | multi-hypothesis + loop-until-done |
| triage | Classify each backlog item, dedupe against what's tracked, route to fix or escalation (with quarantine). | classify-and-act |
| migrate | Discover change sites, fix each in an isolated worktree, adversarially review, report. | fan-out + worktree isolation |
| rule-mine | Mine recurring corrections from past sessions/reviews, cluster, verify, distill into AGENTS.md rules. | generate-and-filter |
| brainstorm-tournament | Brainstorm many options (names, designs), run a rubric-scored tournament, return the top 3. | generate + tournament |
| eval-skill | Run a task N ways in isolated worktrees, grade against a rubric, pick and explain the best. | best-of-N + grading |
| goal | Repeat an inner workflow/task until an independent checker agent confirms a hard, explicit criterion is met (first-class implementation of the "pair with /goal" pattern). | loop-until + adversarial checker |
| loop | Run any other harness (or a plain agent task) on a fixed interval (10s / 5m / 1h ...), with --max and dry-streak stopping. Composes with /goal. | recurring scheduler + delegation |
| write-workflow | Describe a novel multi-agent process; Claude writes a complete, saveable, reusable .mjs harness using the engine primitives, executes it immediately for today's task, and returns the source so you can persist it. | dynamic script generation (the heart of "Claude writes the orchestration") |
npx claudepluginhub lswank/grok-workflows86 business AI specialists across 9 domains, 9 prompt-engineering frameworks, an on-demand prompt generator, and a meta-specialist for designing new specialists. For Claude Code (full plugin) or Claude Desktop (via the hosted MCP server). Clean-room reimplementation of the Black Book concept.
v9.44.1 — Patch release for Gemini environment/version detection and qwen auth gating. Run /octo:setup.
Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques
Superpowers Plus core skills library for Claude Code: planning, execution routing, TDD, debugging, and collaboration workflows
Harness-native ECC operator layer - 67 agents, 271 skills, 92 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses
Tools to maintain and improve CLAUDE.md files - audit quality, capture session learnings, and keep project memory current.
Plugin-safe Claude Code distribution of Antigravity Awesome Skills with 1,561 supported skills.