brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
workflow-parallel-agentsRun multiple agents in parallel via git worktrees, cloud agents, or multi-model comparison. Use for "run agents in parallel", "best-of-N", "compare approaches", "multi-model", "parallel worktrees".
Independent GitHub snapshot · Automated classification · Original documentation governs
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].
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>