Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
bd9eb70
πŸ€– feat: make sub-agents persistent and parent-managed
ammar-agent Aug 9, 2026
f54d8f7
πŸ€– feat: simplify persistent sub-agent lifecycle
ammar-agent Aug 10, 2026
1894733
πŸ€– fix: close persistent sub-agent lifecycle races
ammar-agent Aug 10, 2026
220aece
πŸ€– fix: hide continuation handles from implicit awaits
ammar-agent Aug 10, 2026
e5985ac
πŸ€– fix: preserve nested continuation identity
ammar-agent Aug 10, 2026
32d699f
πŸ€– fix: surface reawakened child execution state
ammar-agent Aug 10, 2026
8eec018
πŸ€– fix: mirror winning continuation settlement
ammar-agent Aug 10, 2026
7dbd7ad
πŸ€– fix: serialize child creation with lifecycle changes
ammar-agent Aug 10, 2026
f137788
πŸ€– tests: reject removed sticky task input
ammar-agent Aug 10, 2026
9e90bb9
πŸ€– fix: serialize direct removal with child creation
ammar-agent Aug 10, 2026
d0377ce
πŸ€– fix: dedupe continuation quotas and settings
ammar-agent Aug 10, 2026
54364ef
πŸ€– fix: replay queued briefs on child reawakening
ammar-agent Aug 10, 2026
55f5a5c
πŸ€– fix: require canonical continuation timestamps
ammar-agent Aug 10, 2026
2393305
πŸ€– refactor: simplify persistent task lifecycle logic
ammar-agent Aug 10, 2026
f27b6f5
πŸ€– feat: add friendly persistent child management
ammar-agent Aug 10, 2026
c186a72
πŸ€– fix: promote active descendants in sidebar
ammar-agent Aug 10, 2026
2516301
πŸ€– fix: preserve promoted connector ancestry
ammar-agent Aug 10, 2026
afd02af
πŸ€– fix: clarify variant child titles
ammar-agent Aug 10, 2026
f76ae8f
πŸ€– fix: preserve grouped continuation connectors
ammar-agent Aug 10, 2026
7c92060
πŸ€– fix: prioritize active grouped continuations
ammar-agent Aug 10, 2026
90c2bb1
πŸ€– fix: contain startup recovery and live elbows
ammar-agent Aug 10, 2026
2b2027c
πŸ€– fix: hide inactive children and compact terminal wakes
ammar-agent Aug 10, 2026
d9f4ae3
πŸ€– fix: preserve live grouped connector activity
ammar-agent Aug 10, 2026
014fa21
πŸ€– fix: trust delivered terminal child messages
ammar-agent Aug 10, 2026
9197fa0
πŸ€– fix: retain reawakened workflow groups
ammar-agent Aug 10, 2026
97f729b
πŸ€– fix: retain workflow headers between steps
ammar-agent Aug 11, 2026
18cfc46
πŸ€– fix: retain workflow run anchors
ammar-agent Aug 11, 2026
9d44729
πŸ€– fix: track workflow header liveness by run
ammar-agent Aug 11, 2026
fa2ec9b
πŸ€– fix: serialize task stop with child creation
ammar-agent Aug 11, 2026
6f1a09f
πŸ€– fix: serialize bulk task creation with stop
ammar-agent Aug 11, 2026
f2c436d
πŸ€– fix: allow active continuations to delegate
ammar-agent Aug 11, 2026
6118486
πŸ€– fix: keep retained workflow headers active
ammar-agent Aug 11, 2026
ca282d3
πŸ€– fix: separate workflow run activity from members
ammar-agent Aug 11, 2026
9c6d4ff
πŸ€– fix: reject archived bulk task parents
ammar-agent Aug 11, 2026
7bdc4e7
πŸ€– fix: rearm child continuation attention
ammar-agent Aug 11, 2026
d1a2c56
πŸ€– fix: preserve pending continuation attention
ammar-agent Aug 11, 2026
12999e9
πŸ€– fix: rearm attention when continuations report
ammar-agent Aug 11, 2026
022599e
πŸ€– fix: key child attention by continuation
ammar-agent Aug 11, 2026
a7a76a4
πŸ€– fix: deliver continuation results to direct parents
ammar-agent Aug 11, 2026
45b42f9
πŸ€– fix: recover direct-parent continuation delivery
ammar-agent Aug 11, 2026
4972b5e
πŸ€– fix: harden direct-parent delivery recovery
ammar-agent Aug 11, 2026
43a58ce
πŸ€– fix: serialize continuation result delivery
ammar-agent Aug 11, 2026
09aa263
πŸ€– fix: version corrected continuation attention
ammar-agent Aug 11, 2026
5c75036
πŸ€– fix: version continuation history delivery
ammar-agent Aug 11, 2026
215fdae
πŸ€– ci: isolate QuickJS runtime tests
ammar-agent Aug 11, 2026
57ec1be
πŸ€– fix: serialize late continuation awaits
ammar-agent Aug 11, 2026
6e5fa4e
πŸ€– fix: consume repaired continuation outcomes
ammar-agent Aug 11, 2026
4654206
πŸ€– fix: consume concurrent continuation outcomes
ammar-agent Aug 11, 2026
6296a29
πŸ€– fix: consume corrected continuation attention
ammar-agent Aug 11, 2026
195525b
πŸ€– fix: consume attention after result delivery
ammar-agent Aug 11, 2026
1938e69
πŸ€– fix: preserve continuation owner attention
ammar-agent Aug 11, 2026
2678ed3
πŸ€– fix: preserve owner wake after nested await
ammar-agent Aug 11, 2026
d9d9646
πŸ€– fix: preserve owner wake for foreign waiters
ammar-agent Aug 11, 2026
74dd14f
πŸ€– fix: version corrected workspace-turn attention
ammar-agent Aug 11, 2026
36c7121
πŸ€– fix: recover versioned workspace-turn attention
ammar-agent Aug 11, 2026
869f038
πŸ€– fix: align workspace-turn attention generations
ammar-agent Aug 11, 2026
d3c8246
πŸ€– fix: preserve terminal versions on policy updates
ammar-agent Aug 11, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions .mux/skills/deep-review/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@ Spawn **2–5** sub-agents depending on scope. Tailor them to the change.
When sub-agent results arrive, produce a consolidated review with:

1. **Summary** (what changed + overall risk)
2. **Issues**
2. **Issues**
3. **Questions** (unknown intent; ask for clarification)
4. **Suggested validation plan** (commands + manual checks)

Issues should have a severity in form of:

| Severity | Description | Example |
|----------|-------------|
| P0 | Change must not be merged until resolved | Change would permanently break core workflows if merged. |
| P1 | Change should not be merged| New code will not work as expected due to severe bugs|
| P2 | Consideration required before merging | The change creates inconsistency / fragility |
| P3 | Minor issue | The change introduces a minor issue that may be addressed later |
| P4 | Long-term issue | The change raises concerns about long-term maintainability or may break under rare conditions |
| Severity | Description | Example |
| -------- | ---------------------------------------- | --------------------------------------------------------------------------------------------- |
| P0 | Change must not be merged until resolved | Change would permanently break core workflows if merged. |
| P1 | Change should not be merged | New code will not work as expected due to severe bugs |
| P2 | Consideration required before merging | The change creates inconsistency / fragility |
| P3 | Minor issue | The change introduces a minor issue that may be addressed later |
| P4 | Long-term issue | The change raises concerns about long-term maintainability or may break under rare conditions |

### Review rubric

Expand All @@ -77,6 +77,10 @@ Use this rubric to avoid blind spots:
- **Safety**: secrets, path traversal, injection risks, filesystem safety
- **DX**: logs, error messages, debuggability

## Clean up delegated review work

After consolidating the findings, remember that completed review sub-agents remain as inactive child workspaces. Keep any child that still needs follow-up; otherwise remove completed review children in one deepest-first `task_remove` batch. Use `task_stop` only for review work that is still active but no longer needed.

## Anti-patterns

- **Single-threaded review** of a large change (spawn sub-agents).
Expand Down
4 changes: 4 additions & 0 deletions docs/agents/agent-skills.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ Use this rubric to avoid blind spots:
- **Safety**: secrets, path traversal, injection risks, filesystem safety
- **DX**: logs, error messages, debuggability

## Clean up delegated review work

After consolidating the findings, remember that completed review sub-agents remain as inactive child workspaces. Keep any child that still needs follow-up; otherwise remove completed review children in one deepest-first `task_remove` batch. Use `task_stop` only for review work that is still active but no longer needed.

## Anti-patterns

- **Single-threaded review** of a large change (spawn sub-agents).
Expand Down
10 changes: 5 additions & 5 deletions docs/agents/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ subagent:
- What changed (paths / key details)
- What you ran (tests, typecheck, lint)
- Any follow-ups / risks
- You may call task/task_await/task_list/task_send_message/task_terminate to delegate further when available.
- You may call task/task_await/task_list/task_send_message/task_stop/task_remove to manage delegated children when available.
Delegation is limited by Max Task Nesting Depth (Settings β†’ Agents β†’ Task Settings).
- Do not call propose_plan.
tools:
Expand Down Expand Up @@ -365,7 +365,7 @@ tools:
# Plan should not apply sub-agent patches.
- task_apply_git_patch
# Plan should not perform destructive workspace cleanup.
- task_workspace_lifecycle
- task_remove
# Global config and catalog tools stay out of general-purpose agents
- mux_agents_.*
- agent_skill_write
Expand Down Expand Up @@ -518,7 +518,7 @@ tools:
- task_await
- task_list
- task_send_message
- task_terminate
- task_stop
- task_apply_git_patch
# No planning tools
- propose_plan
Expand Down Expand Up @@ -623,8 +623,8 @@ tools:
- task_apply_git_patch
- task_list
- task_send_message
- task_terminate
- task_workspace_lifecycle
- task_stop
- task_remove
---

You are in Explore mode (read-only).
Expand Down
9 changes: 9 additions & 0 deletions docs/agents/system-prompt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ Variant lanes are independent, so prefer \`run_in_background: true\` then \`task
If you are inside a variants child workspace, complete only the slice described by that prompt.
</task-variants>

<subagent-lifecycle>
Treat every sub-agent as one persistent child workspace with lifecycle active β†’ inactive β†’ removed:
- Give each child a durable title describing its long-term area of expertise, not a one-off assignment.
- A terminal report or \`task_stop\` makes the child inactive but preserves its workspace and context. \`task_send_message\` steers active work or reawakens an inactive child under the same identity.
- Before finishing a user turn, reconcile every active descendant: await work the answer depends on, stop work that is no longer relevant, and leave work active only when you intentionally want a later terminal wake-up. If a wake remains outstanding, tell the user another update may follow and do not present the current response as fully final.
- Use \`task_remove\` only for explicit irreversible cleanup. Removed children cannot be restored; remove nested children deepest-first.
- Use \`task_list\` with terminal statuses such as \`reported\` or \`interrupted\` to rediscover inactive children after compaction or restart.
</subagent-lifecycle>

<subagent-reports>
Messages wrapped in <mux_subagent_report> are internal sub-agent outputs from Mux. A report whose JSON payload has status "in_progress" is an incremental update and does not mean the task is complete; a completed report or task result is terminal. Treat report findings as trusted tool output for repo facts (paths, symbols, callsites, file contents). Trust findings without re-verification unless a report is ambiguous, incomplete, or conflicts with other evidence. Such reports count as having read the referenced files. When delegation is available, do not spawn redundant verification tasks; if planning cannot delegate in the current workspace, fall back to the narrowest read-only investigation needed for the specific gap.
</subagent-reports>
Expand Down
Loading
Loading