fix: update agent mode from 'subagent' to 'all' for consistency in agent definitions
This commit is contained in:
parent
b5921cbd37
commit
1a68fe55e0
|
|
@ -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 agent’s `whenToUse`
|
- `description`: extracted from the agent’s `whenToUse`
|
||||||
- `command`: BMAD tasks from core and selected packs.
|
- `command`: BMAD tasks from core and selected packs.
|
||||||
|
|
|
||||||
|
|
@ -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`;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue