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

Function shouldInjectGenericPlanReminder

apps/opencode-plugin/workflow.ts:128–137  ·  view source on GitHub ↗
(
  agentName: string | undefined,
  isSubagent: boolean,
  options: NormalizedWorkflowOptions,
)

Source from the content-addressed store, hash-verified

126}
127
128export function shouldInjectGenericPlanReminder(
129 agentName: string | undefined,
130 isSubagent: boolean,
131 options: NormalizedWorkflowOptions,
132): boolean {
133 if (options.workflow !== "all-agents") return false;
134 if (!agentName || isSubagent) return false;
135 if (agentName === "build") return false;
136 return !isPlanningAgent(agentName, options);
137}
138
139export function shouldRejectSubmitPlanForAgent(
140 agentName: string | undefined,

Callers 2

workflow.test.tsFile · 0.90
PlannotatorPluginFunction · 0.90

Calls 1

isPlanningAgentFunction · 0.85

Tested by

no test coverage detected