ac-framework 1.9.5 → 1.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/LICENSE +1 -0
  2. package/README.md +16 -1
  3. package/framework/mobile_development/.agent/workflows/ac.md +57 -4
  4. package/framework/mobile_development/.amazonq/prompts/ac.md +57 -4
  5. package/framework/mobile_development/.antigravity/workflows/ac.md +57 -4
  6. package/framework/mobile_development/.augment/commands/ac.md +57 -4
  7. package/framework/mobile_development/.claude/commands/opsx/ac.md +57 -4
  8. package/framework/mobile_development/.cline/commands/opsx/ac.md +57 -4
  9. package/framework/mobile_development/.clinerules/workflows/ac.md +57 -4
  10. package/framework/mobile_development/.codebuddy/commands/opsx/ac.md +57 -4
  11. package/framework/mobile_development/.continue/prompts/ac.md +57 -4
  12. package/framework/mobile_development/.cospec/openspec/commands/ac.md +57 -4
  13. package/framework/mobile_development/.crush/commands/opsx/ac.md +57 -4
  14. package/framework/mobile_development/.cursor/commands/ac.md +57 -4
  15. package/framework/mobile_development/.factory/commands/ac.md +57 -4
  16. package/framework/mobile_development/.gemini/commands/opsx/ac.md +57 -4
  17. package/framework/mobile_development/.github/prompts/ac.md +57 -4
  18. package/framework/mobile_development/.iflow/commands/ac.md +57 -4
  19. package/framework/mobile_development/.kilocode/workflows/ac.md +57 -4
  20. package/framework/mobile_development/.kimi/workflows/ac.md +57 -4
  21. package/framework/mobile_development/.opencode/command/ac.md +57 -4
  22. package/framework/mobile_development/.qoder/commands/opsx/ac.md +57 -4
  23. package/framework/mobile_development/.qwen/commands/ac.md +57 -4
  24. package/framework/mobile_development/.roo/commands/ac.md +57 -4
  25. package/framework/mobile_development/.windsurf/workflows/ac.md +57 -4
  26. package/framework/new_project/.agent/workflows/ac.md +39 -0
  27. package/framework/new_project/.amazonq/prompts/ac.md +39 -0
  28. package/framework/new_project/.antigravity/workflows/ac.md +39 -0
  29. package/framework/new_project/.augment/commands/ac.md +39 -0
  30. package/framework/new_project/.claude/commands/opsx/ac.md +39 -0
  31. package/framework/new_project/.cline/commands/opsx/ac.md +39 -0
  32. package/framework/new_project/.clinerules/workflows/ac.md +39 -0
  33. package/framework/new_project/.codebuddy/commands/opsx/ac.md +39 -0
  34. package/framework/new_project/.continue/prompts/ac.md +39 -0
  35. package/framework/new_project/.cospec/openspec/commands/ac.md +39 -0
  36. package/framework/new_project/.crush/commands/opsx/ac.md +39 -0
  37. package/framework/new_project/.cursor/commands/ac.md +39 -0
  38. package/framework/new_project/.factory/commands/ac.md +39 -0
  39. package/framework/new_project/.gemini/commands/opsx/ac.md +39 -0
  40. package/framework/new_project/.github/prompts/ac.md +39 -0
  41. package/framework/new_project/.iflow/commands/ac.md +39 -0
  42. package/framework/new_project/.kilocode/workflows/ac.md +39 -0
  43. package/framework/new_project/.kimi/workflows/ac.md +39 -0
  44. package/framework/new_project/.opencode/command/ac.md +16 -4
  45. package/framework/new_project/.qoder/commands/opsx/ac.md +39 -0
  46. package/framework/new_project/.qwen/commands/ac.md +39 -0
  47. package/framework/new_project/.roo/commands/ac.md +39 -0
  48. package/framework/new_project/.windsurf/workflows/ac.md +39 -0
  49. package/framework/web_development/.agent/workflows/ac.md +39 -0
  50. package/framework/web_development/.amazonq/prompts/ac.md +39 -0
  51. package/framework/web_development/.antigravity/workflows/ac.md +39 -0
  52. package/framework/web_development/.augment/commands/ac.md +39 -0
  53. package/framework/web_development/.claude/commands/opsx/ac.md +39 -0
  54. package/framework/web_development/.cline/commands/opsx/ac.md +39 -0
  55. package/framework/web_development/.clinerules/workflows/ac.md +39 -0
  56. package/framework/web_development/.codebuddy/commands/opsx/ac.md +39 -0
  57. package/framework/web_development/.continue/prompts/ac.md +39 -0
  58. package/framework/web_development/.cospec/openspec/commands/ac.md +39 -0
  59. package/framework/web_development/.crush/commands/opsx/ac.md +39 -0
  60. package/framework/web_development/.cursor/commands/ac.md +39 -0
  61. package/framework/web_development/.factory/commands/ac.md +39 -0
  62. package/framework/web_development/.gemini/commands/opsx/ac.md +39 -0
  63. package/framework/web_development/.github/prompts/ac.md +39 -0
  64. package/framework/web_development/.iflow/commands/ac.md +39 -0
  65. package/framework/web_development/.kilocode/workflows/ac.md +39 -0
  66. package/framework/web_development/.kimi/workflows/ac.md +39 -0
  67. package/framework/web_development/.opencode/command/ac.md +16 -4
  68. package/framework/web_development/.qoder/commands/opsx/ac.md +39 -0
  69. package/framework/web_development/.qwen/commands/ac.md +39 -0
  70. package/framework/web_development/.roo/commands/ac.md +39 -0
  71. package/framework/web_development/.windsurf/workflows/ac.md +39 -0
  72. package/package.json +1 -1
  73. package/src/agents/config-store.js +49 -0
  74. package/src/agents/constants.js +1 -0
  75. package/src/agents/model-selection.js +38 -0
  76. package/src/agents/opencode-client.js +68 -9
  77. package/src/agents/orchestrator.js +10 -3
  78. package/src/agents/runtime.js +82 -0
  79. package/src/agents/state-store.js +3 -1
  80. package/src/commands/agents.js +319 -83
  81. package/src/mcp/collab-server.js +105 -4
  82. package/src/services/dependency-installer.js +20 -1
package/LICENSE CHANGED
@@ -16,4 +16,5 @@ Copyright (c) 2026 Damola Akinleye
16
16
  Copyright (c) 2025 Jesse Vincent
17
17
  Copyright (c) 2024 Seth Hobson
18
18
  Copyright (c) 2026 Antigravity User
19
+ Copyright (c) 2025 opencode
19
20
  (CREDITS)
package/README.md CHANGED
@@ -141,18 +141,33 @@ Each role runs in turn against a shared, accumulating context so outputs from on
141
141
  | Command | Description |
142
142
  |---|---|
143
143
  | `acfm agents setup` | Install optional dependencies (`opencode` and `tmux`) |
144
+ | `acfm agents doctor` | Validate OpenCode/tmux/model preflight before start |
144
145
  | `acfm agents install-mcps` | Install SynapseGrid MCP server for detected assistants |
145
146
  | `acfm agents uninstall-mcps` | Remove SynapseGrid MCP server from assistants |
146
- | `acfm agents start --task "..."` | Start a SynapseGrid collaborative session |
147
+ | `acfm agents start --task "..." --model-coder provider/model` | Start session with optional per-role models |
147
148
  | `acfm agents resume` | Resume a previous session and recreate workers if needed |
148
149
  | `acfm agents list` | List recent SynapseGrid sessions |
149
150
  | `acfm agents attach` | Attach directly to the SynapseGrid tmux session |
151
+ | `acfm agents live` | Attach to full live tmux view (all agents) |
150
152
  | `acfm agents logs` | Show recent worker logs (all roles or one role) |
151
153
  | `acfm agents export --format md --out file.md` | Export transcript in Markdown or JSON |
152
154
  | `acfm agents send "..."` | Send a new user message into the active session |
153
155
  | `acfm agents status` | Show current collaborative session state |
156
+ | `acfm agents model get` | Show default model config (global and per-role) |
157
+ | `acfm agents model set --role coder provider/model` | Persist a default model for one role |
158
+ | `acfm agents model clear --role all` | Clear persisted model defaults |
154
159
  | `acfm agents stop` | Stop the active collaborative session |
155
160
 
161
+ ### SynapseGrid troubleshooting
162
+
163
+ - If transcript entries show `Agent failed: spawn opencode ENOENT`, run `acfm agents setup` to install dependencies and then retry.
164
+ - Attach to worker panes with `acfm agents live` (or `acfm agents attach`) to see real-time role discussion.
165
+ - Inspect worker errors quickly with `acfm agents logs --role all --lines 120`.
166
+ - MCP starts can now create tmux workers directly; if your assistant used headless steps before, start a new session and ensure worker spawning is enabled.
167
+ - Configure role models directly at start (for example `--model-planner`, `--model-coder`) or persist defaults via `acfm agents model set`.
168
+ - Default SynapseGrid model fallback is `opencode/minimax-m2.5-free`.
169
+ - Run `acfm agents doctor` when panes look idle to confirm model/provider preflight health.
170
+
156
171
  ### Spec Workflow
157
172
 
158
173
  | Command | Description |
@@ -93,6 +93,46 @@ The AC Framework includes a persistent memory system that agents must use proact
93
93
 
94
94
  **User communication:** `Memory saved: [brief description]`
95
95
 
96
+ ### SynapseGrid Collaborative MCP Protocol (Optional)
97
+
98
+ If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborative MCP server automatically for detected assistants.
99
+
100
+ **Session-start requirement when collaboration is enabled:**
101
+ 1. Prefer the available SynapseGrid MCP tools for collaborative session control before falling back to direct CLI.
102
+ 2. Use shared session state and transcript as the source of truth for role-by-role collaboration.
103
+ 3. If collaborative MCP is unavailable, use CLI fallback commands and keep behavior equivalent.
104
+
105
+ **How to use SynapseGrid collaboration:**
106
+ ```text
107
+ Preferred: use SynapseGrid MCP tools (ac-framework-collab) for start/status/step/resume/stop.
108
+ Fallback: use AC Framework agents CLI commands directly.
109
+ ```
110
+ ```bash
111
+ # Install/update collaborative MCP server integrations
112
+ acfm agents install-mcps
113
+
114
+ # Start collaborative runtime with visible 4-pane tmux war-room
115
+ acfm agents start --task "design and implement feature X" --attach --model-coder provider/model
116
+
117
+ # If already running in background, attach to panes and inspect logs
118
+ acfm agents live
119
+ acfm agents logs --role all --lines 120
120
+
121
+ # Resume/list/export operations
122
+ acfm agents resume
123
+ acfm agents list
124
+ acfm agents export --format md --out synapse-session.md
125
+
126
+ # Fast diagnostics for OpenCode resolution errors
127
+ acfm agents setup
128
+ ```
129
+
130
+ **Troubleshooting notes:**
131
+ - If transcript shows `Agent failed: spawn opencode ENOENT`, run `acfm agents setup` and restart/resume session.
132
+ - If session exists but panes are not visible, use `acfm agents live` (or `acfm agents attach`) or `tmux attach -t <session-name>`.
133
+ - For MCP-first flows, ensure session start enables worker spawning so tmux panes are created.
134
+ - Per-role models can be set at start (`--model-planner`, `--model-critic`, `--model-coder`, `--model-reviewer`) or persisted via `acfm agents model set`.
135
+
96
136
  ## SynapseGrid Collaborative MCP Protocol (Optional)
97
137
 
98
138
  If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborative MCP server automatically for detected assistants.
@@ -104,22 +144,35 @@ If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborativ
104
144
 
105
145
  **How to use SynapseGrid collaboration:**
106
146
  ```text
107
- Preferred: use SynapseGrid MCP tools (ac-framework-collab) for session start/status/step/stop.
147
+ Preferred: use SynapseGrid MCP tools (ac-framework-collab) for start/status/step/resume/stop.
108
148
  Fallback: use AC Framework agents CLI commands directly.
109
149
  ```
110
150
  ```bash
111
- # Optional install/reinstall of collaborative MCP servers
151
+ # Install/update collaborative MCP server integrations
112
152
  acfm agents install-mcps
113
153
 
114
- # Start collaborative runtime manually
115
- acfm agents start --task "design and implement feature X"
154
+ # Start collaborative runtime with visible 4-pane tmux war-room
155
+ acfm agents start --task "design and implement feature X" --attach --model-coder provider/model
156
+
157
+ # If already running in background, attach to panes and inspect logs
158
+ acfm agents live
159
+ acfm agents logs --role all --lines 120
116
160
 
117
161
  # Resume/list/export operations
118
162
  acfm agents resume
119
163
  acfm agents list
120
164
  acfm agents export --format md --out synapse-session.md
165
+
166
+ # Fast diagnostics for OpenCode resolution errors
167
+ acfm agents setup
121
168
  ```
122
169
 
170
+ **Troubleshooting notes:**
171
+ - If transcript shows `Agent failed: spawn opencode ENOENT`, run `acfm agents setup` and restart/resume session.
172
+ - If session exists but panes are not visible, use `acfm agents live` (or `acfm agents attach`) or `tmux attach -t <session-name>`.
173
+ - For MCP-first flows, ensure session start enables worker spawning so tmux panes are created.
174
+ - Per-role models can be set at start (`--model-planner`, `--model-critic`, `--model-coder`, `--model-reviewer`) or persisted via `acfm agents model set`.
175
+
123
176
  ---
124
177
 
125
178
  ## CRITICAL: How to Use Skills - ZERO SKIP POLICY
@@ -93,6 +93,46 @@ The AC Framework includes a persistent memory system that agents must use proact
93
93
 
94
94
  **User communication:** `Memory saved: [brief description]`
95
95
 
96
+ ### SynapseGrid Collaborative MCP Protocol (Optional)
97
+
98
+ If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborative MCP server automatically for detected assistants.
99
+
100
+ **Session-start requirement when collaboration is enabled:**
101
+ 1. Prefer the available SynapseGrid MCP tools for collaborative session control before falling back to direct CLI.
102
+ 2. Use shared session state and transcript as the source of truth for role-by-role collaboration.
103
+ 3. If collaborative MCP is unavailable, use CLI fallback commands and keep behavior equivalent.
104
+
105
+ **How to use SynapseGrid collaboration:**
106
+ ```text
107
+ Preferred: use SynapseGrid MCP tools (ac-framework-collab) for start/status/step/resume/stop.
108
+ Fallback: use AC Framework agents CLI commands directly.
109
+ ```
110
+ ```bash
111
+ # Install/update collaborative MCP server integrations
112
+ acfm agents install-mcps
113
+
114
+ # Start collaborative runtime with visible 4-pane tmux war-room
115
+ acfm agents start --task "design and implement feature X" --attach --model-coder provider/model
116
+
117
+ # If already running in background, attach to panes and inspect logs
118
+ acfm agents live
119
+ acfm agents logs --role all --lines 120
120
+
121
+ # Resume/list/export operations
122
+ acfm agents resume
123
+ acfm agents list
124
+ acfm agents export --format md --out synapse-session.md
125
+
126
+ # Fast diagnostics for OpenCode resolution errors
127
+ acfm agents setup
128
+ ```
129
+
130
+ **Troubleshooting notes:**
131
+ - If transcript shows `Agent failed: spawn opencode ENOENT`, run `acfm agents setup` and restart/resume session.
132
+ - If session exists but panes are not visible, use `acfm agents live` (or `acfm agents attach`) or `tmux attach -t <session-name>`.
133
+ - For MCP-first flows, ensure session start enables worker spawning so tmux panes are created.
134
+ - Per-role models can be set at start (`--model-planner`, `--model-critic`, `--model-coder`, `--model-reviewer`) or persisted via `acfm agents model set`.
135
+
96
136
  ## SynapseGrid Collaborative MCP Protocol (Optional)
97
137
 
98
138
  If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborative MCP server automatically for detected assistants.
@@ -104,22 +144,35 @@ If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborativ
104
144
 
105
145
  **How to use SynapseGrid collaboration:**
106
146
  ```text
107
- Preferred: use SynapseGrid MCP tools (ac-framework-collab) for session start/status/step/stop.
147
+ Preferred: use SynapseGrid MCP tools (ac-framework-collab) for start/status/step/resume/stop.
108
148
  Fallback: use AC Framework agents CLI commands directly.
109
149
  ```
110
150
  ```bash
111
- # Optional install/reinstall of collaborative MCP servers
151
+ # Install/update collaborative MCP server integrations
112
152
  acfm agents install-mcps
113
153
 
114
- # Start collaborative runtime manually
115
- acfm agents start --task "design and implement feature X"
154
+ # Start collaborative runtime with visible 4-pane tmux war-room
155
+ acfm agents start --task "design and implement feature X" --attach --model-coder provider/model
156
+
157
+ # If already running in background, attach to panes and inspect logs
158
+ acfm agents live
159
+ acfm agents logs --role all --lines 120
116
160
 
117
161
  # Resume/list/export operations
118
162
  acfm agents resume
119
163
  acfm agents list
120
164
  acfm agents export --format md --out synapse-session.md
165
+
166
+ # Fast diagnostics for OpenCode resolution errors
167
+ acfm agents setup
121
168
  ```
122
169
 
170
+ **Troubleshooting notes:**
171
+ - If transcript shows `Agent failed: spawn opencode ENOENT`, run `acfm agents setup` and restart/resume session.
172
+ - If session exists but panes are not visible, use `acfm agents live` (or `acfm agents attach`) or `tmux attach -t <session-name>`.
173
+ - For MCP-first flows, ensure session start enables worker spawning so tmux panes are created.
174
+ - Per-role models can be set at start (`--model-planner`, `--model-critic`, `--model-coder`, `--model-reviewer`) or persisted via `acfm agents model set`.
175
+
123
176
  ---
124
177
 
125
178
  ## CRITICAL: How to Use Skills - ZERO SKIP POLICY
@@ -93,6 +93,46 @@ The AC Framework includes a persistent memory system that agents must use proact
93
93
 
94
94
  **User communication:** `Memory saved: [brief description]`
95
95
 
96
+ ### SynapseGrid Collaborative MCP Protocol (Optional)
97
+
98
+ If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborative MCP server automatically for detected assistants.
99
+
100
+ **Session-start requirement when collaboration is enabled:**
101
+ 1. Prefer the available SynapseGrid MCP tools for collaborative session control before falling back to direct CLI.
102
+ 2. Use shared session state and transcript as the source of truth for role-by-role collaboration.
103
+ 3. If collaborative MCP is unavailable, use CLI fallback commands and keep behavior equivalent.
104
+
105
+ **How to use SynapseGrid collaboration:**
106
+ ```text
107
+ Preferred: use SynapseGrid MCP tools (ac-framework-collab) for start/status/step/resume/stop.
108
+ Fallback: use AC Framework agents CLI commands directly.
109
+ ```
110
+ ```bash
111
+ # Install/update collaborative MCP server integrations
112
+ acfm agents install-mcps
113
+
114
+ # Start collaborative runtime with visible 4-pane tmux war-room
115
+ acfm agents start --task "design and implement feature X" --attach --model-coder provider/model
116
+
117
+ # If already running in background, attach to panes and inspect logs
118
+ acfm agents live
119
+ acfm agents logs --role all --lines 120
120
+
121
+ # Resume/list/export operations
122
+ acfm agents resume
123
+ acfm agents list
124
+ acfm agents export --format md --out synapse-session.md
125
+
126
+ # Fast diagnostics for OpenCode resolution errors
127
+ acfm agents setup
128
+ ```
129
+
130
+ **Troubleshooting notes:**
131
+ - If transcript shows `Agent failed: spawn opencode ENOENT`, run `acfm agents setup` and restart/resume session.
132
+ - If session exists but panes are not visible, use `acfm agents live` (or `acfm agents attach`) or `tmux attach -t <session-name>`.
133
+ - For MCP-first flows, ensure session start enables worker spawning so tmux panes are created.
134
+ - Per-role models can be set at start (`--model-planner`, `--model-critic`, `--model-coder`, `--model-reviewer`) or persisted via `acfm agents model set`.
135
+
96
136
  ## SynapseGrid Collaborative MCP Protocol (Optional)
97
137
 
98
138
  If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborative MCP server automatically for detected assistants.
@@ -104,22 +144,35 @@ If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborativ
104
144
 
105
145
  **How to use SynapseGrid collaboration:**
106
146
  ```text
107
- Preferred: use SynapseGrid MCP tools (ac-framework-collab) for session start/status/step/stop.
147
+ Preferred: use SynapseGrid MCP tools (ac-framework-collab) for start/status/step/resume/stop.
108
148
  Fallback: use AC Framework agents CLI commands directly.
109
149
  ```
110
150
  ```bash
111
- # Optional install/reinstall of collaborative MCP servers
151
+ # Install/update collaborative MCP server integrations
112
152
  acfm agents install-mcps
113
153
 
114
- # Start collaborative runtime manually
115
- acfm agents start --task "design and implement feature X"
154
+ # Start collaborative runtime with visible 4-pane tmux war-room
155
+ acfm agents start --task "design and implement feature X" --attach --model-coder provider/model
156
+
157
+ # If already running in background, attach to panes and inspect logs
158
+ acfm agents live
159
+ acfm agents logs --role all --lines 120
116
160
 
117
161
  # Resume/list/export operations
118
162
  acfm agents resume
119
163
  acfm agents list
120
164
  acfm agents export --format md --out synapse-session.md
165
+
166
+ # Fast diagnostics for OpenCode resolution errors
167
+ acfm agents setup
121
168
  ```
122
169
 
170
+ **Troubleshooting notes:**
171
+ - If transcript shows `Agent failed: spawn opencode ENOENT`, run `acfm agents setup` and restart/resume session.
172
+ - If session exists but panes are not visible, use `acfm agents live` (or `acfm agents attach`) or `tmux attach -t <session-name>`.
173
+ - For MCP-first flows, ensure session start enables worker spawning so tmux panes are created.
174
+ - Per-role models can be set at start (`--model-planner`, `--model-critic`, `--model-coder`, `--model-reviewer`) or persisted via `acfm agents model set`.
175
+
123
176
  ---
124
177
 
125
178
  ## CRITICAL: How to Use Skills - ZERO SKIP POLICY
@@ -93,6 +93,46 @@ The AC Framework includes a persistent memory system that agents must use proact
93
93
 
94
94
  **User communication:** `Memory saved: [brief description]`
95
95
 
96
+ ### SynapseGrid Collaborative MCP Protocol (Optional)
97
+
98
+ If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborative MCP server automatically for detected assistants.
99
+
100
+ **Session-start requirement when collaboration is enabled:**
101
+ 1. Prefer the available SynapseGrid MCP tools for collaborative session control before falling back to direct CLI.
102
+ 2. Use shared session state and transcript as the source of truth for role-by-role collaboration.
103
+ 3. If collaborative MCP is unavailable, use CLI fallback commands and keep behavior equivalent.
104
+
105
+ **How to use SynapseGrid collaboration:**
106
+ ```text
107
+ Preferred: use SynapseGrid MCP tools (ac-framework-collab) for start/status/step/resume/stop.
108
+ Fallback: use AC Framework agents CLI commands directly.
109
+ ```
110
+ ```bash
111
+ # Install/update collaborative MCP server integrations
112
+ acfm agents install-mcps
113
+
114
+ # Start collaborative runtime with visible 4-pane tmux war-room
115
+ acfm agents start --task "design and implement feature X" --attach --model-coder provider/model
116
+
117
+ # If already running in background, attach to panes and inspect logs
118
+ acfm agents live
119
+ acfm agents logs --role all --lines 120
120
+
121
+ # Resume/list/export operations
122
+ acfm agents resume
123
+ acfm agents list
124
+ acfm agents export --format md --out synapse-session.md
125
+
126
+ # Fast diagnostics for OpenCode resolution errors
127
+ acfm agents setup
128
+ ```
129
+
130
+ **Troubleshooting notes:**
131
+ - If transcript shows `Agent failed: spawn opencode ENOENT`, run `acfm agents setup` and restart/resume session.
132
+ - If session exists but panes are not visible, use `acfm agents live` (or `acfm agents attach`) or `tmux attach -t <session-name>`.
133
+ - For MCP-first flows, ensure session start enables worker spawning so tmux panes are created.
134
+ - Per-role models can be set at start (`--model-planner`, `--model-critic`, `--model-coder`, `--model-reviewer`) or persisted via `acfm agents model set`.
135
+
96
136
  ## SynapseGrid Collaborative MCP Protocol (Optional)
97
137
 
98
138
  If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborative MCP server automatically for detected assistants.
@@ -104,22 +144,35 @@ If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborativ
104
144
 
105
145
  **How to use SynapseGrid collaboration:**
106
146
  ```text
107
- Preferred: use SynapseGrid MCP tools (ac-framework-collab) for session start/status/step/stop.
147
+ Preferred: use SynapseGrid MCP tools (ac-framework-collab) for start/status/step/resume/stop.
108
148
  Fallback: use AC Framework agents CLI commands directly.
109
149
  ```
110
150
  ```bash
111
- # Optional install/reinstall of collaborative MCP servers
151
+ # Install/update collaborative MCP server integrations
112
152
  acfm agents install-mcps
113
153
 
114
- # Start collaborative runtime manually
115
- acfm agents start --task "design and implement feature X"
154
+ # Start collaborative runtime with visible 4-pane tmux war-room
155
+ acfm agents start --task "design and implement feature X" --attach --model-coder provider/model
156
+
157
+ # If already running in background, attach to panes and inspect logs
158
+ acfm agents live
159
+ acfm agents logs --role all --lines 120
116
160
 
117
161
  # Resume/list/export operations
118
162
  acfm agents resume
119
163
  acfm agents list
120
164
  acfm agents export --format md --out synapse-session.md
165
+
166
+ # Fast diagnostics for OpenCode resolution errors
167
+ acfm agents setup
121
168
  ```
122
169
 
170
+ **Troubleshooting notes:**
171
+ - If transcript shows `Agent failed: spawn opencode ENOENT`, run `acfm agents setup` and restart/resume session.
172
+ - If session exists but panes are not visible, use `acfm agents live` (or `acfm agents attach`) or `tmux attach -t <session-name>`.
173
+ - For MCP-first flows, ensure session start enables worker spawning so tmux panes are created.
174
+ - Per-role models can be set at start (`--model-planner`, `--model-critic`, `--model-coder`, `--model-reviewer`) or persisted via `acfm agents model set`.
175
+
123
176
  ---
124
177
 
125
178
  ## CRITICAL: How to Use Skills - ZERO SKIP POLICY
@@ -93,6 +93,46 @@ The AC Framework includes a persistent memory system that agents must use proact
93
93
 
94
94
  **User communication:** `Memory saved: [brief description]`
95
95
 
96
+ ### SynapseGrid Collaborative MCP Protocol (Optional)
97
+
98
+ If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborative MCP server automatically for detected assistants.
99
+
100
+ **Session-start requirement when collaboration is enabled:**
101
+ 1. Prefer the available SynapseGrid MCP tools for collaborative session control before falling back to direct CLI.
102
+ 2. Use shared session state and transcript as the source of truth for role-by-role collaboration.
103
+ 3. If collaborative MCP is unavailable, use CLI fallback commands and keep behavior equivalent.
104
+
105
+ **How to use SynapseGrid collaboration:**
106
+ ```text
107
+ Preferred: use SynapseGrid MCP tools (ac-framework-collab) for start/status/step/resume/stop.
108
+ Fallback: use AC Framework agents CLI commands directly.
109
+ ```
110
+ ```bash
111
+ # Install/update collaborative MCP server integrations
112
+ acfm agents install-mcps
113
+
114
+ # Start collaborative runtime with visible 4-pane tmux war-room
115
+ acfm agents start --task "design and implement feature X" --attach --model-coder provider/model
116
+
117
+ # If already running in background, attach to panes and inspect logs
118
+ acfm agents live
119
+ acfm agents logs --role all --lines 120
120
+
121
+ # Resume/list/export operations
122
+ acfm agents resume
123
+ acfm agents list
124
+ acfm agents export --format md --out synapse-session.md
125
+
126
+ # Fast diagnostics for OpenCode resolution errors
127
+ acfm agents setup
128
+ ```
129
+
130
+ **Troubleshooting notes:**
131
+ - If transcript shows `Agent failed: spawn opencode ENOENT`, run `acfm agents setup` and restart/resume session.
132
+ - If session exists but panes are not visible, use `acfm agents live` (or `acfm agents attach`) or `tmux attach -t <session-name>`.
133
+ - For MCP-first flows, ensure session start enables worker spawning so tmux panes are created.
134
+ - Per-role models can be set at start (`--model-planner`, `--model-critic`, `--model-coder`, `--model-reviewer`) or persisted via `acfm agents model set`.
135
+
96
136
  ## SynapseGrid Collaborative MCP Protocol (Optional)
97
137
 
98
138
  If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborative MCP server automatically for detected assistants.
@@ -104,22 +144,35 @@ If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborativ
104
144
 
105
145
  **How to use SynapseGrid collaboration:**
106
146
  ```text
107
- Preferred: use SynapseGrid MCP tools (ac-framework-collab) for session start/status/step/stop.
147
+ Preferred: use SynapseGrid MCP tools (ac-framework-collab) for start/status/step/resume/stop.
108
148
  Fallback: use AC Framework agents CLI commands directly.
109
149
  ```
110
150
  ```bash
111
- # Optional install/reinstall of collaborative MCP servers
151
+ # Install/update collaborative MCP server integrations
112
152
  acfm agents install-mcps
113
153
 
114
- # Start collaborative runtime manually
115
- acfm agents start --task "design and implement feature X"
154
+ # Start collaborative runtime with visible 4-pane tmux war-room
155
+ acfm agents start --task "design and implement feature X" --attach --model-coder provider/model
156
+
157
+ # If already running in background, attach to panes and inspect logs
158
+ acfm agents live
159
+ acfm agents logs --role all --lines 120
116
160
 
117
161
  # Resume/list/export operations
118
162
  acfm agents resume
119
163
  acfm agents list
120
164
  acfm agents export --format md --out synapse-session.md
165
+
166
+ # Fast diagnostics for OpenCode resolution errors
167
+ acfm agents setup
121
168
  ```
122
169
 
170
+ **Troubleshooting notes:**
171
+ - If transcript shows `Agent failed: spawn opencode ENOENT`, run `acfm agents setup` and restart/resume session.
172
+ - If session exists but panes are not visible, use `acfm agents live` (or `acfm agents attach`) or `tmux attach -t <session-name>`.
173
+ - For MCP-first flows, ensure session start enables worker spawning so tmux panes are created.
174
+ - Per-role models can be set at start (`--model-planner`, `--model-critic`, `--model-coder`, `--model-reviewer`) or persisted via `acfm agents model set`.
175
+
123
176
  ---
124
177
 
125
178
  ## CRITICAL: How to Use Skills - ZERO SKIP POLICY
@@ -93,6 +93,46 @@ The AC Framework includes a persistent memory system that agents must use proact
93
93
 
94
94
  **User communication:** `Memory saved: [brief description]`
95
95
 
96
+ ### SynapseGrid Collaborative MCP Protocol (Optional)
97
+
98
+ If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborative MCP server automatically for detected assistants.
99
+
100
+ **Session-start requirement when collaboration is enabled:**
101
+ 1. Prefer the available SynapseGrid MCP tools for collaborative session control before falling back to direct CLI.
102
+ 2. Use shared session state and transcript as the source of truth for role-by-role collaboration.
103
+ 3. If collaborative MCP is unavailable, use CLI fallback commands and keep behavior equivalent.
104
+
105
+ **How to use SynapseGrid collaboration:**
106
+ ```text
107
+ Preferred: use SynapseGrid MCP tools (ac-framework-collab) for start/status/step/resume/stop.
108
+ Fallback: use AC Framework agents CLI commands directly.
109
+ ```
110
+ ```bash
111
+ # Install/update collaborative MCP server integrations
112
+ acfm agents install-mcps
113
+
114
+ # Start collaborative runtime with visible 4-pane tmux war-room
115
+ acfm agents start --task "design and implement feature X" --attach --model-coder provider/model
116
+
117
+ # If already running in background, attach to panes and inspect logs
118
+ acfm agents live
119
+ acfm agents logs --role all --lines 120
120
+
121
+ # Resume/list/export operations
122
+ acfm agents resume
123
+ acfm agents list
124
+ acfm agents export --format md --out synapse-session.md
125
+
126
+ # Fast diagnostics for OpenCode resolution errors
127
+ acfm agents setup
128
+ ```
129
+
130
+ **Troubleshooting notes:**
131
+ - If transcript shows `Agent failed: spawn opencode ENOENT`, run `acfm agents setup` and restart/resume session.
132
+ - If session exists but panes are not visible, use `acfm agents live` (or `acfm agents attach`) or `tmux attach -t <session-name>`.
133
+ - For MCP-first flows, ensure session start enables worker spawning so tmux panes are created.
134
+ - Per-role models can be set at start (`--model-planner`, `--model-critic`, `--model-coder`, `--model-reviewer`) or persisted via `acfm agents model set`.
135
+
96
136
  ## SynapseGrid Collaborative MCP Protocol (Optional)
97
137
 
98
138
  If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborative MCP server automatically for detected assistants.
@@ -104,22 +144,35 @@ If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborativ
104
144
 
105
145
  **How to use SynapseGrid collaboration:**
106
146
  ```text
107
- Preferred: use SynapseGrid MCP tools (ac-framework-collab) for session start/status/step/stop.
147
+ Preferred: use SynapseGrid MCP tools (ac-framework-collab) for start/status/step/resume/stop.
108
148
  Fallback: use AC Framework agents CLI commands directly.
109
149
  ```
110
150
  ```bash
111
- # Optional install/reinstall of collaborative MCP servers
151
+ # Install/update collaborative MCP server integrations
112
152
  acfm agents install-mcps
113
153
 
114
- # Start collaborative runtime manually
115
- acfm agents start --task "design and implement feature X"
154
+ # Start collaborative runtime with visible 4-pane tmux war-room
155
+ acfm agents start --task "design and implement feature X" --attach --model-coder provider/model
156
+
157
+ # If already running in background, attach to panes and inspect logs
158
+ acfm agents live
159
+ acfm agents logs --role all --lines 120
116
160
 
117
161
  # Resume/list/export operations
118
162
  acfm agents resume
119
163
  acfm agents list
120
164
  acfm agents export --format md --out synapse-session.md
165
+
166
+ # Fast diagnostics for OpenCode resolution errors
167
+ acfm agents setup
121
168
  ```
122
169
 
170
+ **Troubleshooting notes:**
171
+ - If transcript shows `Agent failed: spawn opencode ENOENT`, run `acfm agents setup` and restart/resume session.
172
+ - If session exists but panes are not visible, use `acfm agents live` (or `acfm agents attach`) or `tmux attach -t <session-name>`.
173
+ - For MCP-first flows, ensure session start enables worker spawning so tmux panes are created.
174
+ - Per-role models can be set at start (`--model-planner`, `--model-critic`, `--model-coder`, `--model-reviewer`) or persisted via `acfm agents model set`.
175
+
123
176
  ---
124
177
 
125
178
  ## CRITICAL: How to Use Skills - ZERO SKIP POLICY
@@ -93,6 +93,46 @@ The AC Framework includes a persistent memory system that agents must use proact
93
93
 
94
94
  **User communication:** `Memory saved: [brief description]`
95
95
 
96
+ ### SynapseGrid Collaborative MCP Protocol (Optional)
97
+
98
+ If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborative MCP server automatically for detected assistants.
99
+
100
+ **Session-start requirement when collaboration is enabled:**
101
+ 1. Prefer the available SynapseGrid MCP tools for collaborative session control before falling back to direct CLI.
102
+ 2. Use shared session state and transcript as the source of truth for role-by-role collaboration.
103
+ 3. If collaborative MCP is unavailable, use CLI fallback commands and keep behavior equivalent.
104
+
105
+ **How to use SynapseGrid collaboration:**
106
+ ```text
107
+ Preferred: use SynapseGrid MCP tools (ac-framework-collab) for start/status/step/resume/stop.
108
+ Fallback: use AC Framework agents CLI commands directly.
109
+ ```
110
+ ```bash
111
+ # Install/update collaborative MCP server integrations
112
+ acfm agents install-mcps
113
+
114
+ # Start collaborative runtime with visible 4-pane tmux war-room
115
+ acfm agents start --task "design and implement feature X" --attach --model-coder provider/model
116
+
117
+ # If already running in background, attach to panes and inspect logs
118
+ acfm agents live
119
+ acfm agents logs --role all --lines 120
120
+
121
+ # Resume/list/export operations
122
+ acfm agents resume
123
+ acfm agents list
124
+ acfm agents export --format md --out synapse-session.md
125
+
126
+ # Fast diagnostics for OpenCode resolution errors
127
+ acfm agents setup
128
+ ```
129
+
130
+ **Troubleshooting notes:**
131
+ - If transcript shows `Agent failed: spawn opencode ENOENT`, run `acfm agents setup` and restart/resume session.
132
+ - If session exists but panes are not visible, use `acfm agents live` (or `acfm agents attach`) or `tmux attach -t <session-name>`.
133
+ - For MCP-first flows, ensure session start enables worker spawning so tmux panes are created.
134
+ - Per-role models can be set at start (`--model-planner`, `--model-critic`, `--model-coder`, `--model-reviewer`) or persisted via `acfm agents model set`.
135
+
96
136
  ## SynapseGrid Collaborative MCP Protocol (Optional)
97
137
 
98
138
  If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborative MCP server automatically for detected assistants.
@@ -104,22 +144,35 @@ If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborativ
104
144
 
105
145
  **How to use SynapseGrid collaboration:**
106
146
  ```text
107
- Preferred: use SynapseGrid MCP tools (ac-framework-collab) for session start/status/step/stop.
147
+ Preferred: use SynapseGrid MCP tools (ac-framework-collab) for start/status/step/resume/stop.
108
148
  Fallback: use AC Framework agents CLI commands directly.
109
149
  ```
110
150
  ```bash
111
- # Optional install/reinstall of collaborative MCP servers
151
+ # Install/update collaborative MCP server integrations
112
152
  acfm agents install-mcps
113
153
 
114
- # Start collaborative runtime manually
115
- acfm agents start --task "design and implement feature X"
154
+ # Start collaborative runtime with visible 4-pane tmux war-room
155
+ acfm agents start --task "design and implement feature X" --attach --model-coder provider/model
156
+
157
+ # If already running in background, attach to panes and inspect logs
158
+ acfm agents live
159
+ acfm agents logs --role all --lines 120
116
160
 
117
161
  # Resume/list/export operations
118
162
  acfm agents resume
119
163
  acfm agents list
120
164
  acfm agents export --format md --out synapse-session.md
165
+
166
+ # Fast diagnostics for OpenCode resolution errors
167
+ acfm agents setup
121
168
  ```
122
169
 
170
+ **Troubleshooting notes:**
171
+ - If transcript shows `Agent failed: spawn opencode ENOENT`, run `acfm agents setup` and restart/resume session.
172
+ - If session exists but panes are not visible, use `acfm agents live` (or `acfm agents attach`) or `tmux attach -t <session-name>`.
173
+ - For MCP-first flows, ensure session start enables worker spawning so tmux panes are created.
174
+ - Per-role models can be set at start (`--model-planner`, `--model-critic`, `--model-coder`, `--model-reviewer`) or persisted via `acfm agents model set`.
175
+
123
176
  ---
124
177
 
125
178
  ## CRITICAL: How to Use Skills - ZERO SKIP POLICY