vulcan commands
Use vulcan to scaffold a project or create a monorepo from a preset, write the agent adapters, check conformance, upgrade, and run okf and atlas. Run bun node_modules/.bin/vulcan or pass --help to inspect available commands. The bin is linked at the project root only, so run it from there (in a workspace, pass --app <app folder> where a command takes one):
vulcan 0.4.10-12 - one setup, one workflow for every project
Usage: bun node_modules/.bin/vulcan <command>
project init [--key <KEY>] Scaffold the project layer (never overwrites); --key is the project's flow key
(2 to 8 uppercase letters or digits; a terminal asks, else it is made from the name)
project init --preset <name|file:path> --project <name> --app <name> [--backend-dir|--frontend-dir <path>]
[--shared-dir <path>] [--scope <@scope>] [--key <KEY>]
Create a monorepo with its first app, from a framework preset
(a name missing from the flags is asked in a terminal)
package add --preset <name|file:path> (--app <name> | --lib <name> | --shared <name>) [--dir <folder>]
[--scope <@scope>] [--backend-dir|--frontend-dir <path>] [--api <app> | --no-api]
Add an app, a library other apps import (--lib) or a side-neutral package
other apps import (--shared) to the monorepo (a frontend says which
backend to proxy to; --dir is for a library or a shared package;
--scope names the package @scope/<name>; a terminal asks for the kind
and every name the flags leave out)
package diff <package> [--preset <name|file:path>] [--api <app> | --no-api] [--full] [--check]
Read-only: set each file the preset makes now (for an app, a library or
a shared package) against the file the package has (same, differs,
missing); --full prints the unified diffs, --check exits 1 when
anything differs or is missing
project sync [--agents <list>|list] [--dry-run] [--quiet]
Write the adapters of the agents you chose (--agents claude,omp or none,
stored in .agents/local/profile.json; --agents list shows the table)
agent [list|add <ids>|remove <ids>|setup] [--dry-run]
See, add, remove or re-choose the coding agents you use on this machine
project doctor Check the project follows VULCAN; exit 1 on any violation
check commit <message-file> | --range <revs> | --text <message>
Check a commit message against the check.commit.message checks of the config (an
agent in a trailer or a "generated with" line, the project's subject shape);
sync installs it as the commit-msg hook; exit 1 on a problem, 2 on bad input
board show [--out <file>] [--open] [--since <date>] [--dir <events folder>] [--repo owner/name]... [--no-github]
Fold the event log (and GitHub or GitLab pull requests, checks and reviews
when gh or glab can read them) into flows and write one HTML file, by default
.agents/local/reports/board.html; read-only; exit 2 on bad input
board serve [--port <n>] [--since <date>] [--dir <events folder>] [--repo owner/name]... [--no-github]
Serve the same page on 127.0.0.1 (default port 4317) and push the new events to the open page, with no reload
event add --type <t> --summary <text> [--flow <flow id>] [--ref <r>] [--status approve|park|reject] [--actor <name>] | flow add [--flow <flow id>] --title <text> [--why <text>] [--context <text>] [--next <text>] [--step|--step-done <text>]... [--check|--check-done <text>]... [--app <name>]... [--due YYYY-MM-DD] [--order <n>|none] | flow step [--flow <flow id>] [--done|--todo <step>] [--next <text>] [--context <text>] [--order <n>|none] | event tail [--since <time>] [--json] [--dir <folder>]
Write a line to the agent event log (.agents/local/events/<day>.jsonl) or
read it; with board.events.log on, sync installs the Claude Code hooks that
write it; exit 2 on bad input
page new <spec.json> [--out <name>] | page schema
Make one small static HTML page (a flow, a status, a before and after) from
a JSON spec, in .agents/local/prototypes/; page schema prints the spec's schema
profile [show|edit|reset [--yes]]
Tell VULCAN how you like to work (reply language, how to address you,
tone, habits) in .agents/local/profile.json; no argument runs the form,
show prints it, reset removes your answers
config effective | diff
effective prints the config as the commands read it (the shipped defaults, the
config of each pack, then the project file, merged) with the layer each value
came from; diff lists the values of the project file that the shipped layers
already give; read-only; exit 2 on bad input
config format [--check]
Put the top-level keys of .configs/vulcan.config.mts in the canonical order, each
with its comments; --check writes nothing and exits 1 when a key would move; exit 2
when the keys cannot be ordered (a spread, a computed key, no object literal)
config codemod <config-groups|type-names> [<dir>] [--write] [--split] | --list
type-names: rename kind to type and presetKind to presetType in the package
entries of the config and its modules. config-groups: move the keys of .configs/vulcan.config.mts into the seven groups, each with its
comments (--split: one module per group in .configs/vulcan/, the modules of an old
split folded in); without --write it lists what it would write; exit 2 and
nothing written when it cannot move a key without losing it
project clean [--tmp|--worktrees|--clones|--cache|--all] [--reports|--prototypes|--events|--release-candidates|--profile] [--include-fresh] [--yes]
List what an agent left under .agents/local/ (a dry run) and, with
--yes, remove it; --tmp is the default and takes stale items only (--include-fresh
adds the rest), --worktrees takes merged or gone branches only, --all never touches reports, prototypes, events, release candidates or the profile
project upgrade [--stable | --nightly] [<version|tag>]
Bump the pinned @venizia/vulcan, then sync; --stable (default)
takes the latest tag, --nightly the newest of latest and next
check runners List every tracked file that runs an unscoped package through bunx, pnpx,
bun x, npx, npm exec, pnpm dlx or yarn dlx, whether or not it says no-install
(a name npm gives to someone else would be fetched and run). A scoped package
and the names of guard.runners.allow pass; tests, lockfiles, build output and
frozen history (dated entries, released version folders) are not read
check layout [--write-baseline]
List the layout findings of the package and layout folders (check.layout): a
plural role in a file name, a folder that mixes subfolders and loose files, a
source file over check.layout.maxLines; what .configs/layout-baseline.json
holds is info, the rest warns; --write-baseline writes every finding into it
check changelog [--history --base <ref>]
Check the changelog: a version folder changelogs/<X.Y.Z>/{log.md, migration.yaml}
has a block for every Breaking and Deprecated item; a dated Breaking Change entry
on or after a date cutover carries one. --history also fails a released folder that
changed since the base, a stable with no folder, and a dated file, dated after
knowledge.datedUntil, that was added or edited.
migrate notes --version <X.Y.Z> [--migration]
The release notes of a version folder: the body of its log.md, then the packages.
--migration prints the path of its migration.yaml when that file holds a block,
and nothing when it does not (what a workflow attaches to the Release)
migrate plan [--package <name>] [--from <version>] --to <version|latest|next> [--app <dir>] [--format md|json] [--verbose] [--root <dir>] [--source <owner/repo>@<ref>]... [--cache-dir <dir>] [--no-prebuilt]
What an app must change to move a package between two releases, newer or
older: the steps in order, the places in your code they touch (file:line),
codemods and data warnings; read only
migrate apply [--package <name>] [--from <version>] --to <version|latest|next> [--app <dir>] [--force] [--root <dir>] [--source <owner/repo>@<ref>]... [--cache-dir <dir>] [--no-prebuilt]
Run the codemods the plan links, once each in order (reversed for a
rollback), then print the steps that stay manual; refuses an app with
uncommitted changes or outside git unless --force
okf <args...> | atlas <args...> Run a shipped tool at the pinned version (okf, atlas)
help · versionThe add entry lists every flag add takes: --app for an app, --lib for a library other apps import and --shared for a side-neutral package other apps import (both with --dir); --scope names the package for any of them; see vulcan package add.
If you pass an unknown command, vulcan prints vulcan: unknown command 'foo' - run 'bun node_modules/.bin/vulcan help' and exits with code 1. The following list gives each command, its purpose, its exit codes, and its reference page:
init(vulcan project init): Scaffold the project layer without overwriting existing files; with--preset, create a monorepo with its first app. Exit codes:0on success;1on a refusal, a missing name flag or unknown argument; otherwise the exit code of the failing install, sync or check.add(vulcan package add): Add an app, a library other apps import with--lib, or a side-neutral shared package with--shared, from a preset to a monorepo thatinit --presetcreated. Exit codes:0on success;1on a refusal, a missing name flag or unknown argument; otherwise the exit code of the failing install, sync or check.preset(vulcan package diff):preset diff <package>: read-only report of each file the preset of an app, a library or a shared package makes now against the file the package has. Exit codes:0after a report (with--check,1when anything differs or is missing);1on a refusal or an unknown argument.sync(vulcan project sync): Write agent adapter files and manifest. Exit codes:0on success;1on invalid configuration, broken settings, or unknown argument.agents(vulcan agent): Show, add, remove or re-choose the coding agents chosen on this machine, and write or take back their adapters. Exit codes:0on success or when nothing needed changing;1on an unknown agent or subcommand, a missing list,setupwithout a terminal, or invalid configuration.visualize(vulcan page new): Make one small static HTML page from a JSON spec, in.agents/local/prototypes/;--schemaprints the spec's JSON Schema. Exit codes:0on success;1when the spec is missing or not renderable, nothing is written, or.agents/local/is missing.profile(vulcan profile): Tell VULCAN how you like to work (language, how to address you, tone, habits);showprints it,resetdeletes it. Exit codes:0on success;1when cancelled, unreadable, not gitignored or on an unknown argument.config(vulcan config): Show the config as the commands read it, merged from the shipped defaults, the config of each pack and the project file;--difflists the values the project file repeats;config formatputs the top-level keys of the config file in the canonical order. Exit codes:0shown;1when the config cannot be loaded;2on bad input.clean(vulcan project clean): List what an agent left under.agents/local/and remove it with--yes. Exit codes:0on a dry run, a removal or nothing to remove;1when an item cannot be removed or on an unknown flag.commit-check(vulcan check commit): Check a commit message for an agent signature and the project's subject shape, as thecommit-msghook thatsyncinstalls does; nothing is checked untilcheck.commit.messageturns a check on. Exit codes:0when clean or when no check is configured;1on a problem;2on bad input.board(vulcan board show): Fold the event log, and GitHub or GitLab pull requests whenghorglabcan read them, into flows and write one read-only HTML page, by default.agents/local/reports/board.html. Exit codes:0written;1the file cannot be written, orboard servecannot start;2on bad input.event(vulcan event):event addwrites a line to the agent event log,event tailreads it; withboard.events.logon,syncinstalls the Claude Code hooks that write it. Exit codes:0on success;1when the log cannot be written;2on bad input.doctor(vulcan project doctor): Check the project against the VULCAN contract and report violations. Exit codes:0when conformant;1on any contract violation or unknown argument.upgrade(upgrade): Bump the pinned@venizia/vulcandependency and run sync. Exit codes:0on success;1on unknown argument or missing binary; otherwise the exit code ofbun addor childvulcan project sync.check changelog(vulcan check changelog):check changelogis the gate over the changelog (dated entries, version folders,migrationblocks);changelog notes --version <X.Y.Z>prints the release notes of a version. Exit codes:0when every entry conforms or the notes are printed;1when an entry does not, a version has no folder, the tool is missing or the configuration is invalid;2for arguments that match no form.migrate(vulcan migrate):migrate planlists what an app must change to move a package between two releases, newer or older;migrate applyruns the codemods the plan links. Exit codes:0when a plan is printed orapplyran;1when the plan cannot be made,applyis refused or a codemod fails, or the tool is missing;2for a subcommand other thanplanorapply, a missing--to, an unknown flag, a flag with no value or a flag of the other subcommand.check runners(vulcan check runners):check runnerslists every tracked file that runs an unscoped package fetched by name (ruleV-S-08). Exit codes:0when there is none;1when a file runs one;2for any other arguments or when git cannot list the files.layout(vulcan check layout):layout checklists the file names with a plural role, the folders that mix subfolders and loose files and the long source files of the package and layout folders;--write-baselineadopts them. Exit codes:0when every finding is in the baseline or the baseline was written;1on a new finding or when the check cannot run (the config, the baseline, a folder outside git, a listing git does not give);2on bad arguments.okfandatlas(okf and atlas): Run a shipped tool (okforatlas) at the pinned package version. Exit codes:0on tool success;1on missing or unknown tool, unresolvable package, or invalid configuration; forwarded exit code from tool.help: Print usage information and available command options (--helpand-hare aliases). Exit codes:0.version: Print the installed VULCAN package version (--versionand-vare aliases). Exit codes:0.
upgrade
vulcan project upgrade updates @venizia/vulcan in your project and regenerates agent adapters.
To update the package, vulcan project upgrade runs bun add --dev --exact @venizia/vulcan@<target>. When the installation succeeds, the command spawns node_modules/.bin/vulcan project sync as a child process. Spawning a child process ensures the newly installed version generates adapters matching the new base rules.
Upgrade before you use a new config key. The config schema is strict, so a key from the version you are upgrading to is unreadable to the version you have now; see the Upgrading paragraph of the configuration page for what the hooks do meanwhile.
Argument forms
--stable is the default. Choose the channel with a flag, or name a version. The channel is never stored in the config.
| Syntax | Installs | Behavior |
|---|---|---|
bun node_modules/.bin/vulcan project upgrade | latest | The stable release; never a prerelease. Same as --stable |
bun node_modules/.bin/vulcan project upgrade --nightly | The higher of latest and next | The newest published version, by semver. Never older than the stable release |
bun node_modules/.bin/vulcan project upgrade <version|tag> | The version or tag you name | Wins over --stable and --nightly |
--nightly reads the dist-tags of @venizia/vulcan with bun pm view, so it uses the registry your project is configured for. If latest is 0.4.8 and next is 0.4.8, --nightly installs 0.4.8. If next is 0.4.9-2, it installs 0.4.9-2. Passing --stable and --nightly together exits 1.
If the dist-tags cannot be used, --nightly prints vulcan project upgrade: --nightly could not read the dist-tags of @venizia/vulcan - pass a version instead and exits 1. That covers a failed bun pm view (its own error text is printed first), an answer that is not an object, and a latest or next value that is not a plain version.
When the installed @venizia/vulcan is a prerelease and you run upgrade or upgrade --stable, the command prints one note: the stable channel installs the latest stable release, and --nightly keeps the prerelease line.
Example run
The following run pins @venizia/vulcan to version 0.4.8, the version already installed, so sync changes nothing:
$ bun node_modules/.bin/vulcan project upgrade 0.4.8
bun add v1.4.3 (c6da4a4d3)
installed @venizia/vulcan@0.4.8 with binaries:
- vulcan
[6.00ms] done
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.md
unchanged .agents/local/profile.json
unchanged .git/info/excludeEverything down to [6.00ms] done is bun add output (the timing and a Saved lockfile line vary); the lines after it are vulcan project sync output. When the new version changes the adapters, the same lines read replaced. The command exits 0 on success.
Exit codes
vulcan project upgrade exits 0 on success. The command exits 1 when node_modules/.bin/vulcan is missing. It also exits 1 on an unknown argument, on --stable with --nightly, and on --nightly when the dist-tags cannot be read. Otherwise, the command returns the exit code of bun add or of the child vulcan project sync.
okf and atlas
vulcan okf <args...> and vulcan atlas <args...> run a shipped tool at the version pinned by @venizia/vulcan. okf resolves to @venizia/vulcan-okf (vulcan-okf) and atlas to @venizia/vulcan-atlas (vulcan-atlas); see okf and atlas. Everything after the scope goes to the tool.
The old x <tool> form of both still runs in this release, with a notice that names the new form, and it goes in the next one.
Environment variables
When the project has a configuration file, vulcan okf and vulcan atlas set three environment variables:
| Variable | Purpose |
|---|---|
VULCAN_PROJECT_ROOT | Project root path, read by atlas and okf |
VULCAN_CONFIG | Resolved project configuration serialized as JSON, including resolved packages |
VULCAN_MANIFEST | Manifest rendered fresh on each run, so atlas never reads a stale committed file; only atlas reads it |
When the project has no configuration file, they set none of these variables. The child process still inherits the full process environment. This behavior allows atlas to inspect external sources without a local project configuration.
Running vulcan
Every example invokes VULCAN as bun node_modules/.bin/vulcan to run the @venizia/vulcan package pinned in your project dependencies. The --no-install flag prevents Bun from downloading packages, running pinned code instead of the unrelated npm package named vulcan.
vulcan.mk wraps these commands in make targets. To use these targets, include the makefile in your project Makefile:
-include node_modules/@venizia/vulcan/base/make/vulcan.mkThe following table lists the targets provided by vulcan.mk:
| Target | Description |
|---|---|
vulcan-sync | Write the agent adapters, settings, skill links and manifest from the config |
vulcan-doctor | Check the project against the VULCAN contract |
okf-check | Check the knowledge bundle against OKF v0.2 |
okf-check-strict | okf-check plus the house rules: links, style, coverage, freshness |
okf-gen | Regenerate the generated pages and regions of the knowledge bundle |
okf-coverage | Report how much of the code the knowledge bundle covers |
surface-gen | Write the public API surface from the built .d.ts |
surface-check | Fail when the public API surface differs from the committed one |
atlas-symbols | Print the symbols atlas reads from the built or installed .d.ts |
atlas-releases | Print the release table atlas computes from the tags |
wiki-links-check | Fail when the wiki or the knowledge bundle names a source path git does not track |
wiki-anchors-check | Fail when a wiki #fragment link has no matching heading; needs a build |
The wiki gates
Two gates keep a VitePress wiki honest, and they take the same arguments in every repository:
make wiki-links-checkreads every.mdfile underdocs/wiki/contentand.agents/knowledge. A GitHub link into your repository (<owner>/<name>/blob/main/<path>ortree/main/<path>), a backticked path under a source folder, and a concept'sresource:must each be tracked by git. The source folders are the folders of the configlayout(backend,frontend,shared,other) plusdocs/,scripts/and.agents/; with nolayoutthey arepackages/,examples/,scripts/,docs/and.agents/. A gitignored file is not on GitHub. SetWIKI_REPO(owner/name) in your Makefile before the include; without it the gate refuses to run.WIKI_LINKS_FLAGStakes--dirs(the folders to walk),--skip-prose(folders where a backticked path may name history or a file of another project, so only links and resources are checked; the changelogs by default) and--skip(generated pages that are never checked).make wiki-anchors-checkreads the built site (make docsfirst) and fails on a link to a heading, or to a page, that does not exist; it reads the ids VitePress emitted, never a computed slug.WIKI_ANCHORS_FLAGStakes--contentand--dist.
The entry scripts are base/checks/wiki-source-links.ts and wiki-anchors.ts, run by bun from the repository root.