Skip to content
Development
Command

/agy-update

Check for a newer git-clone version of this plugin and pull it after confirmation

From plugin
agy
611 skills1 agent11 commands
> /plugin marketplace add Vit129/agy-plugin-cc
> /plugin install agy@agy-plugin-cc

Command definition

agy-update.md
description: Check for a newer git-clone version of this plugin and pull it after confirmation
allowed-tools: Bash, AskUserQuestion

This plugin is installed via `git clone`, not npm. Check `version.json` on the `main` branch of `Vit129/agy-plugin-cc` on GitHub against the `CURRENT_VERSION` constant in `plugins/agy/scripts/lib/git-update-check.mjs`, and pull only with explicit confirmation.

Steps:

1. Find the git checkout root and confirm it is clean:

cd "${CLAUDE_PLUGIN_ROOT}/../.." 2>/dev/null || true
git rev-parse --show-toplevel
git status --short --untracked-files=normal

If the working tree is not clean (the status command prints anything), stop and tell the user there are uncommitted changes — they must commit/stash and re-run this command themselves. Do not offer to pull.

2. Fetch the remote version file:

curl -fsSL --max-time 3 https://raw.githubusercontent.com/Vit129/agy-plugin-cc/main/version.json

If this fails (offline/blocked/timeout), tell the user the version check failed and why, and stop.

3. Read `CURRENT_VERSION` from `plugins/agy/scripts/lib/git-update-check.mjs` and compare to the fetched `version` field.

  • If the remote version is not greater than `CURRENT_VERSION`, tell the user they're already up to date and stop.
  • If the remote version is greater, use `AskUserQuestion` to ask the user whether to pull now, showing the remote `summary` and `updated` date. Options: "Pull now" and "Not now".

4. If the user chooses "Pull now", run `git pull origin main` in the checkout root and report the result verbatim (success, or the conflict/error output so the user can resolve it themselves).

5. If the user chooses "Not now" (or the question is answered in a non-interactive context with no reply), do not pull. Instead remember the dismissal so the session-start hook stops repeating this notice until a newer version ships:

mkdir -p "$HOME/.config/agy-plugin-cc"
printf '%s\n' "<remote version number>" > "$HOME/.config/agy-plugin-cc/update-dismissed"
Read more
@vit129
Ships withagy

Unofficial community project. Not affiliated with, sponsored or endorsed by Google. "Antigravity" and "Google" are trademarks of Google LLC.

64 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
6
Star history of Vit129/agy-plugin-cc on GitHub, a chart by star-history.com

Other commands on agy.

agy

agy

Command

Delegate a prompt to the Antigravity (agy) CLI agent

@vit129@vit129Install Command
rescue

rescue

Command

Delegate investigation, an explicit fix request, or follow-up rescue work to the agy (Antigravity) agent

@vit129@vit129Install Command
setup

setup

Command

Check whether the Antigravity (agy) CLI is installed and ready

@vit129@vit129Install Command
adversarial-review

adversarial-review

Command

Run an agy adversarial review that challenges the implementation approach and design choices

@vit129@vit129Install Command
cancel

cancel

Command

Cancel an active background agy job in this repository

@vit129@vit129Install Command
doctor

doctor

Command

Verify agy plugin wiring, local agy CLI availability, auth, and models

@vit129@vit129Install Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command