cargo agents sync
Synchronize skills with workspace dependencies.
Usage
cargo agents sync
Behavior
Must be run from within a Rust workspace. Performs the following steps:
-
Find workspace root — runs
cargo metadatato locate the workspace. -
Scan dependencies — reads the full dependency graph from the workspace.
-
Discover applicable skills — loads plugin sources (from user config) and matches skill predicates against workspace dependencies.
-
Install skills — for each configured agent, copies applicable
SKILL.mdfiles into the agent’s expected skill directory (e.g.,.claude/skills/for Claude Code,.agents/skills/for Copilot/Gemini/Codex). -
Clean up stale skills — removes skills that were previously installed by symposium but are no longer applicable (e.g., because a dependency was removed). Tracks installed skills in a per-agent manifest (
.symposium.tomlin the agent’s skill directory). Skills not in the manifest (user-managed) are left untouched. -
Register hooks — ensures hooks and MCP servers are registered for all configured agents. Registers both global hooks (for all projects) and project-specific hooks (for the current project). Unregisters hooks for agents no longer in the config.
Automatic sync
By default (auto-sync = true), cargo agents sync runs automatically during hook invocations. This keeps skills in sync with workspace dependencies without manual intervention. Set auto-sync = false in the user config to disable this and sync manually.
Example
# One-time setup
cargo agents init --add-agent claude
# Sync skills for the current workspace
cargo agents sync