feat: repo_delete tool #11
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Allow agents and claude.ai sessions to delete repositories without manual web UI.
Gitea API
DELETE /api/v1/repos/{owner}/{repo}Tool spec
Required token permission
delete_reposcope on the Gitea API token.Risk classification
HIGH — irreversible. Must require explicit ntfy approval in agent workflows.
Implementation notes
internal/tools/confirm != name(before any API call)Motivation
2026-05-14: wanted to delete zombie repo
ingestion-svcfrom claude.ai. Had to fall back to tombstone README instead of clean deletion. Blocked by missing tool.Shipped in v0.2.4. Closing during cleanup pass.