indus-swarms
v0.1.4
Published
Claude Code agent teams style workflow for Pi.
Maintainers
Readme
indus-swarms
A lightweight extension for the indusagi CLI that brings Claude-style agent teams to your Pi workflows. The leader process manages shared task lists, mailboxes, and team status while spawning autonomous teammates (workers) that claim, execute, and report on tasks.
What it provides
- Team coordination primitives — shared task list files, dependency tracking, and auto-claiming keep multiple agents working without manual juggling.
- Messaging layer — direct
DMmailboxes, broadcasts, and steering instructions let you nudge teammates from the leader session. - Lifecycle control — graceful shutdown, kill, prune, and cleanup keep team artifacts tidy; widgets show real-time status.
- Model/workspace control — spawn teammates with fresh or branched contexts, shared workspaces or per-agent git worktrees, and optional plan/approval flows.
- Hook + widget support — leader-side hooks can enforce quality gates and the
/twwidget surfaces tasks, inboxes, and shortcuts likemfor message andtto toggle task view.
Installation
Requires Node 20+ and the
indusagiCLI. Install once per machine, then install the extension however you prefer:
npm install indusagi indusagi-coding-agentOption A — install from npm:
indusagi install npm:indus-swarmsOption B — load directly for development:
indusagi -e /Users/varunisrani/indusagi-ts/indus-swarms/extensions/teams/index.tsOption C — install from the local folder:
indusagi install /Users/varunisrani/indusagi-ts/indus-swarmsOnce installed, run indusagi as usual and the extension auto-discovers.
Quick usage
- Start
indusagi. - Confirm the extension is active with
/team idor/team help. - Spawn teammates manually:
/team spawn alice shared /team spawn bob branch worktree - Create tasks and assign them:
/team task add alice: Explore AGENTS.md /team task list /team task assign 1 bob - Communicate:
/team dm <name> <msg>— mailbox DM/team broadcast <msg>— message everyone/team steer <name> <msg>— steering for RPC workers
- Monitor progress with
/tw(or/team panel) and use shortcuts (tfor current agent tasks,mfor a DM,kto kill, etc.). - When you are done:
/team shutdown /team cleanup
Alternatively, /swarm <task> lets the model spawn teammates, delegate tasks, and coordinate the work for you.
Environment variables
| Variable | Purpose | Default |
| --- | --- | --- |
| INDUS_TEAMS_ROOT_DIR | Root directory for all team artifacts (task lists, mailboxes, sessions). Defaults to ~/.indusagi/agent/teams (legacy ~/.pi/agent/teams also works). | ~/.indusagi/agent/teams |
| INDUS_TEAMS_DEFAULT_AUTO_CLAIM | Auto-claim new tasks when teammates idle. | 1 |
| INDUS_TEAMS_STYLE | UI style (normal, soviet, pirate, or custom). | normal |
| INDUS_TEAMS_HOOKS_ENABLED | Enable leader-side hooks/quality gates. | 0 |
| INDUS_TEAMS_HOOKS_DIR | Directory holding on_idle, on_task_completed, on_task_failed hooks. | <teamsRoot>/_hooks |
| INDUS_TEAMS_HOOK_TIMEOUT_MS | Hook timeout in milliseconds. | 60000 |
| INDUS_TEAMS_HOOKS_FAILURE_ACTION | Policy when a hook fails (warn, followup, reopen, reopen_followup). | warn |
| INDUS_TEAMS_HOOKS_MAX_REOPENS_PER_TASK | Max reopen count when hooks requeue tasks. | 3 |
| INDUS_TEAMS_HOOKS_FOLLOWUP_OWNER | Owner of follow-up tasks created after hook failures (member, lead, none). | member |
License
MIT
