MCPcopy Index your code
hub / github.com/codeaashu/claude-code / formatTaskAsPrompt

Function formatTaskAsPrompt

src/utils/swarm/inProcessRunner.ts:610–618  ·  view source on GitHub ↗

* Format a task as a prompt for the teammate to work on.

(task: Task)

Source from the content-addressed store, hash-verified

608 * Format a task as a prompt for the teammate to work on.
609 */
610function formatTaskAsPrompt(task: Task): string {
611 let prompt = `Complete all open tasks. Start with task #${task.id}: \n\n ${task.subject}`
612
613 if (task.description) {
614 prompt += `\n\n${task.description}`
615 }
616
617 return prompt
618}
619
620/**
621 * Try to claim an available task from the team's task list.

Callers 1

tryClaimNextTaskFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected