MCPcopy Index your code
hub / github.com/coder/mux / getTaskCompletionInstruction

Function getTaskCompletionInstruction

src/node/services/taskService.ts:393–401  ·  view source on GitHub ↗
(params: {
  completionToolName: "agent_report" | "propose_plan";
})

Source from the content-addressed store, hash-verified

391}
392
393function getTaskCompletionInstruction(params: {
394 completionToolName: "agent_report" | "propose_plan";
395}): string {
396 if (params.completionToolName === "propose_plan") {
397 return "Call propose_plan exactly once now. Base it only on the planning work already completed in this workspace.";
398 }
399
400 return "Call agent_report exactly once now with your final report. Base it only on the work already completed in this workspace.";
401}
402
403type AgentReportFinalizationResult =
404 | { finalized: true }

Calls

no outgoing calls

Tested by

no test coverage detected