Develop features in parallel with multiple agents using file ownership boundaries and dependency management
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-agents-8f79eb915f2c ,按照其中的说明把「team-feature」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Orchestrate parallel feature development with multiple implementer agents. Decomposes features into work streams with strict file ownership, manages dependencies, and verifies integration.
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 is set$ARGUMENTS:
<feature-description>: description of the feature to build--team-size N: number of implementers (default: 2)--branch: git branch name (default: auto-generated from feature description)--plan-first: decompose and get user approval before spawningDecompose the feature into work streams:
If --plan-first is set:
Present the decomposition to the user:
## Feature Decomposition: {feature}
### Stream 1: {name}
Owner: implementer-1
Files: {list}
Dependencies: none
### Stream 2: {name}
Owner: implementer-2
Files: {list}
Dependencies: blocked by Stream 1 (needs interface from {file})
### Integration Contract
{shared types/interfaces}
Wait for user approval before proceeding
If user requests changes, adjust decomposition
--branch specified, use Bash to create and checkout the branch:
git checkout -b {branch-name}
TeamCreate tool to create the team with team_name: "feature-{timestamp}" and descriptionteam-lead agent to coordinateAgent tool to spawn a team-implementer:
name: implementer-{n}subagent_type: "agent-teams:team-implementer"prompt: Include owned files, interface contracts, and implementation requirementsTaskCreate for each work stream:
TaskUpdate to set blockedBy relationships for dependent streamsTaskUpdate (set owner)TaskList for progressAfter all tasks complete:
Present feature summary:
## Feature Complete: {feature}
Files modified: {count}
Streams completed: {count}/{total}
Tests: {pass/fail}
Changes are on branch: {branch-name}
Send shutdown_request to all teammates
Call TeamDelete to remove team resources