Replies: 4 comments
|
If you don't know what the coordinator feature is -- here's a summary: Coordinator mode — overview
What it isCoordinator mode turns one AI agent into a project lead. Instead of you driving a single agent through a long backlog, you give a coordinator agent a high-level goal and a list of items, and it spawns sub-tasks — each one a separate AI agent in its own isolated git worktree — to do the actual work in parallel. Think of it as: one AI manager + N AI workers, each on their own branch, all running at the same time. How it worksYou create a task, check the "Coordinator" option, and write a prompt like:
That coordinator task gets a special system preamble explaining it has MCP (Model Context Protocol) tools for orchestrating work, plus a "sliding-window" workflow:
Behind the scenes, each sub-task is a real Key MCP tools the coordinator uses
Sub-tasks have their own two-tool MCP surface:
What recent PRs are buildingThe feature has been evolving across several PRs:
When to use itGood fits:
Not great:
What you'll see in the UIWhen enabled, the New Task dialog gets a Coordinator checkbox and a Max concurrent sub-tasks setting. After spawning, the coordinator's task panel shows a strip of sub-task tiles, each with its own live terminal you can peek into. You can interact with any of them directly — typing into a sub-task pauses automation for that session without taking durable ownership. Settings also exposes Coordinator notification delay (default 60s) — how long the coordinator waits before nudging you about a completed sub-task, giving short-lived idle states time to resolve themselves. |
|
I’d like to propose changing how coordinator sub-task completion notifications are delivered. Currently, pending notifications are eventually delivered by the frontend: once the coordinator terminal appears ready for input, the app auto-injects the sub-task completion message into the coordinator PTY, as if the user had typed it manually. This works, but I think it creates a couple of reliability and ownership issues:
I’m more inclined toward a mailbox-style approach:
This would decouple “a sub-task result was produced” from “the coordinator chooses to consume that result”, while reducing reliance on UI auto-fire, terminal prompt detection, and PTY text injection. |
|
I appreciate the suggestion, but I'm not sure it will work. Here's why:
I'm open to changes on this - but my concern is the mailbox approach assumes the coordinator is actively checking for status. FYI injecting the prompt is done only when needed:
The above logic replaces the old take/release control model. I'd love other ideas how to deal with this issue - e.g. when the coordinator is no longer actively managing the tasks |
|
Closing this out given this was released with https://github.com/johannesjo/parallel-code/releases/tag/v1.10.0 |
Uh oh!
There was an error while loading. Please reload this page.
Hey everyone, creating this topic so we can discuss any questions, issues, bugs, etc on the coordinator. Feel free to use issues and submit PRs, but I wanted to be able to answer questions and discuss ideas.
All reactions