MCPcopy Create free account
hub / github.com/backnotprop/plannotator / isPrimaryCapableAgent

Function isPrimaryCapableAgent

apps/opencode-plugin/workflow.ts:243–247  ·  view source on GitHub ↗
(agent: AgentConfig, allowSubagents: boolean)

Source from the content-addressed store, hash-verified

241}
242
243function isPrimaryCapableAgent(agent: AgentConfig, allowSubagents: boolean): boolean {
244 const mode = typeof agent.mode === "string" ? agent.mode : "all";
245 if (mode === "subagent") return allowSubagents;
246 return mode === "primary" || mode === "all" || !agent.mode;
247}

Callers 1

applyWorkflowConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected