Skip to content
venizia.ai

Documentation · VULCAN

vulcan project sync ​

vulcan project sync generates agent adapter files and project metadata from your configuration. It updates tool instructions, settings, hook registrations, skill links and the manifest. Which agents get adapters is each developer's choice on their own machine (Choosing your agents). The Claude adapters (CLAUDE.md, settings, skill links) are planned only when claude is among the chosen agents. The manifest is always written.

OutputWhereCommitted?Built from
Agent instructionsCLAUDE.mdNo (gitignored adapter)@AGENTS.md import line
Claude settings.claude/settings.jsonNo (gitignored adapter)Shipped settings, slot choices, agent.claude.settings (project hooks included), and personal settings
Skill links.claude/skills/<name>No (gitignored adapter)Symbolic links to shipped and project skills
Atlas descriptor.agents/atlas.manifest.jsonYes (committed, generated); only in a repository that publishes (it sets knowledge.atlas.index.keys, or git tracks the file)What atlas and the wiki build read: name, packages, layout, presets, knowledge, release, sources, atlas, theme
Descriptor copy (temporary).agents/vulcan.manifest.jsonYes (committed, generated); only in a repository that publishesThe same text as the descriptor, kept until the stable 0.5.0 release: atlas of 0.5.0-6 and before finds a source's manifest only at this path
Local manifest.agents/local/vulcan.manifest.jsonNo (gitignored; each clone writes its own)Project configuration the hooks, board and doctor read, and base rule hashes
Managed overlay.claude/vulcan-managed.jsonNo (gitignored adapter)Managed overlay record of settings written by VULCAN

Only a repository that publishes (its config sets knowledge.atlas.index.keys, or git already tracks .agents/atlas.manifest.json) gets the descriptor and the copy. An app gets neither: everything stays in .agents/local/vulcan.manifest.json, and atlas reads its own project from there. A descriptor or a copy left untracked by an earlier sync is deleted; one git tracks, or one git cannot tell about (not a repository, a broken index), is never touched, and such a repository counts as publishing. A new atlas source that signs nothing commits its descriptor once: set knowledge.atlas.index.keys, run vulcan project sync, and commit .agents/atlas.manifest.json; from then on git tracking it keeps sync writing it, keys or not.

Options ​

OptionTypeDefaultMeaning
--quietbooleanoffPrint only what changed and the notes, not every file that stayed as it was (the prepare script uses it)
--agents <list>stringthe stored choiceThe agents to write adapters for, comma-separated, or none. Stored in .agents/local/profile.json
--dry-runbooleanfalsePrint planned changes without writing to disk

--agents list prints the table of agents and writes nothing. In a terminal, --agents with no value asks again.

Choosing your agents ​

sync writes adapters only for the coding agents you use, and you choose them per machine, not per project. The eight ids are claude, omp, codex, cursor, copilot-cli, copilot-vscode, antigravity and pi; vulcan project sync --agents list shows what each reads.

In a terminal that can draw menus, the agents question is a menu, not a typed answer; see Interactive prompts. The sample below shows what a plain terminal (TERM=dumb) asks.

The first sync in a terminal detects the agents on the machine (a binary on PATH, a folder in your home or in the project) and asks you to confirm:

text
$ bun node_modules/.bin/vulcan project sync
Which coding agents do you use in this project? (comma-separated; Enter accepts the detected list: claude, omp)
  detected: claude, omp
  available: claude, omp, codex, cursor, copilot-cli, copilot-vscode, antigravity, pi, none
? Agents > claude,omp

The answer is stored in .agents/local/profile.json, which is gitignored, and every later sync uses it without asking. On the first question an empty answer (Enter) takes the detected list. When you ask again (vulcan project sync --agents with no value, or vulcan agent setup), the question shows chosen before: and Enter keeps that choice; to change it, type the new list, or none. Without a terminal, give the list: vulcan project sync --agents claude,omp (none writes only AGENTS.md-level files).

The order that decides the list is: the --agents flag; the stored file; the agents list in the project's config, when it has one; then the question. When nothing is known and there is no terminal, sync writes the Claude files and prints one line saying how to choose (users of Codex, omp or pi run vulcan project sync --agents <list> once); it stores nothing. That is also what a prepare script does on bun install, which reads no terminal. A project that already has CLAUDE.md or .claude/ gets no special treatment: its first sync asks like any other. What each chosen agent gets from sync:

AgentAtlas MCP entryWhere
claude, omp, copilot-climcpServers.atlas, the same relative entry for everyone (--root .)the root .mcp.json, one file for the three (below)
codexa block between # vulcan:atlas:start and # vulcan:atlas:end.codex/config.toml; Codex loads it only for a trusted project
cursormcpServers.atlas.cursor/mcp.json
copilot-vscodeservers.atlas (type stdio).vscode/mcp.json
antigravitymcpServers.atlas.agents/mcp_config.json
pimcpServers.atlas.pi/mcp.json; Pi ignores it until you trust the project

These files are for your machine, so the entry carries the absolute project root and calls the project's own vulcan (bun <root>/node_modules/.bin/vulcan atlas mcp --root <root>), which works whatever directory the agent starts the server from. sync merges: your other servers and keys stay, an atlas entry that sync wrote itself is rewritten when the project has moved (the paths no longer match this folder: after you move, rename or copy the project, run sync again), any other atlas entry is yours and is left as it is, a file that is not valid JSON is skipped (skipped, with the reason), and a file git tracks is not written (it prints what to add). After the actions, sync prints one note line for each thing only you can do, such as trusting the project in Codex or Pi. Every chosen agent except Claude reads skills from .agents/skills/<name>/SKILL.md, so sync links the 12 shipped skills there, as symbolic links to the same stable path the Claude links use. Agents that share the folder share the links. A skill of yours with the same name wins: its real folder is left and reported as skipped. Claude keeps .claude/skills, which also holds your project skills. The git ignore entries for these files are described in Keeping the adapters out of git.

The root .mcp.json ​

Claude Code, omp and Copilot CLI read one file, the root .mcp.json. It is a per-machine agent file like .cursor/mcp.json: init does not scaffold it, and sync writes it only when you chose at least one of the three, so a project whose developers use only Antigravity or Cursor never gets one. The entry is the same for every developer, so it is relative:

json
{
  "mcpServers": {
    "atlas": {
      "command": "bun",
      "args": ["node_modules/.bin/vulcan", "atlas", "mcp", "--root", "."]
    }
  }
}
  • It is merged, not replaced. Your other servers and keys stay, and the atlas key goes in after them. An atlas entry that is not this one is yours and is left as it is (vulcan project doctor warns when it serves another root).
  • It stays out of git on your machine. sync lists /.mcp.json once in the .git/info/exclude block, however many of the three agents you chose.
  • vulcan agent remove takes it back when no remaining agent reads it: the atlas entry is taken out, and the file goes when nothing else is in it. An entry you changed is left and the line says so.
  • A tracked file is never touched. A project that commits .mcp.json today keeps it as it is: sync neither rewrites it nor lists it in the exclude block. After git rm --cached the file stays on disk. If its atlas entry is the one above, sync adopts it as its own: it reports unchanged, adds it to the exclude block, and agents remove can take it back. Any other atlas entry stays yours.

The Atlas block in AGENTS.md ​

Not every agent shows the model what the atlas server says about itself: Antigravity keeps the server's text in files it does not put in the prompt, and Pi shows one line. So sync also writes the same guidance into the committed AGENTS.md, for every agent, Claude included, between two markers (it does not wait for a .mcp.json: an agent that has its own MCP file needs the block most):

text
<!-- vulcan:atlas:start - generated by vulcan project sync from .configs/vulcan.config.*; do not edit -->
## Atlas

The `atlas` MCP server holds the real code and docs of: my-product (this repository), ignis.
Look facts up there before you answer or write from memory (V-P-07):
`symbol` before you use an export (signature, import path, source line); `search`, then `get`, for how something works or which convention applies; `version` or `changes` for a release or an upgrade.
A new app or package: ask `presets` which preset and which `vulcan package add` command, run it, and never hand-write package.json, tsconfig or scripts.
How to build something here (a feature, a controller, a service, a repository): `search` first, then `get`, before you answer; a plan never says "check atlas" for a step you have not done.
<!-- vulcan:atlas:end -->

The corpora come from the config (the project and every knowledge.atlas.sources entry). sync inserts the block before the section that follows "Must read first" (or at the end), rewrites only what sits between the markers on later runs, and never touches your text around it. vulcan project doctor prints an info line when the block is missing or out of date; it never fails.

The blocks can make AGENTS.md pass 100 lines. When it is one of knowledge.okf.contents.files (it is by default), sync then also writes its contents list, so vulcan okf check --strict never reports AGENTS.md has no fresh contents list after a sync.

The event hooks ​

When board.events.log is true, sync adds one Claude Code hook for each of SessionStart, SubagentStart, SubagentStop, Notification and PostToolUse (only the SendMessage, TodoWrite, Bash, Write, Edit, MultiEdit and NotebookEdit tools, so no process starts for any other tool call), and a UserPromptSubmit hook that adds the flow and its open steps to a turn a user prompt starts to .claude/settings.json; a Stop hook and a PostToolUse hook for every tool are not installed, and sync removes one it finds. They write the agent event log. They sit beside the hooks VULCAN already ships, run with a 5 second limit, and never block the agent. Set board.events.log back to false and the next sync removes those entries and only those. board.events.dir alone installs nothing.

The commit-msg hook ​

When check.commit.message turns a commit check on, sync installs a commit-msg git hook in your clone, so every commit message is checked, whoever or whatever makes the commit. Nothing is installed for a project that sets no check.

  • With no core.hooksPath, it writes .git/hooks/commit-msg, and a linked worktree shares it.
  • A hook that sync did not write is never touched: sync prints skipped and the line to add, bun node_modules/.bin/vulcan check commit "$1".
  • With core.hooksPath set, sync writes nothing there and prints the same line for that folder's commit-msg hook.
  • When you turn every check off, sync removes a hook it wrote.

--dry-run lists the action as would create, would replace or would remove. vulcan check commit has the details; vulcan project doctor warns when the hook is not in order.

Your own skills ​

A skill you write in .agents/skills/<name>/SKILL.md reaches every agent you chose. The agents other than Claude read that folder themselves. For Claude, sync links each of your skills into .claude/skills/<name>: one you add shows up on the next sync, and when you delete the folder the next sync removes its dead link (removed .claude/skills/mine (a skill that is gone)). A real folder of yours in .claude/skills is never replaced.

The temp folder ​

The machine keys of .agents/local/profile.json are in the groups of the config: agent.list (the agents you chose), board.page.agents (the roster of the board), board.events.dir (an absolute events folder), common.local.tmp (the tmp folder) and board.serve.autoStart. A profile written before the groups has agents, board.agents, events and local: the first sync after the upgrade moves each one to its new path, in place and once (a value already at the new path stays and is named; a key it cannot place stays where it is, named; --dry-run lists the move and writes nothing). Until it has run, a command that reads the profile refuses the old key and names the new one.

sync keeps .agents/local/ and its subfolders, makes sure .gitignore covers .agents/local/ and, unless .claude/ is already ignored, /.claude/settings.json (Claude Code's settings are written in every clone and never committed), and creates the folder common.local.tmp names, when the config sets one, and gitignores it. The session-start hook it registers exports TMPDIR into every Bash command. A .agents/local/claude.launch.settings.json left by an earlier release is removed when git does not track it. What the hook moves, and what it does not, is in Temporary files.

Keeping the adapters out of git ​

Which agents you use is your choice, so the committed .gitignore cannot list your adapter files without churn between teammates. sync writes them to your clone's own .git/info/exclude instead, between # vulcan:start and # vulcan:end, one comment line per agent:

text
# vulcan:start - written by vulcan project sync for the agents you chose; do not edit
# cursor
/.cursor/mcp.json
# omp
/.agents/skills/build-a-feature
/.agents/skills/docs-update
/.agents/skills/docs-writing
/.agents/skills/fix-a-bug
/.agents/skills/plan-a-change
/.agents/skills/report-back
/.agents/skills/review-a-change
# local
# vulcan:end

The list holds the Claude files (/CLAUDE.md, /.claude/) when claude is chosen, each chosen agent's own MCP file, the shipped-skill links, and the file that stores your choice. A path git tracks is not listed (an exclude entry cannot hide a tracked file). Each run replaces the block, so an agent you stop using drops out of it, and its files are taken back (vulcan agent remove). The file is found with git rev-parse --git-path info/exclude, so a worktree or a separate git directory works, and a project below the repository top is anchored with its folder and keeps a block of its own (# vulcan:start (apps/web/) - ...), so syncing it never replaces the block of the top level or of another project; a project directory git already ignores gets none. Your own lines in the file are never touched, and a project that is not a git repository gets no file.

Synchronizing adapters ​

To generate missing adapters and the manifest, run vulcan project sync:

text
$ bun node_modules/.bin/vulcan project sync
  created   CLAUDE.md
  created   .claude/settings.json (shipped, slot and agent.claude.settings over personal keys)
  created   .claude/skills/build-a-feature
  created   .claude/skills/docs-update
  created   .claude/skills/docs-writing
  created   .claude/skills/fix-a-bug
  created   .claude/skills/plan-a-change
  created   .claude/skills/report-back
  created   .claude/skills/research
  created   .claude/skills/retro
  created   .claude/skills/review-a-change
  created   .claude/skills/ship
  created   .claude/skills/visualize-work
  created   .mcp.json
  created   .agents/local/vulcan.manifest.json
  created   .agents/atlas.manifest.json
  created   .agents/vulcan.manifest.json
  replaced  AGENTS.md (Atlas block)
  created   .agents/local/profile.json
  created   .agents/local (created tmp, worktrees, clones, cache, reports, prototypes)
  replaced  .git/info/exclude

The last four lines are the Atlas block in AGENTS.md, the file that stores your choice of agents, the scratch folder .agents/local/, and the ignore list in your clone (a project that is not a git repository gets no .git/info/exclude line).

Running vulcan project sync again on an up-to-date repository makes no changes:

text
$ bun node_modules/.bin/vulcan project sync
  unchanged CLAUDE.md
  unchanged .claude/settings.json
  unchanged .claude/skills/build-a-feature
  unchanged .claude/skills/docs-update
  unchanged .claude/skills/docs-writing
  unchanged .claude/skills/fix-a-bug
  unchanged .claude/skills/plan-a-change
  unchanged .claude/skills/report-back
  unchanged .claude/skills/research
  unchanged .claude/skills/retro
  unchanged .claude/skills/review-a-change
  unchanged .claude/skills/ship
  unchanged .claude/skills/visualize-work
  unchanged .mcp.json
  unchanged .agents/local/vulcan.manifest.json
  unchanged .agents/atlas.manifest.json
  unchanged .agents/vulcan.manifest.json
  unchanged AGENTS.md
  unchanged .agents/local/profile.json
  unchanged .agents/local
  unchanged .git/info/exclude

Action statuses ​

vulcan project sync prints an action status for each planned target:

StatusMeaning
createdThe target file or symbolic link did not exist and was written.
unchangedThe target file or symbolic link already matches the planned content.
replacedThe target existed with different content or pointed elsewhere, and was rewritten.
removedA dead skill link was removed: into a shipped skill this version lacks, or a skill of yours that is gone.
skippedThe target was left untouched due to a conflict or invalid content.

A target is skipped when CLAUDE.md exists and is not exactly @AGENTS.md: sync never replaces a file it did not write (skipped (hand-written - delete it to let sync write '@AGENTS.md')). It is also skipped when .claude/settings.json is not valid JSON. A skill link is skipped when .claude/skills is a symbolic link or the target is a real directory.

If a project skill shares a name with a shipped skill, vulcan project sync skips the link. The exit code is 0 on success. The exit code is 1 when .claude/settings.json cannot be written because it was skipped. The exit code is also 1 when configuration fails to load.

Assembling Claude settings ​

vulcan project sync builds .claude/settings.json by merging configuration sources. Each later source overrides the earlier sources:

  1. Personal settings: Existing user keys in .claude/settings.json form the base.
  2. Shipped settings: Base settings from VULCAN register the shipped hooks, and approve the project's atlas server (enabledMcpjsonServers: ["atlas"]), so Claude does not ask you to approve .mcp.json the first time. A list of your own approved servers is kept and atlas is added to it.
  3. Slot choices: Settings defined for chosen slot options in base/slots.json, such as git write restrictions for V-W-01.
  4. Commit attribution: With commit.message.agent.signature: 'deny', VULCAN sets attribution empty so Claude Code adds no signature to commits and pull requests (the details).
  5. Event hooks: With events.log: true, VULCAN adds the five hooks of the agent event log.
  6. Claude settings: Team settings declared under agent.claude.settings in .configs/vulcan.config.mts, project hooks (agent.claude.settings.hooks) included.

Merge behavior ​

VULCAN records its generated settings in .claude/vulcan-managed.json. Before merging, vulcan project sync removes previously managed entries from .claude/settings.json. This step ensures dropped configuration options disappear while personal keys survive.

The four top-level keys permissions, hooks, enabledPlugins, and env merge one level deep. Arrays inside these four keys concatenate without duplicates (for example permissions.allow or hooks.<Event>). For all other keys, incoming configuration values overwrite existing values. Original key ordering from .claude/settings.json is preserved to keep diffs stable.

The settings and the manifest are what change; the skill lines and the lines that did not change are dropped from the output below:

text
$ bun node_modules/.bin/vulcan project sync
  replaced  .claude/settings.json (shipped, slot and agent.claude.settings over personal keys)
  replaced  .agents/local/vulcan.manifest.json
  replaced  .agents/atlas.manifest.json
  replaced  .agents/vulcan.manifest.json

Dry run ​

To preview filesystem operations without making changes, pass --dry-run:

text
$ bun node_modules/.bin/vulcan project sync --dry-run
  would create  CLAUDE.md
  would create  .claude/settings.json (shipped, slot and agent.claude.settings over personal keys)
  would create  .claude/skills/build-a-feature
  would create  .claude/skills/docs-update
  would create  .claude/skills/docs-writing
  would create  .claude/skills/fix-a-bug
  would create  .claude/skills/plan-a-change
  would create  .claude/skills/report-back
  would create  .claude/skills/research
  would create  .claude/skills/retro
  would create  .claude/skills/review-a-change
  would create  .claude/skills/ship
  would create  .claude/skills/visualize-work
  would create  .mcp.json
  would create  .agents/local/vulcan.manifest.json
  would create  .agents/atlas.manifest.json
  would create  .agents/vulcan.manifest.json
  would replace AGENTS.md (Atlas block)
  would create  .agents/local/profile.json
  would create  .agents/local (created tmp, worktrees, clones, cache, reports, prototypes)
  would replace .git/info/exclude

When to run sync ​

Run vulcan project sync whenever the project environment or configuration changes:

  • On a fresh clone: Gitignored adapter files do not exist yet after checkout.
  • After modifying configuration: Changes to .configs/vulcan.config.mts affect settings, hooks, skill links and the manifest.
  • After updating dependencies: Upgrading packages or VULCAN may introduce new shipped skills, hooks or base rules.

vulcan project doctor reports contract violations when adapters drift, such as stale (<status>) - run 'bun node_modules/.bin/vulcan project sync'. To review adapter verification rules, see the doctor reference.

The project manifest ​

vulcan project sync renders .agents/local/vulcan.manifest.json from your project configuration. The manifest is committed to version control. atlas reads .agents/atlas.manifest.json directly and never executes .configs/vulcan.config.mts. This allows atlas to inspect local and remote git repositories without evaluating project TypeScript code.

The committed manifest records resolved project metadata:

json
{
  "$generated": "by vulcan project sync from .configs/vulcan.config.* - do not edit",
  "schemaVersion": 1,
  "name": "vulcan",
  "packages": [
    {
      "name": "@venizia/vulcan-okf",
      "dir": "okf",
      "path": "packages/okf",
      "aliases": [],
      "retired": false
    },
    {
      "name": "@venizia/vulcan-atlas",
      "dir": "atlas",
      "path": "packages/atlas",
      "aliases": [],
      "retired": false
    },
    {
      "name": "@venizia/vulcan",
      "dir": "cli",
      "path": "packages/cli",
      "aliases": [],
      "retired": false
    }
  ],
  "knowledge": {
    "bundle": ".agents/knowledge",
    "wiki": "docs/wiki/content",
    "changelogs": "docs/wiki/content/changelogs"
  },
  "release": {
    "tagPattern": "vulcan-v<version>",
    "legacyTagPatterns": ["v<version>"],
    "ignoreTags": []
  },
  "rules": {
    "project": ".agents/rules.md",
    "base": {
      "V-W-01": "e5aa2a56",
      "V-W-02": "fc20aa8b",
      "V-C-18": "aaf8d03c"
    }
  }
}

The sample shows 3 of the base rule entries: 35, and 40 in a project that follows the venizia pack. The rules.base section stores one short hash per base rule, so a rule change is visible in review.

After the actions, vulcan project sync prints one line per base-rule change. Each line is labelled added, changed or removed. A removed rule shows its ID alone.

The manifest also includes optional fields when configured:

  • knowledge.wiki: Path to wiki documentation, present when set.
  • knowledge.changelogs: Path to changelogs, present when set.
  • knowledge.migrationFrom: The first day (YYYY-MM-DD) whose Breaking Change changelog entries must carry a migration: block, present when set.
  • layout: The folders of backend apps, frontend apps and shared packages (backend, frontend, shared), present when set; init --preset and add write it.
  • presets: The presets the project's apps came from, each { spec, side, summary } and lib when the preset also makes libraries. atlas's presets tool answers from it.
  • type: "lib" on a package entry that add --lib made (apps carry no type), and presetType (lib or shared) on a library or shared package that add made.
  • sources: External repository sources for atlas, present when knowledge.atlas.sources contains entries.
  • atlas: The keys a prebuilt index is checked with and the switch that turns its download off, present when knowledge.atlas.index or knowledge.atlas.prebuilt is set.
  • guard: The commands and push targets the guards ask about beyond their own list, present when guard.writes.commands or guard.git.askPush is set.

See also ​