Skip to content

Add vibe config remove-tool - #25

Merged
iamnotstatic merged 1 commit into
mainfrom
iamnotstatic/remove-tool
Sep 6, 2026
Merged

Add vibe config remove-tool#25
iamnotstatic merged 1 commit into
mainfrom
iamnotstatic/remove-tool

Conversation

@iamnotstatic

Copy link
Copy Markdown
Owner

Adds the missing half of add-tool. vibe config remove-tool <name> strips the tool's hook functions (all three case variants) from the shell rc file and leaves everything else alone.

Two small fixes that fell out of making the round trip work:

  • add-tool used to refuse default tools outright, which would have made removing claude a one-way door. It now checks the rc file, so a removed default can be re-added, and you still get the "already added by vibe init" message when it's actually there.
  • The already-tracked check now matches on a trailing space, so claude no longer collides with a hypothetical claudex hook.

Same known limitation as add-tool: bash/zsh only (#1).

Closes #23

Tests cover the round trip, case variants, multi-tool isolation, the prefix collision, and that a user's own line mentioning the wrap command is never deleted.

Adds the missing half of add-tool: vibe config remove-tool <name>
strips the tool's hook functions (all three case variants) from the
shell rc file, leaving everything else untouched.

Also makes add-tool's default-tool guard check the rc file instead of
refusing outright, so a removed default tool can be re-added, and
tightens the already-tracked check with a trailing space so claude
doesn't match a claudex hook.

Closes #23
@iamnotstatic
iamnotstatic merged commit 2a68ebf into main Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add vibe config remove-tool command

1 participant