Feature Development
Take feature requests from Slack or a Linear ticket and turn them into pull requests, end to end — with research, planning, implementation, review, and merge handled by specialized agents that hand context off via agent-fs.
Take a feature request from Slack or a Linear ticket and turn it into a merged pull request without losing context across the handoffs.
What it does
A request arrives in Slack or as a Linear ticket. The lead agent triages, kicks off research, drafts a plan, ships an implementation PR, waits for CI, and routes a critical review — all without humans hand-walking the context across steps.
Agents
- Lead — orchestrator. Picks up the ping, decides whether a research/plan step is needed (complex feature) or direct implementation suffices (bug fix / small change), and routes the work.
- Researcher — deep codebase research and analysis. Outputs structured findings into agent-fs so downstream agents can pull them.
- Coder — turns the plan into a working PR using git worktrees, conventional commits, and the repo's existing test discipline.
- Reviewer — critical PR reviewer that doesn't rubber-stamp. Uses
gh/glabCLI for inline comments and review submissions.
Tools & Skills
Built-in (ships with agent-swarm)
- Slack, Linear, GitHub, GitLab integrations — read/reply/post, inbound Linear AgentSession sync,
gh/glabCLI in every worker container. implement-issue,review-pr,respond-github,create-pr— built-in skills. Source:plugin/commands+plugin/pi-skills.- agent-fs — persistent, searchable filesystem shared across agents. Plans and research live here; any agent can pull them.
parentTaskId(core swarm feature) — follow-up tasks ("address review feedback") resume the original agent session, preserving context across reviews and re-pushes.
From ai-toolbox
- Research → plan → implement command chains — optional Claude Code command wrappers can enforce "research before plan before code" and persist artifacts in agent-fs.
Custom (swarm-managed)
linear-interaction,linear-expert— outbound Linear updates (Linear sync is inbound-only by default — these handle the outbound side: transitioning state, posting comments, creating issues).
Workflows / Schedules
autopilot— manually triggered, full pipeline: research → review-research → plan → review-plan → implement → verify. Each phase has its own review gate so errata are caught before downstream steps.autopilot-plan— skip research when you already have one: plan → review-plan → implement → verify.autopilot-research— research-only, when you just want vetted findings.linear-drain-loop— given a Linear parent issue with sub-issues, branches off the previous PR's branch (stacked PRs), implements each, opens PRs, transitions Linear states. See the Drain Loops pattern.linear-merge-loop— companion: reviews the bottom-most open PR withbase=main, squash-merges when the reviewer approves and CI is green, transitions the linked Linear sub-issue to Done, then loops up the stack.
Patterns used
- Drain Loops — turn one big Linear ticket into a chain of stacked, individually-reviewable PRs.
Tips for new swarm users
- Use a
dependsOnchain for research → plan → implement. Don't let downstream steps fire before upstream artifacts exist. - One reviewer per PR — a single reviewer can (and should) review multiple times across revisions. What you want to avoid is multiple different reviewers on the same PR, which creates conflicting requests.
- Pin code-implementing schedules to a specific code-capable agent (
targetAgentId). Pool dispatch can land on a worker without the right harness. - Stacked PRs are great for breaking a big ticket into reviewable chunks — but the drain/merge loop only works if each PR is independently mergeable.
- The same intake-and-triage shape works for work that needs a person's approval rather than a merge: routing employee access requests shows the lead agent preparing the record, both named approvers deciding, and IT provisioning outside the workflow.
The rulebook our lead agent wrote for itself
24 rules learned from running a swarm of coding agents, with failures and checks you can reuse.
Lead Prospecting
Plug your prospecting stack into the swarm — daily discovery, drafting, and scheduling — with a human-in-the-loop gate before anything sends. Tracks "already contacted" so re-runs don't double-touch.