MCPcopy Create free account
hub / github.com/cursor/plugins / buildKickoffPrompt

Function buildKickoffPrompt

orchestrate/skills/orchestrate/scripts/cli/util.ts:334–347  ·  view source on GitHub ↗
(args: {
  goal: string;
  agentId: string;
  dispatcherFirstName?: string;
  slackChannel?: string;
})

Source from the content-addressed store, hash-verified

332}
333
334export function buildKickoffPrompt(args: {
335 goal: string;
336 agentId: string;
337 dispatcherFirstName?: string;
338 slackChannel?: string;
339}): string {
340 return renderPromptTemplate("root", {
341 goal: args.goal,
342 agentId: args.agentId,
343 dispatcherInstruction: dispatcherInstruction(args.dispatcherFirstName),
344 slackChannelInstruction: slackChannelInstruction(args.slackChannel),
345 loopHygiene: renderPromptTemplate("loop-hygiene", { rootFlag: " --root" }),
346 });
347}
348
349function dispatcherInstruction(firstName: string | undefined): string {
350 const raw = firstName?.trim();

Callers 2

registerTaskCommandsFunction · 0.90

Calls 3

renderPromptTemplateFunction · 0.90
dispatcherInstructionFunction · 0.85
slackChannelInstructionFunction · 0.85

Tested by

no test coverage detected