codebase-RAG: Command for Claude Code

.claude/commands/parallelize.md

parallelize is a command for Claude Code from bluewings1211/codebase-RAG. It costs 0 tokens per session (1,112 once invoked), scanned A, original, MIT.

A command that creates separate Git worktrees and runs AI agents in them for the same feature. A worktree is an additional working copy of a Git repository, allowing changes to be developed independently.

In plain words
What is it for?
Use it to validate a feature task file, create the requested number of worktrees, and assign agents to work on the tasks concurrently.
Why use it?
It lets several implementation tasks proceed at the same time while keeping their files and changes separate.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions subagents.

This is bluewings1211/codebase-RAG's own configuration. It tells Claude Code how to work on codebase-RAG itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything codebase-RAG configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bluewings1211/codebase-RAG. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bluewings1211/codebase-RAG/dev/.claude/commands/parallelize.md
Clone the repo
git clone --depth 1 https://github.com/bluewings1211/codebase-RAG

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for parallelize

README.md
[![agentmods](https://agentmods.dev/badge/commands/bluewings1211/codebase-rag/parallelize/github.svg)](https://agentmods.dev/commands/bluewings1211/codebase-rag/parallelize)
Your own site
<a href="https://agentmods.dev/commands/bluewings1211/codebase-rag/parallelize"><img src="https://agentmods.dev/badge/commands/bluewings1211/codebase-rag/parallelize/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for parallelize

Your own site · 80×15
<a href="https://agentmods.dev/commands/bluewings1211/codebase-rag/parallelize"><img src="https://agentmods.dev/badge/commands/bluewings1211/codebase-rag/parallelize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,112 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01112
Opus 5.5 $0.00000 $0.00445
Sonnet 5.5 $0.00000 $0.00222
Haiku 4.5 $0.00000 $0.00111

Measured 2mo ago against content hash eeff81719e00, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

parallelize scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/parallelize.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/parallelize

Create N git worktrees and run AI agents in each worktree for concurrent development.

Variables

FEATURE_NAME: $ARGUMENTS NUMBER_OF_PARALLEL_WORKTREES: $ARGUMENTS

Task File Discovery and Validation

Task File Location: I will locate the task file at tasks/tasks-prd-{FEATURE_NAME}.md.

Validation Steps:

  1. Verify that tasks/tasks-prd-{FEATURE_NAME}.md exists
  2. Confirm the file contains a valid task list structure
  3. If the file doesn't exist, I will exit with an error message: "Task file not found: tasks/tasks-prd-{FEATURE_NAME}.md. Please generate the task list first using @ai_docs/generate-tasks.mdc"

Task File Contents: The discovered task file will serve as the implementation plan for all subagents.

Execute Phase 1: Environment Setup

Parameter Validation: Before proceeding, I will validate:

  1. FEATURE_NAME is provided and not empty
  2. NUMBER_OF_PARALLEL_WORKTREES is a positive integer
  3. Task file tasks/tasks-prd-{FEATURE_NAME}.md exists and is readable
  4. The progress/ directory exists (create if it doesn't)

Safety Check: I will check for any uncommitted changes in the current directory. If changes are found, I will exit with an error, prompting you to commit or stash them.

Directory Setup: I will ensure the trees/ directory exists at the project root.

The following steps will be executed in parallel for each worktree to ensure efficiency. I will use absolute paths for all commands.

For each instance from 1 to NUMBER_OF_PARALLEL_WORKTREES, I will:

  1. Create Worktree: git worktree add -b <FEATURE_NAME>-<instance-number> ./trees/<FEATURE_NAME>-<instance-number>
  2. Copy Environment: Copy the .env file to ./trees/<FEATURE_NAME>-<instance-number>/.env if it exists.
  3. Copy Task File: Copy the task file from tasks/tasks-prd-{FEATURE_NAME}.md to ./trees/<FEATURE_NAME>-<instance-number>/tasks/tasks-prd-{FEATURE_NAME}.md
  4. Install Dependencies: Change directory to ./trees/<FEATURE_NAME>-<instance-number> and run uv sync to install dependencies specified in uv.lock.

Read the full file on GitHub · 98 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 98 lines · 0 tokens per session scan A eeff81719e00

Subscribe to this mod's changes

parallelize is a command published in the GitHub repository bluewings1211/codebase-RAG (15 stars, last pushed 11mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,112 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

parallelize compared with commands from other repositories

parallelize next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
parallelizebluewings1211/codebase-RAGCommand1511mo agoMITA0Claude Code
CHANGELOGbytedance/UI-TARS-desktopCommand40k29d agoApache-2.0A0Claude Code
releasegetsentry/toolkitCommand957yesterdaynoneA0Claude Code
endleaf76/session-collab-mcpCommand26d agoMITA9Claude Code
improvenel-neru/LibrAIumCommand01mo agoMITA26Claude Code
bulk-addnel-neru/LibrAIumCommand01mo agoMITA25Claude Code
changelogmizukaizen/hive-doctrine-mcpCommand04mo agoMITA0Claude Code