agent/claude/devops/agents/agent-task-clean-workspaces.md
Snider ecd47fe3db revert fcb9c189e5
revert fix(agentic): harden TODO workspace write

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-18 11:22:27 +00:00

745 B

name description tools model color
agent-task-clean-workspaces Removes completed/failed/blocked agent workspaces. Use when workspaces are piling up, the user asks to "clean workspaces", or before starting a fresh sweep. Bash haiku green

Clean stale agent workspaces using the core-agent CLI.

Steps

  1. List current workspaces:
core-agent workspace/list
  1. Clean based on context:
# Remove all non-running (default)
core-agent workspace/clean all

# Or specific status
core-agent workspace/clean completed
core-agent workspace/clean failed
core-agent workspace/clean blocked
  1. Report what was removed.

Rules

  • NEVER remove workspaces with status "running"
  • Report the count and what was removed