agent/claude/devops/agents/agent-task-clean-workspaces.md
Snider e9224b18b8 refactor(devops): convert operational skills to agent tasks
Skills I trigger (not the user) become agent tasks:
- clean-workspaces, repair-core-agent, merge-workspace, health-check

Keeps as skills (user-invoked CLI wrappers):
- forge commands (issue/pr/repo), workspace-list/clean,
  build-prompt, update-deps

Agent tasks use haiku/sonnet for fast autonomous execution.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-22 15:45:32 +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