πŸ“„ File detail

tools/TeamDeleteTool/prompt.ts

🧩 .tsπŸ“ 17 linesπŸ’Ύ 684 bytesπŸ“ text
← Back to All Files

🎯 Use case

This module implements the β€œTeamDeleteTool” tool (Team Delete) β€” something the model can call at runtime alongside other agent tools. On the API surface it exposes getPrompt β€” mainly functions, hooks, or classes.

Generated from folder role, exports, dependency roots, and inline comments β€” not hand-reviewed for every path.

🧠 Inline summary

export function getPrompt(): string { return ` # TeamDelete Remove team and task directories when the swarm work is complete.

πŸ“€ Exports (heuristic)

  • getPrompt

πŸ–₯️ Source preview

export function getPrompt(): string {
  return `
# TeamDelete

Remove team and task directories when the swarm work is complete.

This operation:
- Removes the team directory (\`~/.claude/teams/{team-name}/\`)
- Removes the task directory (\`~/.claude/tasks/{team-name}/\`)
- Clears team context from the current session

**IMPORTANT**: TeamDelete will fail if the team still has active members. Gracefully terminate teammates first, then call TeamDelete after all teammates have shut down.

Use this when all teammates have finished their work and you want to clean up the team resources. The team name is automatically determined from the current session's team context.
`.trim()
}