symposium sync
Scans workspace dependencies, installs applicable skills into agent directories, and cleans up stale skills.
Flow
-
Consent prompt (interactive
symposium synconly): ask about each dependency plugin awaiting consent and record the answers in[plugins]before resolution runs, so an approval installs in this same sync. Gated onOutput::is_interactive(): the hook-triggered auto-sync callssync::syncdirectly and never reaches this step. See dependency discovery. -
Find the workspace: ask each package manager for the project it finds from the starting directory (for a hook, the payload’s
cwd; forsymposium sync, the current directory): its root, members and inputs, throughproject_info. Outside any project there is nothing to sync; package managers that disagree about the root are an error. For cargo this is the Cargo workspace, fromcargo metadata. -
Load registries: read the user config’s
[[registry]]entries, ask each one’s package manager for the plugin-bearing entries it offers, and load their plugin manifests. For git registries, fetch/update as needed. -
Scan dependencies: every package manager’s
list_deps, unioned. -
Match skills to dependencies: for each plugin, parse
SKILL.mdYAML frontmatter, reject malformed YAML or a non-string value in a field Symposium reads, warn about skipped invalid skills, then evaluate skill group dependency predicates and individual skilldepends-onfrontmatter against the workspace dependencies. -
Install skills per agent: for each configured agent:
- Copy applicable
SKILL.mdfiles into the agent’s expected skill directory, except the skills the agent received inside a compiled plugin (see below). - Drop a
.symposiummarker file into each installed skill directory so future syncs (and other tools) can recognize it as symposium-managed. - Build each install in a fresh, uniquely named
.symposium-tmp-*directory beside its slot and rename it into place only once the copy is complete, so a failed copy leaves the slot as it was instead of an unmarked partial directory that later syncs would take for the user’s. A unique name never collides with anything already there. The marker goes into that directory before the copy, so what a killed sync leaves behind is reaped by the next one. - A skill of a
source.gitgroup is copied from the git cache without the cache’s own bookkeeping file, so a freshness check that finds nothing new changes no installed copy. - A skill whose refresh fails still counts as wanted, so step 7 keeps its previous copy.
- Write a
.gitignorecontaining a single*into each installed skill directory, not itsskills/parent, so symposium-managed files stay out of version control.
An
[[agent]]name this version does not know is skipped with a warning that namessymposium init --remove-agent; every other agent syncs as usual. - Copy applicable
-
Workspace
.agents/skills/(agents-syncing), not a separate step: whenagents-syncingis enabled, each workspace plugin carries aworkspace-member()-gated default group for.agents/skills/, so maintainer skills resolve and install through the same pipeline as everything else. Two marker guards make.agents/skills/safe as both a source and (for vendor-neutral agents) a destination: discovery skips.symposium-marked directories (installed copies are never sources), and a skill whose source already sits where an agent reads it (its install slot, or.agents/skills/for OpenCode) is skipped for that agent (no self-copy, no suffixed duplicate). -
Reap stale skills: across every known agent’s skills parent directory, remove any subdirectory that contains the
.symposiummarker but wasn’t installed this sync. Directories without the marker (user-managed) are left untouched, and so is any symlink, whatever it points to. Paths are compared resolved, so a skills directory that is a link to another agent’s (.claude/skills -> ../.agents/skills) is scanned once and what this sync installed there is kept.While a registry cannot be fully read, this step and the plugin removals below are skipped, and a warning names the registry: what it could not read offered nothing this time, so everything installed from it would look stale. A registry counts as not fully read when it cannot be listed or when one of its entries fails to load.
-
Register hooks: ensure symposium’s global hook handler and MCP servers are registered for all configured agents. Unregister hooks for agents no longer in the config (only symposium’s handler: a matcher group goes only once that leaves it empty), and remove the MCP entries symposium recorded for them in the MCP ledger, limited to the agent’s user-level file and files inside this workspace (another workspace’s project file waits for a sync there). For a configured agent, the entries recorded in this workspace’s project-level MCP file that this sync no longer writes there come out as well, unless a registry cannot be read; entries in a user-level file stay, since another workspace may still offer them. The exception is a plugin
symposium use --removejust disabled orsymposium plugin try --removejust discarded: the MCP names its manifest declares (for a trial, also the names recorded when it was tried, so they come off once its directory is gone), minus those an active plugin still declares, come off the user-level file and this workspace’s files, unless a registry cannot be read. Only symposium’s own handler is registered (e.g.,symposium hook claude pre-tool-use); individual plugin hooks are never written into agent configs. See Hooks for the dispatch model.
Concurrency
Every agent session runs auto-sync on SessionStart, so two sessions opened together run two syncs at once. Steps 5 to 8 (skill installs, the reap, and agent config writes) run under an exclusive lock on <cache>/sync.lock, which a second sync waits for; it then finds everything up to date. Without it, one sync’s reap would remove the skills another had just installed. The lock is per user rather than per workspace because at the global hook scope those steps also write user-level agent config files shared by every workspace. Resolution (steps 1 to 4) runs before the lock, since it may fetch git skill sources and a hook waiting behind that could time out. Of the plugins enabled for every workspace and the plugins for this project, selection is resolution and runs before the lock, while compiling, delivering and unregistering run under it.
Plugins enabled for every workspace
Between matching skills (step 4) and installing them (step 5), the plugins a use --global entry names are compiled for the user, whatever hook-scope says.
- Select:
compile::installs_globallytakes the plugins that are not workspace members and that a[plugins] useentry without a workspace names, resolved the wayuseresolves a name: a registry plugin by its exact name, over a crate of the same name. Their skills are collected again with every predicate treated as satisfied, so the workspace that syncs, and the environment it syncs in, never decide which of their skills install. A skill two of them reach goes to the first. - Compile: each becomes
~/.symposium/installed/<plugin>/:plugin.jsonand.claude-plugin/plugin.json($schema,name,version), the.symposiummarker and each skill’s directory, symlinks followed, underskills/<skill>/. The name is normalized to lowercase[a-z0-9-], at most 64 characters, with a hash suffix when two plugins normalize alike. The version is the first of these that is a semantic version: theversionthe manifest declares, then the version in the plugin’s package id, which a package manager resolved (a crate’s version); a registry or workspace plugin has no such id, so one that declares no version gets0.0.0. Only a semantic version is used because the version is plugin-supplied and Codex’s copy is a directory named after it. A directory is rewritten in place only when its content differs, and one written less thansync-debounce-secsago is left alone unless its set of skills changed; one without the marker is never written, and marked directories not compiled this run are removed; while a registry cannot be read they stay and are delivered again. - Deliver: before any per-skill copy, each configured agent’s
Agent::deliver_user_pluginsreconciles its user-level installation with the compiled set. It returns the plugins it delivered, and the agent gets no per-skill copies of their skills, so the stale-skill cleanup removes copies an earlier sync left. A plugin it could not take, such as one whose slot holds a directory symposium does not own, keeps its skills as per-skill copies, and an agent that takes no plugins keeps all of them. Delivery skips a plugin written less thansync-debounce-secsago unless its set of skills changed. Whether a per-skill copy needs a hash suffix is then decided per destination directory, from the skills every agent writing there copies, so agents that share.agents/skills/agree on each name. - Unregister: every agent no longer configured is called with an empty set, by
syncand byinit, so it loses the plugins symposium installed for it.
sync needs a workspace and these four steps do not, so symposium use --global and symposium plugin try, each with or without --remove, run them on their own outside one, through sync::sync_user_plugins. It resolves against what the package managers report there (no dependencies), the use entries that apply in the starting directory, which outside a workspace are the global ones, and the custom predicates the configured registries define, resolved as sync resolves them (resolve_custom_predicate_entries). It attaches no on-disk predicate cache: that cache is kept per workspace, and this sync runs only from a command, never on every hook event, so each custom predicate simply runs once. It then compiles, delivers and unregisters under the same lock and the same hold-back rule (cleanup_held_back, and a revoked package’s staged plugin still comes off first). No hooks are registered and no per-skill copies are made. With hook-scope = "global" it registers the MCP servers of those plugins that apply there, in each configured agent’s user-level file, through the functions sync uses (applicable_mcp_servers, register_mcp_servers), and records them in the MCP ledger. With "project" there is no project file to write outside a workspace, so it registers none and says so in one line. The MCP servers of a revoked package come off every file in the ledger, as in sync, whatever the hold-back says (unregister_withdrawn_mcp_servers). After --remove, the servers of the plugin it disabled or discarded come off the user-level files as they do in a workspace (step 8). A configured agent that took no plugin, which is every agent without a user-level plugin location (Kiro, OpenCode), is named in one line saying that the next sync in a workspace installs the skills there.
Plugins for this project
Every other applicable plugin (registry plugins active by their own gate, workspace members, dependencies, workspace-scoped use entries) is compiled for the project in the same pass, by the same code, when Claude Code is configured.
- Select:
compile::project_pluginsgroups the applicable skills by plugin, leaving out every skill a plugin of the user set already carries. - Compile:
compile::compile_projectwrites that set into the staging root<project>/.symposium/plugins/, with the same layout, names and reaping as the user set. It first makes sure<project>/.symposium/.gitignoreexists (containing*, written only when absent); when that fails, nothing is compiled for the project and every agent gets per-skill copies. - Deliver: next to the user-level delivery, each configured agent’s
Agent::deliver_project_pluginsreconciles its project installation with that set. Claude Code copies each directory into<project>/.claude/skills/<plugin>/, adds a.gitignorecontaining*inside, and removes the marked plugin directories there that are not in the set. It reports the plugins it delivered, so the per-skill loop skips their skills for Claude Code and the stale-skill cleanup removes the per-skill copies an earlier sync left; a plugin it could not deliver keeps its skills as per-skill copies. Every other agent reports no delivery and keeps its per-skill copies. - Unregister: every agent no longer configured is called with an empty set, so a removed agent loses its project plugins on the project’s next sync.
The workspace root is the only place they go. Claude Code does not look for plugins in parent directories, so a session started in a member crate or another subdirectory gets none of them; see Claude Code.
Marker file
Each skill directory symposium installs contains an empty .symposium file. Cleanup walks every agent’s skills parent directory (.claude/skills/, .agents/skills/, .kiro/skills/, .opencode/skills/) and reaps any subdirectory whose marker is present but which wasn’t installed this sync. This lets symposium reclaim stale skills (including those left behind by agents removed from the config) without touching user-managed skills, which are identified by the absence of the marker. Symposium never creates a symlink, so a link found in a skills directory is user content and is never followed or removed.
Only a .symposium file is a marker. The project staging root makes <project>/.symposium/ a directory, which must not mark the project itself as symposium’s.
Gitignore
Each skill directory symposium installs receives a .gitignore containing just *; parent directories such as .claude/skills/ get none. A project plugin directory in .claude/skills/ gets the same file, and one .gitignore at <project>/.symposium/ covers the whole staging root. The wildcard also hides the marker file and the gitignore itself, so git status stays clean.
Auto-sync
When auto-sync = true is set in the user config, the hook handler runs sync automatically during agent sessions. This keeps skills in sync as dependencies change.
On most hook events, auto-sync is gated on per-workspace state: each package manager names the files its answers depend on (ProjectInfo::inputs; for cargo, Cargo.lock and battery-pack.toml, plus the Cargo.toml of every directory from the starting directory up to the root, so a manifest appearing nearer the start re-roots the workspace instead of being hidden behind the cached root), a sync records their mtimes and the workspace found, keyed on the directory the package managers started from, and a later event syncs only once one of those files has changed, appeared, or disappeared. Checking that reads only mtimes, so an unchanged workspace starts no package manager and runs no cargo metadata; the recorded workspace is reused instead. Nothing is recorded outside a project, so the next event asks again. A sync is recorded even when a package manager failed: its cleanup was skipped, skills and MCP entries alike, and it is asked again at the next SessionStart or input change. SessionStart is the exception: it runs once per session, ignores that gate, and passes UpdateLevel::Check down through skill resolution so source.git skill groups are re-fetched when their upstream moved. This is what makes upstream skill updates land even when the workspace’s own dependencies haven’t changed. sync takes the UpdateLevel as a parameter; the binary’s global --update flag threads through the same path for manual symposium sync.
Crates reached through [[plugins]] chained references or [plugins] enablement are resolved with UpdateLevel::Check whatever --update says, so sync downloads one that cargo has not cached yet. The other paths that build the active plugin set (--help, subcommand dispatch, hook dispatch) only read the cargo cache.