superpowers icon indicating copy to clipboard operation
superpowers copied to clipboard

Multi-agent collaboration to complete tasks

Open huasio opened this issue 8 months ago • 4 comments

hi obra!

Is your feature request related to a problem? Please describe. When I use it, there will be context compression or insufficient context. Because almost all coding tasks are completed by the main agent; even file code scanning and analysis are handled by the main agent. So I'm thinking whether I can split the task into sub-tasks and distribute them to subagents for completion. They work in parallel and interact through intermediate files to share what each has done. This way, it can avoid the context overflow and compression of the main agent, and also make full use of the characteristics of git workflow and subagents.

Describe the solution you'd like Ideally, a task follows the following process:

  1. User task instructions
  2. Superpowers start working
  3. ......
  4. Develop an execution plan through a series of brainstorming sessions
  5. User approves the execution plan instructions
  6. Superpowers start working
  7. Task decomposition SKILL starts working 7.1 Analyze whether the task needs to be decomposed 7.2 If the task needs to be decomposed --> Decompose it into basic tasks (which are the foundation of the overall task) and some independent extended tasks --> The main agent starts assigning basic tasks to subagents for completion, and other related tasks wait for this task to be completed 7.3 After the basic tasks are completed, the main agent distributes the extended tasks to multiple subagents for concurrent execution 7.4 The main agent continuously waits for feedback from subagents and, at the same time, applies for review and approval of the subagents' tasks.
  8. ......

huasio avatar Mar 17 '26 06:03 huasio

I’m experimenting with a narrower change here that stays within writing-plans instead of introducing a new orchestration skill.

The goal is not to make Superpowers parallel-first. The goal is to make plans explicit enough to tell when work is safely parallelizable vs when it should stay iterative.

The shape I’m testing:

  • add per-task execution metadata: Depends on, Write Scope, Verify, Potential Conflicts
  • add a short Parallel Suitability Check before handoff
  • make the handoff give a recommended execution mode (Iterative or Parallel-safe) with reasoning
  • keep iterative as the default when tasks share files/contracts or depend tightly on each other

That seems to fit the spirit of this issue: approved plans become easier to decompose and route, without trying to replace heavier flows like agent-teams / assemble, and without changing the correctness-first preference toward iterative execution when tasks are coupled.

I’m preparing a PR from my fork with that narrower scope.

leonsong09 avatar Mar 28 '26 11:03 leonsong09

PR is up now: #970

leonsong09 avatar Mar 28 '26 11:03 leonsong09

This is a hard problem. Does this cover scenarios wherein a plan may include a set of tasks that require sequential execution, and another set of tasks that can be executed in parallel? And dependencies between them? Like, you can parallelize these 3 tasks, but only after this sequential set of 5 tasks is complete. And vice versa: You can parallelize these 3 tasks, and once they are all done you must implement the next 5 in sequence.

curena avatar Jun 25 '26 17:06 curena

Thanks for laying this out. The decompose-and-dispatch flow you describe — subagents implementing tasks from an approved plan while the main agent coordinates and reviews — is what superpowers:subagent-driven-development does today, and the parallel multi-agent collaboration side is tracked in #429, which now carries the plan → team → synthesize framing. Closing as a duplicate of #429; if there's a piece of this not captured there, please add it to that thread.

arittr avatar Aug 18 '26 19:08 arittr