Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

docs(skills): sync squad leader fallback with direct handoff mode (MUL-10261) (#11640)

Bohan Jiang720bc6ed1390
diff --git a/CLI_AND_DAEMON.md b/CLI_AND_DAEMON.md
index f6c7391708..fd40e4a86f 100644
--- a/CLI_AND_DAEMON.md
+++ b/CLI_AND_DAEMON.md
@@ -1336,7 +1336,7 @@ multica squad delete <squad-id>
Member type flags default to `agent`; pass `--type member` to `squad member add` / `remove`, or `--member-type member` to `squad member set-role`, for a human member.
-`--handoff-mode` accepts `leader` (default: every member reply returns to the leader) or `direct` (members hand work to the next member by `@`-mentioning them directly without waking the leader; fixed guardrails return the issue to the leader after 3 back-and-forth rounds, 20 member handoffs in 24 hours, a failed member run, or a reply naming no next owner).
+`--handoff-mode` accepts `leader` (default: a member reply returns to the leader unless it `@`-mentions an agent or squad, which then runs instead) or `direct` (members hand work to the next member by `@`-mentioning them directly without waking the leader; fixed guardrails return the issue to the leader after 3 back-and-forth rounds, 20 member handoffs in 24 hours, a failed member run, or a reply naming no next owner).
## Quick Actions
diff --git a/server/cmd/multica/cmd_squad.go b/server/cmd/multica/cmd_squad.go
index 7542de11d5..1f0d622344 100644
--- a/server/cmd/multica/cmd_squad.go
+++ b/server/cmd/multica/cmd_squad.go
@@ -184,7 +184,8 @@ var squadUpdateCmd = &cobra.Command{
Long: `Update a squad's fields. Only the flags you pass are changed.
--handoff-mode decides who picks the next step after a member finishes:
- leader every member reply returns to the leader (default)
+ leader a member reply returns to the leader unless it @mentions an agent
+ or squad, which then runs instead (default)
direct members hand off to each other by @mention; the leader assigns the
first step and gets the issue back when a guard trips (3 rounds
between two members, 20 member handoffs per issue per day, a failed
diff --git a/server/internal/service/builtin_skills/multica-platform/references/mentions.md b/server/internal/service/builtin_skills/multica-platform/references/mentions.md
index f121ead607..c32c810012 100644
--- a/server/internal/service/builtin_skills/multica-platform/references/mentions.md
+++ b/server/internal/service/builtin_skills/multica-platform/references/mentions.md
@@ -128,10 +128,13 @@ fallbacks — thread parent / conversation owner. Members can use `@all` to
announce without requesting work from the assignee.
For AGENT-authored comments, member mentions and `@all` do NOT suppress the
-squad leader fallback. A worker's result on a squad-assigned issue still
-returns to the assigned leader; in a guest squad's delegation thread, it still
-returns to the guest leader. People receive notifications as usual, and the
-existing leader self-trigger protection and pending-run dedup still apply.
+squad leader fallback, with one exception: when a member of a squad in `direct`
+handoff mode comments on that squad's issue and mentions a person but no agent,
+nobody is woken (see `references/squads.md`, Handoff mode). Otherwise a
+worker's result on a squad-assigned issue still returns to the assigned leader;
+in a guest squad's delegation thread, it still returns to the guest leader.
+People receive notifications as usual, and the existing leader self-trigger
+protection and pending-run dedup still apply.
For any author, an EXPLICIT `@agent` / `@squad`
mention in the same comment still fires normally: a comment reading
@@ -309,7 +312,8 @@ Correct:
@all broadcast: `[@all](mention://all/all) heads up` — notifies human workspace
members and runs no specific agent by itself. It suppresses the assignee
auto-trigger only for member authors; worker-agent comments still return to
-the assigned or guest squad leader as described above.
+the assigned or guest squad leader as described above, except a person handoff
+in a `direct`-mode squad.
Using the wrong `type` for a real UUID still parses — it just resolves to the
wrong entity, or to nothing. That is why the type must match the id source.
diff --git a/server/internal/service/builtin_skills/multica-platform/references/squads.md b/server/internal/service/builtin_skills/multica-platform/references/squads.md
index 13c760bfff..261af8359f 100644
--- a/server/internal/service/builtin_skills/multica-platform/references/squads.md
+++ b/server/internal/service/builtin_skills/multica-platform/references/squads.md
@@ -180,8 +180,11 @@ Protocol.
## Handoff mode
-`leader` (default): every member reply wakes the leader, as described under
-[Comment and mention behavior](#comment-and-mention-behavior).
+`leader` (default): a member reply with no explicit `@agent` / `@squad` mention
+wakes the leader, as described under
+[Comment and mention behavior](#comment-and-mention-behavior); one that
+mentions another agent or squad runs only that target (see
+`references/mentions.md`).
`direct`, for a comment written by a member's run on the squad's own issue: