π 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()
}