gage init
The gage init command sets up Gage. It creates the store when there is none
and installs the Gage plugin, an MCP server and skills, in each coding agent
it can be set up in: Claude Code (claude), Codex (codex), and Pi (pi).
Run it again after upgrading Gage so each agent gets the plugin of the new
version.
Without --driver, Gage is set up in every installed agent it has a driver for.
With --driver, only the drivers named are set up. No installed agent is an
error.
For Codex the plugin’s MCP server is registered with its tools approved. Codex otherwise refuses a tool that changes anything when it runs without a person to ask.
For Pi the plugin is installed in two parts. The skills are a Pi package that
gage init writes under ~/.gage and installs with pi install. Pi loads the
package from that directory. The MCP server is registered with pi mcp add,
with its tools declared to the model as Pi’s own tools are. Pi keeps every skill
under one set of names, so the Gage skills are named gage-blame,
gage-publish, and gage-resolve in Pi, and a skill is invoked as
/skill:gage-blame. See Gage in Pi.
Default driver
The default driver is the driver whose sessions a command reads when it names
no session source and no config sets a default session source, and where a
model with no driver named goes. It is the drivers.default setting; see
gage config.
gage init leaves a default the config file already names as it is, so running
it again asks nothing. When the file names none:
- One driver is set up: it becomes the default.
- Two or more are set up:
gage initasks which is the default. - Two or more are set up and
--yesis given:--defaultis required.
--default names the default driver, and replaces one the config file already
names. The driver’s agent must be installed. It need not be one of the drivers
this run sets up.
Remove
gage init --remove removes the plugin from every installed agent, or from the
agents --driver names. The store and the config stay.
To remove the rest of a Gage installation, see Uninstall Gage.