Skip to content
Development
Command

/agy-uninstall

Print the plugin's install path and the command to remove agy-delegate's launcher wrappers (agy-bridge + gemini shim)

From plugin
agy-delegate
165 skills2 agents5 commands1 hook
Install
> /plugin marketplace add davdittrich/delegate-agy
> /plugin install agy-delegate@agy-delegate

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/agy-uninstall

Context preview

What this command does when you run it.

Print the plugin's install path and the command to remove agy-delegate's launcher wrappers (agy-bridge + gemini shim)

Command definition

agy-uninstall.md
command: agy-uninstall
description: Print the plugin's install path and the command to remove agy-delegate's launcher wrappers (agy-bridge + gemini shim)
version: 1.6.3
category: ai-delegation
tags: [agy, uninstall, cleanup]

agy-delegate ships a self-contained uninstaller that YOU run in your own terminal (`scripts/uninstall.sh`). This command does NOT run it for you — it prints two commands to copy-paste: one to find the plugin's install path so you can read it yourself, and one to run the uninstaller against that path.

The uninstaller reverses `scripts/install.sh`: it removes **only** our signature-marked wrappers `~/.local/bin/agy-bridge` and `~/.local/bin/gemini` (restoring any original binary that was shadowed and backed up at install time), and removes the availability hint. It is idempotent and refuses to run as root.

If you previously registered `tokensave` as an agy MCP server via the now-retired opt-in, remove that entry by hand from `~/.gemini/antigravity-cli/mcp_config.json` — this uninstaller no longer manages it.

Uninstall (copy-paste this)

Find the plugin's install path, then run its uninstaller. Both steps print a path you can read before anything executes:

AGY_PATH="$(grep -A6 '"agy-delegate@' ~/.claude/plugins/installed_plugins.json \
  | sed -n 's/.*"installPath"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -1)"
echo "$AGY_PATH"

That prints something like `/home/you/.claude/plugins/cache/agy-delegate/agy-delegate/1.6.3`. Check it looks right, then run:

bash "$AGY_PATH/scripts/uninstall.sh"

If the registry file is missing (older Claude Code, or a non-standard config dir), fall back to resolving it through the CLI — this form validates the resolved string before executing it, because it comes from command output rather than your own eyes:

RESOLVED="$(claude plugin list --json 2>/dev/null \
  | python3 -c 'import sys,json
try:
    d = json.load(sys.stdin)
except Exception:
    d = []
print(next((x.get("installPath","") for x in d if x.get("id","").startswith("agy-delegate@")), ""))')/scripts/uninstall.sh"; \
case "$RESOLVED" in \
  */agy-delegate/*/scripts/uninstall.sh) [[ -f "$RESOLVED" ]] \
    && echo "Resolved: $RESOLVED" \
    || echo "ERROR: resolved uninstaller '$RESOLVED' is not a regular file — is agy-delegate installed?" >&2 ;; \
  *) echo "ERROR: refusing to run '$RESOLVED' — does not match */agy-delegate/*/scripts/uninstall.sh" >&2 ;; \
esac

Check the printed `Resolved: ...` path looks right, then run:

bash "$RESOLVED"
Read more
Ships withagy-delegate

Claude Code plugin that bridges to agy (Google Antigravity CLI) — adds Gemini, GPT-OSS, and grounded web search to Claude sessions

Get the whole plugin
Stats
16
Stars
2
Forks
Active
Maintenance
Shell
Language
23d ago
Last commit
3mo ago
Created

Repo: davdittrich/delegate-agy

Other commands on agy-delegate.