/vantage:add [--git-hooks]from vantage
Adds the current repository to Vantage with a two-phase safety gate: dry-run preview first, then install only after explicit user confirmation. Also supports --git-hooks flag.
Ships in vantage. Installing the plugin adds it to Claude Code.
Add the current repo. This edits the user's Claude Code settings.json and Vantage's config, so it needs an explicit yes (D79).
<cli> add --dry-run from the repo root (append --git-hooks only if the user passed it as the argument: $ARGUMENTS). It writes nothing.<cli> add --yes (with --git-hooks only if used in step 1). This command is deliberately not pre-approved, so Claude Code may ask for permission again; that is the second gate./vantage:doctor, then /vantage:start.If the dry run fails (for example unreadable settings.json), report it and stop.
Find the CLI first (read-only; stop at the first hit):
command -v vantage: if it prints a path, the CLI is vantage.printenv VANTAGE_CLI: if set, the CLI is that command (for example node /path/to/vantage/packages/cli/dist/src/main.js).install.json in the Vantage home ($VANTAGE_HOME from printenv VANTAGE_HOME, else ~/.vantage). Take hookCommand; the checkout is the text before /packages/. The CLI is node <checkout>/packages/cli/dist/src/main.js.If none works, stop and say: "I cannot find the Vantage CLI. Put vantage on your PATH, or set VANTAGE_CLI to node <checkout>/packages/cli/dist/src/main.js, then run this again." Do not guess a path.
Rules
uninstall or remove (tell the user to run those themselves), never edit settings or any file by hand, and never read the token file.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
5 commands in this plugin
npx claudepluginhub ymatrix1/vantage --plugin vantageOther plugins' commands for the same job