fix: update agent mode from 'subagent' to 'all' for consistency in agent definitions

This commit is contained in:
Javier Gomez 2025-09-11 09:41:49 +02:00
parent b5921cbd37
commit 1a68fe55e0
2 changed files with 4 additions and 4 deletions

View File

@ -207,7 +207,7 @@ BMAD integrates with OpenCode via a project-level `opencode.jsonc`/`opencode.jso
- `instructions`: `.bmad-core/core-config.yaml` plus any selected expansion pack `config.yaml` files. - `instructions`: `.bmad-core/core-config.yaml` plus any selected expansion pack `config.yaml` files.
- `agent`: BMAD agents from core and selected packs. - `agent`: BMAD agents from core and selected packs.
- `prompt`: `{file:./.bmad-core/agents/<id>.md}` (or pack path) - `prompt`: `{file:./.bmad-core/agents/<id>.md}` (or pack path)
- `mode`: `primary` for orchestrators, otherwise `subagent` - `mode`: `primary` for orchestrators, otherwise `all`
- `tools`: `{ write: true, edit: true, bash: true }` - `tools`: `{ write: true, edit: true, bash: true }`
- `description`: extracted from the agents `whenToUse` - `description`: extracted from the agents `whenToUse`
- `command`: BMAD tasks from core and selected packs. - `command`: BMAD tasks from core and selected packs.

View File

@ -380,7 +380,7 @@ class IdeSetup extends BaseIdeSetup {
const whenToUse = await extractWhenToUseFromFile(p); const whenToUse = await extractWhenToUseFromFile(p);
const agentDef = { const agentDef = {
prompt: fileRef, prompt: fileRef,
mode: isOrchestratorAgent(agentId) ? 'primary' : 'subagent', mode: isOrchestratorAgent(agentId) ? 'primary' : 'all',
tools: { write: true, edit: true, bash: true }, tools: { write: true, edit: true, bash: true },
...(whenToUse ? { description: whenToUse } : {}), ...(whenToUse ? { description: whenToUse } : {}),
}; };
@ -422,7 +422,7 @@ class IdeSetup extends BaseIdeSetup {
const whenToUse = await extractWhenToUseFromFile(p); const whenToUse = await extractWhenToUseFromFile(p);
const agentDef = { const agentDef = {
prompt: fileRef, prompt: fileRef,
mode: isOrchestratorAgent(agentId) ? 'primary' : 'subagent', mode: isOrchestratorAgent(agentId) ? 'primary' : 'all',
tools: { write: true, edit: true, bash: true }, tools: { write: true, edit: true, bash: true },
...(whenToUse ? { description: whenToUse } : {}), ...(whenToUse ? { description: whenToUse } : {}),
}; };
@ -550,7 +550,7 @@ class IdeSetup extends BaseIdeSetup {
// Brief context note for modes and tools // Brief context note for modes and tools
section += `Note\n`; section += `Note\n`;
section += `- Orchestrators run as mode: primary; other agents as subagent.\n`; section += `- Orchestrators run as mode: primary; other agents as all.\n`;
section += `- All agents have tools enabled: write, edit, bash.\n\n`; section += `- All agents have tools enabled: write, edit, bash.\n\n`;
section += `## Agents\n\n`; section += `## Agents\n\n`;