MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / formatTaskAsPrompt

Function formatTaskAsPrompt

source code/hooks/useTaskListWatcher.ts:215–223  ·  view source on GitHub ↗

* Format a task as a prompt for Claude to work on.

(task: Task)

Source from the content-addressed store, hash-verified

213 * Format a task as a prompt for Claude to work on.
214 */
215function formatTaskAsPrompt(task: Task): string {
216 let prompt = `Complete all open tasks. Start with task #${task.id}: \n\n ${task.subject}`
217
218 if (task.description) {
219 prompt += `\n\n${task.description}`
220 }
221
222 return prompt
223}

Callers 1

useTaskListWatcherFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected