Worktree cleanup

From TentacleOpera/switchboard · View interactive version

Worktree cleanup is an AI agent skill from the GitHub repository TentacleOpera/switchboard. Mark a worktree merged and clean it up (kind-aware) via LocalApiServer — requires the Switchboard extension running (no direct-DB fallback).

How to use this skill

Skill file

Worktree Cleanup

When to Use

Prerequisites

VS Code setting switchboard.apiToken must be configured with your API token.

Usage

switchboard api POST /worktree/cleanup '{ "worktreeId": "<id-or-branch>", "workspaceRoot": "/abs/path/to/workspace" }'

Parameters

Response

{
  "success": true
}

Error Handling

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.