ac-teams

中文文档
0.0.9发布于 2026/11/03MITES Module构建来源已验证

Small, persistent teams for Pi

原始使用文档
文档目录5 节
  1. Install
  2. Use it
  3. Know the boundaries
  4. Guides
  5. License

ac-teams

Persistent agent teams for Pi: shared tasks, searchable messages, and optional Git worktrees. Members stay alive between assignments and can resume their native Pi sessions after stopping. No workflow engine or background service.

Install

Requires Linux, Node 22.19 or newer, and an authenticated pi executable on PATH. Interactive teams also require tmux on PATH. Tested with Pi 1.4.0 and 1.5.0.

pi install npm:[email protected]

Restart Pi after installation. Use Pi's /trust command to save approval for each project directory before launching members there; headless children cannot answer the initial trust prompt.

Use it

Your Pi session is the root; its child agents are members. Ask Pi to delegate a bounded assignment, for example:

Launch a member to review src/parser.ts without editing, and have it send findings back to me.

ToolPurpose
team_agentLaunch, inspect, stop, and resume members; manage limits and worktrees
team_taskTrack shared work, ownership, and dependencies
team_messageSend notifications and read or search team history

/teams or /teams panel opens Tasks, Teammates, and Activity. /teams teammate <name-or-id> opens a teammate directly; subcommands and teammate names autocomplete. Use the task graph or list, send feedback, and open a member's full live Pi session.

The task summary sits above the input. The agent selector sits below the input, above your existing footer, and shows descriptive names, models, and context usage. ac-teams publishes a compact team status without replacing the footer or editor supplied by other extensions. /teams config toggles these displays independently.

From an empty editor, press Down to select the team row, then Enter to open a member. A red Needs input label marks a member with an open question. Ctrl+Shift+Left returns to Main without stopping the member or dismissing its question. /teams stop stops every member; main sessions keep running. /teams join and /teams leave add this session to another team or take it out.

Defaults allow up to 10 live members and two levels of delegation. Use the fewest useful agents.

Know the boundaries

  • Members share your filesystem access unless launched with enforced access, an opt-in Docker sandbox that needs Docker and a locally built member image. All members can read all team messages, including direct messages.
  • Limits cover only team_agent, not other delegation tools. Use separate worktrees for concurrent writers.
  • Stop retains tasks, sessions, and worktrees. Worktree deletion is explicit and requires clean, integrated work.
  • Exit confirmation needs Pi's session_before_exit hook, which installed Pi 1.4.0 lacks. Without it, shutdown cleans up but cannot ask first. Signals always bypass confirmation.

See the operations guide for recovery guarantees, storage, and the Pi dependency security advisory.

Guides

  • Usage: tool actions, task rules, messages, and companion tools
  • Operations: limits, stop/resume, worktrees, and security
  • Enforced access: Docker-enforced read/write grants, outbound proxy and destination policy, and setup
  • Development: source setup, verification, and publishing
  • Implementation history: design decisions and prior art

License

MIT.

版本与发布记录

ac-teams 共发布 10 个版本,首次发布于 2026/10/25;过去 12 个月发布了 10 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.0.9latest2026/11/03今天
0.0.82026/11/03今天
0.0.72026/11/03今天
0.0.62026/11/021 天前
0.0.52026/10/268 天前
0.0.42026/10/268 天前

关于 ac-teams 的常见问题

ac-teams 是什么?

小而持久的Pi团队

如何安装 ac-teams?

在项目目录运行 npm install ac-teams,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:typebox(^1.0.0)、@earendil-works/pi-tui(^1.4.0)、@earendil-works/pi-coding-agent(^1.4.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

ac-teams 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/ac-teams 是否存在。

ac-teams 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

ac-teams 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.19.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

ac-teams 可以商用吗?

ac-teams 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

ac-teams 还在维护吗?

最新版本 0.0.9 发布于 2026/11/03(今天);至今共发布 10 个版本,其中过去 12 个月发布了 10 个;首次发布于 2026/10/25。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。