cargo agents init
Sets up the user-wide configuration.
Flow
-
Prompt for agents: ask which agents the user uses (e.g., Antigravity CLI, Claude Code, Copilot). Multiple agents can be selected.
Agent::detect_installedlooks for each agent’s user config directory, resolved through the same helpers hook and MCP registration use (soCLAUDE_CONFIG_DIR,CODEX_HOME,COPILOT_HOME,GOOSE_PATH_ROOTandXDG_CONFIG_HOMEare read throughSymposium::env_dir), andstate.tomlremembers what the previous run detected. The prompt retains explicit choices regardless of detection, and preselects detected agents that are configured or newly detected. An initially unchecked box selected by the user becomes explicit; accepting an automatic default does not. Existing configs migrate as explicit when the state has noexplicit-agentsfield. A first run reports them asDetected: ...(orNo agents detectedwith an empty list); later runs report what changed (Detected since last setup: ...,No longer detected: ...). Deselecting every agent of an existing config uninstalls; on a first run the prompt insists on at least one. Without a terminal, a first run takes every detected agent and fails asking for--add-agentwhen none is found, while later runs keep the configured agents. The detected set is recorded whenever the user confirms the prompt and on a first run without a terminal, while flag-driven runs update explicit choices and remember removals of currently detected agents without consuming unrelated new detections. -
Write user config — create
~/.symposium/config.tomlwith the[[agent]]entries populated:[[agent]] name = "claude" [[agent]] name = "antigravity" -
Register hooks: register global hooks for each selected agent. MCP servers are left to
sync, sinceinithas no workspace to tell whether a plugin applies. Also unregisters hooks for any agents that were removed (only symposium’s handler: a matcher group goes only once that leaves it empty), and removes the MCP servers symposium registered for them in their user-level file (see the MCP ledger). -
Reap removed agents’ skills - when an agent was removed and
initruns inside a Rust workspace, runsyncthere, whose stale-skill cleanup takes out that agent’s marked copies. Symposium keeps no list of the workspaces it installed into, so copies elsewhere stay untilsyncruns in each one;syncwith no agents configured still cleans up for this reason, but a config that cannot be read leaves the agents unknown rather than none, sosyncrefuses to run on it.
If --add-agent or --remove-agent flags are provided, the interactive prompt is skipped and the specified changes are applied to the existing agent list.
An [[agent]] name this version does not know is kept as is until --remove-agent removes it, and hook registration skips it with a warning, as sync does. Only --add-agent names and --remove-agent names that are not configured must be known agents.