/kenji:workflow-parallel-agentsfrom kenji skills
Runs multiple Claude Code subagents in parallel using git worktrees, cloud agents, or multi-model comparison. Useful for best-of-N, comparing approaches, or delegating independent tasks.
Ships in kenji skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Degree of freedom: MIXED. What to split, how to brief, and which model or effort [HIGH freedom];
isolated worktrees and no shared-file writes [LOW freedom — run exactly].
Copy this checklist and tick items as you go:
- [ ] Step 1: Classify each task: parallel-safe or must-serialize
- [ ] Step 2: Pick the mode: git worktrees, cloud agents, or multiple models
- [ ] Step 3: Brief each delegate once: goal, files, constraints, done-check
- [ ] Step 4: Launch independent agents in one message; isolated worktrees
- [ ] Step 5: Integrate results one at a time; best-of-N picks a winner
- [ ] Step 6: Clean up finished worktrees
Observe: "fix tests" and "write the README" touch different trees. Interpret: two worktrees, two agents. Classify: parallel-safe; do not also give both
package.json. Merge: integrate one result at a time; compare best-of-N on the same prompt.
workflow-build-featureeffort) → pick the best resultDelegate when a track is independent, sizeable, and can run beside the others, or when its output is verbose and you do not need it in the main context (log reads, wide exploration, a full test run). A handful of tool calls is cheaper to do yourself than to brief.
Brief each delegate once and precisely — goal, files, constraints, the done-check, and what to report back — then commit to the delegation: do not redo its work in parallel. Launch independent agents in one message so they run at the same time; integrate results one at a time.
Claude Code: each delegate is a subagent (built-in Explore for read-only work; a general agent or one from agents/ for edits). A subagent that writes files gets isolation: worktree in its agent frontmatter, or its own git worktree add, so two delegates never own the same path. Cursor: the worktree and cloud options below.
Cursor creates an isolated git worktree per agent from the agent dropdown; in Claude Code the equivalent is isolation: worktree on the subagent (see above). Each has its own:
When an agent finishes, click Apply to merge changes back.
Delegate tasks you'd otherwise put on a todo list:
@Cursor <task description># Good delegation prompt
Fix the bug where users see a 500 error when they submit the onboarding form
with a duplicate email. The error should show an inline message "Email already
in use" instead of crashing. See `app/onboarding/actions.ts` for the server
action and `app/onboarding/page.tsx` for the form.
# Bad delegation prompt
Fix the email bug
Include:
Claude Code: send the same brief to N subagents in one message (different effort levels, or a different approach named in each brief); compare the candidates yourself or hand them to a fresh-context reviewer that flags only correctness and requirement gaps.
Best for:
When running many agents, configure:
Run 2-3 agents with different approaches to a hard problem:
While implementing feature X locally:
features/auth/"One agent reviews for security, another for performance:
app/api/ for security issues (auth, input validation, RLS)"app/api/ for performance (N+1s, missing indexes, large payloads)"Each reviewer reports only findings in its lane, with file:line evidence — not style or general cleanups.
node_modules if deps differ.env by symlinking or copying to each worktreegit worktree remove <path>What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kensaurus/skills --plugin kenji162 skills in this plugin
/audit-accessibilityWCAG 2.2 AA audit via playwright-cli: axe-core, keyboard, contrast, target size, focus, ARIA. Use when "audit accessibility", "check a11y", "WCAG audit", "check keyboard nav", or "test screen reader".
/audit-agent-speedMeasure and fix a slow coding-agent setup: status line, hooks, instruction bloat, effort, worktree pile-up, antivirus and indexer scans. Use when "Claude is slow" or "CPU is pinned". App speed → audit-performance.
/audit-analyticsRead-only audit of product-analytics events (PostHog, Amplitude, Mixpanel, GA4): taxonomy, funnels, consent-gated firing, dead or duplicate events. Use when "audit our analytics", "are we tracking the right events", or "funnel instrumentation".
Other plugins' skills for the same job