team
Parallel execution with Agent Teams - spawn teammates for parallel briefs, reviews, investigations
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Parallel execution with Agent Teams - spawn teammates for parallel briefs, reviews, investigations
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Start or resume session - loads state and continues work
First-run guided onboarding (teach the register → hunt → rest loop + a consented first hunt) OR reconfigure an existing install (shells `igris configure`). Branches on `igris onboarding status`. Usage: /setup
Guided project handoff — export a project's brain slice to a portable bundle, or import one with a preview/confirm ceremony. Usage: /handoff export <project> | /handoff import <bundle>
Release preparation - changelog generation, version bumps, release notes
Show system status report - briefs, session, blockers, git status
Search the brain's learnings with hybrid BM25+vector recall - filter by project or global, show ranked results (ID/title/snippet/score), and pull a learning into context. Usage: /search <query> [--project <slug> | --global] [--pull <id>] [--limit <N>]
| name | team |
| tier | opt-in |
| description | Parallel execution with Agent Teams - spawn teammates for parallel briefs, reviews, investigations |
| disable-model-invocation | false |
| allowed-tools | ["Read","Write","Edit","Bash","Grep","Glob","Agent","mcp__igris-brain__igris_brief_get","mcp__igris-brain__igris_brief_list","mcp__igris-brain__igris_brief_update"] |
| triggers | ["TEAM","team hunt","team review","team investigate","team refactor","team status","team shutdown","spawn teammates","parallel"] |
Spawn multiple independent Claude Code instances (teammates) that work in parallel on distinct tasks. This sits above the standard subagent system -- each teammate is a full Claude Code session with its own context, tools, and autonomy, coordinated by the Igris Lead (you).
/team hunt FR-022 FR-023 FR-024
/team review
/team review PR-42
/team investigate BR-015
/team refactor module-a module-b module-c
/team status
/team message teammate-1 "focus on auth"
/team broadcast "use new API endpoint"
/team shutdown
$ARGUMENTS is the subcommand followed by its parameters.
Subcommands: hunt, review, investigate, refactor, status, message, broadcast, shutdown.
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS: 1 must be set in ~/.claude/settings.json
~/.claude/settings.json under the env key:
{
"env": {
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
}
}
env block to ~/.claude/settings.json"teammateMode": "tmux" in ~/.claude/settings.json for split-pane view (requires tmux or iTerm2). Default is "in-process" which works without extra dependencies.Before every team spawn, execute these checks in order:
Verify experimental flag:
Agent Teams requires CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS: 1
Set this in ~/.claude/settings.json to enable parallel execution.
Check for active team:
~/.igris/projects/{project}/session/CURRENT_SESSION.mdA team is already active. Run /team shutdown first.
Validate arguments:
hunt: Verify each brief ID via igris_brief_get (MCP) or cache at ~/.igris/projects/{project}/briefs/ and has Status: Readyreview: Verify PR number exists (if provided) or staged changes existinvestigate: Verify brief ID existsrefactor: Verify each module name maps to a valid directory or fileCheck for file conflicts (hunt/refactor):
/team hunt <brief-ids...>Parallel implementation of multiple briefs. Each brief is assigned to one teammate that runs the full HUNT workflow independently.
For each brief ID in arguments:
igris_brief_get (MCP) or cache at ~/.igris/projects/{project}/briefs/ matching the IDFile conflict detected:
- {FILE_PATH} is referenced by both {BRIEF_A} and {BRIEF_B}
Options:
1. Proceed with caution (teammates must coordinate via messaging)
2. Remove conflicting brief from this team run
3. Cancel and restructure briefs
For each validated brief, create an assignment:
teammate-{brief-id} (lowercase, e.g., teammate-fr-022)Instruct Claude Code to create the team using natural language. For each teammate, provide the self-contained instruction prompt (see Teammate Instruction Template below).
Each teammate executes independently:
Update ~/.igris/projects/{project}/session/CURRENT_SESSION.md:
## Team State
**Mode:** TEAM HUNT
**Team Started:** {timestamp}
**Active Teammates:**
| Teammate | Brief | Status | Branch |
|----------|-------|--------|--------|
| teammate-{id-1} | {BRIEF_ID_1} | Working | develop |
| teammate-{id-2} | {BRIEF_ID_2} | Working | develop |
| teammate-{id-3} | {BRIEF_ID_3} | Working | develop |
/team status to check progress/team shutdownYou are a Teammate working on {BRIEF_ID} as part of a parallel team.
Assignment: {brief content summary}
Files you own: {file list}
DO NOT modify files outside your ownership boundary.
Workflow:
1. Read the brief via igris_brief_get (MCP) or cache at ~/.igris/projects/{project}/briefs/{BRIEF_ID}-*.md
2. Read ~/.igris/projects/{project}/context/coding_guidelines.md
3. Plan implementation
4. Implement changes
5. Run linter and tests
6. Self-review for quality
7. Commit with conventional format: <type>(<scope>): <summary> -- closes #{BRIEF_ID}
8. Message the lead with completion summary
Rules:
- Stay within your file ownership boundary
- If you need files outside your boundary, message the lead FIRST
- Follow coding_guidelines.md strictly
- Do NOT add AI signatures to commits
- Run linter before committing -- zero issues required
/team review [PR-number]Multi-angle code review by spawning three WARDEN-themed teammates, each with a distinct review focus.
gh pr diff {PR-number}git diffSpawn 3 specialized reviewers:
| Teammate | Focus | Checklist |
|---|---|---|
warden-security | Security | Secrets in code, injection vectors, auth bypasses, data exposure, input validation |
warden-performance | Performance | N+1 queries, memory leaks, algorithmic complexity, missing caching, unnecessary allocations |
warden-standards | Standards | coding_guidelines.md compliance, naming conventions, layer boundaries, documentation, test coverage |
Each reviewer independently:
You are {REVIEWER_NAME}, a specialized code reviewer on a parallel review team.
Your focus: {FOCUS_AREA}
Review target: {PR description or diff summary}
Changed files: {file list}
Review checklist:
{CHECKLIST_ITEMS}
Read the changed files and evaluate against your checklist.
For each finding, provide:
- Severity: Critical | Major | Minor | Suggestion
- File and line (if applicable)
- Description of the issue
- Recommended fix
Output format:
VERDICT: APPROVE | REJECT
FINDINGS: {count} ({critical} critical, {major} major, {minor} minor)
[Detailed findings list]
Message the lead with your complete review report.
After all reviewers complete:
TEAM REVIEW COMPLETE
Overall: {APPROVE | REJECT}
Security ({VERDICT}): {summary}
Performance ({VERDICT}): {summary}
Standards ({VERDICT}): {summary}
Critical findings: {count}
Major findings: {count}
Minor findings: {count}
Suggestions: {count}
[Detailed merged findings]
Update ~/.igris/projects/{project}/session/CURRENT_SESSION.md:
## Team State
**Mode:** TEAM REVIEW
**Team Started:** {timestamp}
**Review Target:** {PR number or "working changes"}
**Active Teammates:**
| Teammate | Focus | Status |
|----------|-------|--------|
| warden-security | Security | Working |
| warden-performance | Performance | Working |
| warden-standards | Standards | Working |
/team investigate <brief-id>Competitive hypothesis investigation. Multiple teammates each investigate a different hypothesis about a bug or issue, working to confirm or disprove their theory.
The lead analyzes the brief and forms 3-5 hypotheses about the root cause:
Hypotheses for {BRIEF_ID}:
1. {hypothesis-1}: {description}
2. {hypothesis-2}: {description}
3. {hypothesis-3}: {description}
[optional 4-5]
Display hypotheses and confirm with user before spawning.
One teammate per hypothesis:
| Teammate | Hypothesis | Investigation Area |
|---|---|---|
investigator-1 | {hypothesis-1} | {relevant files/modules} |
investigator-2 | {hypothesis-2} | {relevant files/modules} |
investigator-3 | {hypothesis-3} | {relevant files/modules} |
Each investigator independently:
You are Investigator-{N}, part of a parallel investigation team for {BRIEF_ID}.
Problem: {brief problem description}
Your hypothesis: {hypothesis description}
Investigation area: {relevant files and modules}
Instructions:
1. Read the brief via igris_brief_get (MCP) or cache at ~/.igris/projects/{project}/briefs/{BRIEF_ID}-*.md
2. Investigate your hypothesis by reading relevant code
3. Search for evidence that confirms or disproves your theory
4. Check related modules for contributing factors
5. Document your findings with file paths and line numbers
Output your conclusion:
- CONFIRMED: Evidence strongly supports this hypothesis (explain why)
- DISPROVEN: Evidence contradicts this hypothesis (explain why)
- INCONCLUSIVE: Not enough evidence either way (explain what is missing)
Share key findings via messaging so other investigators can cross-reference.
Message the lead with your full investigation report.
After all investigators complete:
INVESTIGATION COMPLETE: {BRIEF_ID}
Root Cause: {most likely cause}
Confidence: {High | Medium | Low}
Hypothesis Results:
1. {hypothesis-1}: {CONFIRMED | DISPROVEN | INCONCLUSIVE}
Evidence: {summary}
2. {hypothesis-2}: {CONFIRMED | DISPROVEN | INCONCLUSIVE}
Evidence: {summary}
3. {hypothesis-3}: {CONFIRMED | DISPROVEN | INCONCLUSIVE}
Evidence: {summary}
Recommended Fix: {description}
Affected Files: {list}
Next: Implement fix with /hunt {BRIEF_ID}
Update ~/.igris/projects/{project}/session/CURRENT_SESSION.md:
## Team State
**Mode:** TEAM INVESTIGATE
**Team Started:** {timestamp}
**Target Brief:** {BRIEF_ID}
**Active Teammates:**
| Teammate | Hypothesis | Status |
|----------|-----------|--------|
| investigator-1 | {hypothesis-1} | Working |
| investigator-2 | {hypothesis-2} | Working |
| investigator-3 | {hypothesis-3} | Working |
/team refactor <module-names...>Parallel module refactoring. Each module is assigned to one FORGER-themed teammate with exclusive file ownership.
For each module name in arguments:
File overlap detected between modules:
- {FILE_PATH} exists in both {MODULE_A} and {MODULE_B}
Parallel refactoring requires zero file overlap.
Resolve overlap before proceeding.
One FORGER teammate per module:
| Teammate | Module | File Ownership |
|---|---|---|
forger-{module-a} | {module-a} | {all files in module-a} |
forger-{module-b} | {module-b} | {all files in module-b} |
forger-{module-c} | {module-c} | {all files in module-c} |
Each teammate independently:
You are Forger-{MODULE}, a refactoring specialist for the {MODULE} module.
You have EXCLUSIVE ownership of all files in: {module path}
File inventory: {list of all files in module}
DO NOT modify any file outside your module boundary.
Instructions:
1. Read all files in your module
2. Read ~/.igris/projects/{project}/context/coding_guidelines.md
3. Identify refactoring opportunities:
- Naming convention violations
- Layer boundary violations
- Code duplication
- Missing documentation
- Complexity reduction
4. Implement refactoring changes
5. Run linter and tests
6. Commit: refactor({module}): <summary of changes>
7. Message the lead with changes summary
Cross-boundary changes (imports, shared interfaces) require lead approval.
Message the lead BEFORE modifying any shared contract.
Update ~/.igris/projects/{project}/session/CURRENT_SESSION.md:
## Team State
**Mode:** TEAM REFACTOR
**Team Started:** {timestamp}
**Active Teammates:**
| Teammate | Module | Files Owned | Status |
|----------|--------|-------------|--------|
| forger-{module-a} | {module-a} | {count} files | Working |
| forger-{module-b} | {module-b} | {count} files | Working |
| forger-{module-c} | {module-c} | {count} files | Working |
/team statusDisplay the current state of the active team.
~/.igris/projects/{project}/session/CURRENT_SESSION.mdTEAM STATUS
Mode: {TEAM HUNT | TEAM REVIEW | TEAM INVESTIGATE | TEAM REFACTOR}
Started: {timestamp}
Duration: {elapsed time}
Teammates:
| Name | Assignment | Status | Last Update |
|------|-----------|--------|-------------|
| {name-1} | {assignment} | {Working | Done | Failed} | {time} |
| {name-2} | {assignment} | {Working | Done | Failed} | {time} |
| {name-3} | {assignment} | {Working | Done | Failed} | {time} |
Progress: {completed}/{total} teammates finished
/team message <teammate> <msg>Send a message to a specific teammate.
Message sent to {teammate}: "{msg}"
/team broadcast <msg>Send a message to all active teammates.
Broadcast sent to {count} teammates: "{msg}"
/team shutdownClean shutdown of the active team. Collects results, terminates teammates, and updates session state.
Send to all teammates:
Shutdown imminent. Complete current task and report final status.
For each teammate:
End all teammate sessions.
TEAM SHUTDOWN COMPLETE
Mode: {mode}
Duration: {total time}
Results:
| Teammate | Assignment | Result | Summary |
|----------|-----------|--------|---------|
| {name-1} | {assignment} | Done | {commit hash or summary} |
| {name-2} | {assignment} | Done | {commit hash or summary} |
| {name-3} | {assignment} | Incomplete | {what remains} |
Completed: {count}/{total}
Commits: {list of commit hashes}
Update ~/.igris/projects/{project}/session/CURRENT_SESSION.md:
For hunt mode:
When a team is active, ~/.igris/projects/{project}/session/CURRENT_SESSION.md includes a Team State section:
## Team State
**Mode:** TEAM HUNT | TEAM REVIEW | TEAM INVESTIGATE | TEAM REFACTOR
**Team Started:** YYYY-MM-DD HH:MM
**Active Teammates:**
| Teammate | Assignment | Status |
|----------|-----------|--------|
| {name} | {task} | {Working | Done | Failed} |
This section is:
/team hunt, /team review, etc.)/team shutdown)Agent Teams is not enabled.
To enable, add to ~/.claude/settings.json:
"env": { "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" }
Then restart Claude Code.
A team is already active (Mode: {current mode}).
Run /team shutdown to end the current team before starting a new one.
Brief {BRIEF_ID} not found in brain DB or cache.
Available briefs: {list of brief IDs with Status: Ready}
File conflict detected between teammates:
- {FILE_PATH} would be modified by both {TEAMMATE_A} and {TEAMMATE_B}
Options:
1. Proceed with messaging coordination (risk of conflicts)
2. Remove one brief from this team run
3. Cancel and restructure
If a teammate stops responding or errors out:
/team status and /team shutdownIf ~/.igris/projects/{project}/session/CURRENT_SESSION.md shows a Team State but no teammates are active:
Agent Teams integrates two Claude Code hooks for automated quality enforcement:
Trigger: When a teammate attempts to mark a task as complete.
Behavior:
last_assistant_message for test pass/fail evidenceteam.task_completedGate Logic:
Trigger: When a teammate is about to go idle (finished all assigned work).
Behavior:
| Layer | Scope | Mechanism |
|---|---|---|
| Agent Teams hooks (CLI-native) | Intra-CLI parallelism | TaskCompleted exit code 2 prevents completion |
| Brief status verification (universal) | Inter-CLI orchestration | igris_brief_update records status across CLIs |
Agent Teams hooks are CLI-specific quality gates that work within a single Claude Code session. Brain-level brief-status tracking (igris_brief_update) is the universal record that works across all CLIs and agents, including non-Claude Code agents in cross-CLI workflows.
Both layers can coexist: the Agent Teams hook provides fast, local quality enforcement, while the brain provides the source of truth for brief status across all agents.