agent-manager
Creates, lists, and removes custom project-specific agents. Custom agents are stored in .claude/crew-agents/ and registered in crew-team.json for routing.
Smart hybrid execution engine that dispatches agents in parallel or sequential order based on task dependencies. Manages the Agent tool calls, result collection, conflict detection, and integration review.
$ npx -y skills add d3x293/code-crew --skill execution-orchestrator --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/execution-orchestratorContext preview
The summary Claude sees to decide when to auto-load this skill.
Smart hybrid execution engine that dispatches agents in parallel or sequential order based on task dependencies. Manages the Agent tool calls, result collection, conflict detection, and integration review.
name: execution-orchestrator description: Smart hybrid execution engine that dispatches agents in parallel or sequential order based on task dependencies. Manages the Agent tool calls, result collection, conflict detection, and integration review.
Executes the task plan generated by the task-router by spawning agents with the right models, collecting results, and coordinating integration.
**Each agent is self-contained.** When spawning an agent via the Agent tool:
Before dispatching agents, check if context from the previous task can reduce re-reading:
1. Read the last entry in `.claude/crew-history.json` 2. Check if the previous task's `filesModified` overlaps with the current task's focus files 3. If overlap exists AND the previous task was recent (same session):
## Previous Task Context
The previous task ("{task description}") modified these overlapping files:
- {file}: {summary of what changed}
Key decisions: {summary field from history}4. If no overlap or no recent history: skip this section
**Token budget**: Max 500 tokens for carry-forward context. If the previous summary is longer, condense to the most relevant parts for the current task's scope.
For dependent subtasks where output of one feeds into the next:
Phase 1: Agent A completes → result Phase 2: Agent B receives result + its task → completes → result Phase 3: Agent C receives combined results → completes
Implementation: 1. Spawn Agent A, wait for result 2. Include Agent A's result summary in Agent B's prompt 3. Spawn Agent B, wait for result 4. Continue chain
For independent subtasks that don't share files:
Phase 1 (parallel):
Agent A → subtask on files {X, Y}
Agent B → subtask on files {Z, W}
Agent C → subtask on files {V}
All complete → collect resultsImplementation: 1. Verify no file overlap between parallel agents (check via crew-index.json) 2. Spawn ALL agents in a SINGLE message using multiple Agent tool calls 3. Wait for all to complete 4. Collect and verify results
Mix of sequential and parallel phases:
Phase 1 (sequential): Investigation/Planning CEO or debugger investigates → produces plan Phase 2 (parallel): Independent Implementation senior-dev implements feature A on src/moduleA.js test-engineer writes tests on test/moduleA.test.js doc-writer updates docs/api.md Phase 3 (sequential): Integration Review code-reviewer reviews all changes → report to user
When spawning each agent, construct this prompt:
# Task: {specific description of what to do}
**Agent**: {agent-name} | **Model**: {opus|sonnet|haiku}
## Context
{Brief from crew-profile.md — project type, stack, key patterns}
Focus files (from index analysis):
- {file1}: {relevant symbols and line ranges}
- {file2}: {relevant symbols and line ranges}
## Index Protocol
INDEX-FIRST: Read .claude/crew-index.json → crew-symbols.json → only specific lines. Never read entire files.
## Skill Guidance
{Condensed skill injections from skill-injector}
## Output
Report: what changed (file:lines), FILES_MODIFIED: {list}, confidence: high|medium|low, any concerns or dependencies.After parallel agents complete:
1. **File overlap check**: Did any two agents modify the same file?
2. **Import/dependency check**: Did any agent add imports that conflict?
3. **Test verification**: If test-engineer was involved, run tests
After all agents complete, compile:
Done: "{task}" — {SUCCESS|PARTIAL|NEEDS_REVIEW}
{strategy} | Agents: {agent(model), agent(model), ...}
Skills: {deduplicated list of all skills injected across agents}
Changes: {per-agent 1-line summary}
Files: {file1}, {file2}, ...
Index: {updated N files | skipped | failed — run /crew reindex}After ALL agents have completed and results are collected:
1. **Aggregate FILES_MODIFIED** from all agent outputs
2. **If files were modified**, invoke the `index-updater` skill:
a. Recompute hashes for only those files b. Update Layer 1 entries (crew-index.json) c. Update Layer 2 entries (crew-symbols.json) d. Update global metadata (contentHash, stats, lastIndexed)
3. **Report index update** in the task completion summary:
4. **If index update fails** (e.g., file was deleted between edit and index):
A virtual dev crew for Claude Code — 11 specialized AI agents that decompose, implement, review, and ship your tasks. Instead of one AI doing everything, CodeCrew breaks work into subtasks and routes each to the right specialist on the right model.
Repo: d3x293/code-crew
Creates, lists, and removes custom project-specific agents. Custom agents are stored in .claude/crew-agents/ and registered in crew-team.json for routing.
3-layer codebase indexing system for token-efficient code navigation. Builds compact index + symbol map so agents read targeted lines instead of entire files.…
Manages CodeCrew configuration. Allows users to customize default mode, model tiers, agent activation, token budgets, and auto-index settings without editing…
Analyzes a project codebase, builds 3-layer index, generates project profile, and auto-configures the agent team with relevant skills. The main initialization…
Keeps the 3-layer codebase index fresh after file edits. Performs incremental updates by recomputing hashes and re-extracting metadata for only changed files.
Lite task router that bypasses Opus CEO entirely. Classifies tasks and routes directly to Sonnet and Haiku agents only. Use when user runs /crew lite or /crew…