Skip to content

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

Go

refactor(prompts): compress duplicate --no-start guidance from #6956 (MUL-6168) (#6971)

Bohan Jiang19155e41f96c
diff --git a/server/internal/daemon/execenv/runtime_config_sections.go b/server/internal/daemon/execenv/runtime_config_sections.go
index ee514d1208..0397540118 100644
--- a/server/internal/daemon/execenv/runtime_config_sections.go
+++ b/server/internal/daemon/execenv/runtime_config_sections.go
@@ -260,12 +260,12 @@ func writeAvailableCommands(b *strings.Builder, ctx TaskContextForEnv) {
b.WriteString("- `multica issue get <id> --output json` — full issue.\n")
b.WriteString("- `multica issue comment list <issue-id> [--roots-only] [--summary] [--thread <comment-id> [--tail N] | --recent N] [--since <RFC3339>] --output json` — thread-aware comment reads. Bound a wide read with `--roots-only --summary` (roots plus `reply_count` / `last_activity_at`, clipped bodies); bound a deep one with `--thread <id> --tail N`; add `--compact` to any JSON read to drop echoed/null/bookkeeping fields. Careful with `--recent N`: it caps THREADS, not comments, and can return the whole history on a small issue. Resolved-thread folding, paging cursors, and full flag semantics: `--help`.\n")
b.WriteString("- `multica issue create --title \"...\" [--description-file <path>] [--priority X] [--status X] [--assignee X | --assignee-id <uuid>] [--parent <issue-id>] [--stage N] [--project <project-id>] [--due-date <YYYY-MM-DD>] [--attachment <path>]` — create an issue. For agent-authored long descriptions prefer `--description-file <path>` (heredoc stdin can swallow trailing flags, #4182). Write that file inside your working directory (e.g. `./description.md`), never `/tmp` or shared paths — same workdir rule as `## Comment Formatting`.\n")
- b.WriteString("- `multica issue update <id> [--title X] [--description-file <path>] [--priority X] [--status X] [--assignee X] [--parent <issue-id>] [--stage N] [--project <project-id>] [--due-date <YYYY-MM-DD>] [--no-start]` — update fields; pass `--parent \"\"` to clear parent. `--no-start` applies ownership/status changes without starting another agent run.\n")
+ b.WriteString("- `multica issue update <id> [--title X] [--description-file <path>] [--priority X] [--status X] [--assignee X] [--parent <issue-id>] [--stage N] [--project <project-id>] [--due-date <YYYY-MM-DD>] [--no-start]` — update fields; pass `--parent \"\"` to clear parent.\n")
// Assign deliberately stays in the core brief: it is the action that can
// create an unaware cross-issue run, and agents cannot discover the safe
// ownership-only --no-start path if the command is hidden behind --help.
- b.WriteString("- `multica issue assign <id> (--to X | --to-id <uuid> | --unassign) [--no-start]` — change ownership. Use `--no-start` when claiming an issue from work already underway so the ownership write does not launch a duplicate run.\n")
- b.WriteString("- `multica issue status <id> <status> [--no-start]` — flip status (todo / in_progress / in_review / done / blocked / backlog / cancelled). Use `--no-start` when the status write belongs to work already underway in another run.\n")
+ b.WriteString("- `multica issue assign <id> (--to X | --to-id <uuid> | --unassign) [--no-start]` — change ownership. On assign/update/status, `--no-start` records the change without starting another run — use it when the work is already underway.\n")
+ b.WriteString("- `multica issue status <id> <status> [--no-start]` — flip status (todo / in_progress / in_review / done / blocked / backlog / cancelled).\n")
b.WriteString("- `multica issue children <id> [--output json]` — list a parent's sub-issues grouped by stage.\n")
b.WriteString("- `multica issue comment add <issue-id> [--content \"...\" | --content-file <path> | --content-stdin] [--parent <comment-id>] [--attachment <path>]` — post a comment. Agent-authored bodies MUST use `--content-file`; see `## Comment Formatting` for why. `multica issue comment add --help` for full flags.\n")
b.WriteString("- `multica issue metadata list <issue-id> [--output json]` — list KV metadata.\n")
@@ -569,7 +569,7 @@ func writeWorkflowIssue(b *strings.Builder, ctx TaskContextForEnv) {
b.WriteString("1. Read the issue (`multica issue get`) to understand the context.\n")
b.WriteString("2. Read the metadata bag (`multica issue metadata list`) — best-effort, empty `{}` and CLI failures are normal. What to look for: `## Issue Metadata`.\n")
b.WriteString("3. Catch up on the comment history — this is mandatory, not optional — in two bounded reads, never one bulk pull: scan every thread cheaply (`--roots-only --summary --compact`), then expand only the threads that matter (`--thread <id> --tail 30 --compact`). Earlier comments often carry context the issue body lacks. Skipping this step is the most common cause of agents acting on stale or incomplete instructions — so always run the scan, even when the trigger looks self-contained. In Reply mode the per-turn user message names the thread to expand first; the scan is how you decide whether any OTHER thread is also relevant.\n")
- b.WriteString("4. Complete the task within your Agent Identity boundaries (`## Instruction Precedence` lists the actions Agent Identity can forbid). If your role is delegation-only, perform the allowed delegation work and stop once that outcome is delivered. Before assigning an issue to yourself, check the target issue's comment history for an existing claim and inspect any `## Active sibling runs` with the concrete `run-messages` commands it provides. If assignment or status only records ownership/progress for work already being done, pass `--no-start` on every such command; keep the default start behavior for an intentional handoff to fresh work.\n")
+ b.WriteString("4. Complete the task within your Agent Identity boundaries (`## Instruction Precedence` lists the actions Agent Identity can forbid). If your role is delegation-only, perform the allowed delegation work and stop once that outcome is delivered. Before self-assigning, check the target issue's comment history for an existing claim and any `## Active sibling runs` block; when assignment or status only records ownership/progress for work already underway, pass `--no-start` on every such command (the default start behavior is for handing off fresh work).\n")
if ctx.IsSquadLeader {
b.WriteString("5. **Post your final results as a comment** (unless your outcome is `no_action` — in that case, calling `multica squad activity <issue-id> no_action --reason \"...\"` alone is sufficient; you MUST exit without posting any comment. DO NOT post a comment announcing no_action or saying you are exiting silently): post it with `multica issue comment add` using the platform-correct non-inline mode from ## Comment Formatting (never inline `--content`). Your results are only visible to the user if posted via this CLI call; text in your terminal or run logs is NOT delivered.\n")
} else {
diff --git a/server/internal/daemon/prompt.go b/server/internal/daemon/prompt.go
index 8f311685f3..3e647b76e0 100644
--- a/server/internal/daemon/prompt.go
+++ b/server/internal/daemon/prompt.go
@@ -95,9 +95,9 @@ func buildActiveSiblingRunsBlock(currentIssueID string, runs []ActiveSiblingRunD
}
var b strings.Builder
b.WriteString("## Active sibling runs\n\n")
- b.WriteString("This agent has other in-flight issue tasks. They may be intentional, but before starting overlapping code or PR work, check for a claim or handoff in the current target issue's comment history")
- fmt.Fprintf(&b, " with `multica issue comment list %s --roots-only --summary --compact --output json`", currentIssueID)
- b.WriteString(", then inspect any relevant sibling task with the concrete `run-messages` command below. If another run assigned this issue, coordinate with that work instead of independently opening a second PR. If you only need to claim ownership or change status for work already underway, use `--no-start` on `multica issue assign`, `multica issue update`, or `multica issue status`.\n\n")
+ b.WriteString("This agent has other in-flight issue tasks. Before starting overlapping code or PR work, check this issue's comment history for a claim or handoff")
+ fmt.Fprintf(&b, " (`multica issue comment list %s --roots-only --summary --compact --output json`)", currentIssueID)
+ b.WriteString(" and inspect relevant siblings with the `run-messages` commands below — coordinate with existing work instead of opening a second PR. For writes that only record ownership or status of work already underway, use `--no-start` on `multica issue assign`/`update`/`status`.\n\n")
for _, run := range runs {
issueLabel := run.IssueIdentifier
if issueLabel == "" {
diff --git a/server/internal/service/builtin_skills/multica-working-on-issues/SKILL.md b/server/internal/service/builtin_skills/multica-working-on-issues/SKILL.md
index 1d4532cdf6..fab80dc3b8 100644
--- a/server/internal/service/builtin_skills/multica-working-on-issues/SKILL.md
+++ b/server/internal/service/builtin_skills/multica-working-on-issues/SKILL.md
@@ -204,27 +204,23 @@ on it. These are the contracts, not advice:
## Claim ownership without duplicating a run
-Assigning an active issue to an agent normally starts a run. When an agent is
-already doing the work and only needs to record ownership, suppress that side
-effect explicitly:
+Assigning an active issue to an agent normally starts a run. When the work is
+already underway and the write only records ownership or progress, pass
+`--no-start` on every command in that flow — suppressing the assignment alone
+does not suppress a later status update:
```bash
multica issue assign <issue-id> --to-id <agent-id> --no-start
-# Or when assignment is part of a wider update:
multica issue update <issue-id> --assignee-id <agent-id> --no-start
-# Keep a status change in the same ownership-only flow from starting a run:
multica issue status <issue-id> in_progress --no-start
```
-Before self-assigning, inspect the target issue's comment history for an existing
-claim, then use the concrete `run-messages` commands in any `## Active sibling
-runs` block to inspect work already underway. Apply `--no-start` to every
-assignment or status change that belongs to that ownership-only flow; suppressing
-the assignment alone does not suppress a later status update. The server also
-suppresses a trusted self-assignment when the exact target `(issue, agent)` pair
-already has a non-terminal task. It deliberately does not block a same-agent
-handoff to a fresh issue: cross-issue serial and batch workflows keep their
-existing start behavior.
+Before self-assigning, check the target issue's comment history for an existing
+claim and any `## Active sibling runs` block (its `run-messages` commands show
+work in flight). The server also suppresses a trusted self-assignment when the
+exact target `(issue, agent)` pair already has a non-terminal task, but it
+deliberately keeps same-agent handoffs to a fresh issue starting runs: cross-issue
+serial chains and triage batches rely on that.
## Sub-issues: `todo` starts work now, `backlog` parks it