What Is Nodus?
Nodus is for the repo that wants to consume agent packages without stitching runtime folders together by hand.
Point it at a GitHub repo or local path and Nodus will resolve the package, pin the dependency, lock the exact revision in nodus.lock, snapshot the package into a shared local store, and write only the managed files your selected adapters need.
The install flow is designed to stay predictable:
nodus addrecords the dependency and runs sync immediatelynodus infoprints resolved metadata for a dependency alias, local package path, or Git referencenodus.lockcaptures the exact Git revision and managed outputs- managed files are pruned when they go stale
- unmanaged files are never overwritten
- high-sensitivity packages require explicit opt-in
Package authors can still publish content from skills/, agents/, rules/, and commands/, but as a consumer you mostly interact with nodus add, nodus info, nodus outdated, nodus update, nodus relay, nodus sync, and nodus doctor.
Install
Install the released crate from crates.io:
Install the latest prebuilt binary on macOS or Linux:
|
Install a specific release or choose a custom install directory:
|
|
Verify the downloaded archive when the release includes checksum assets:
|
Uninstall from the default or a custom install directory:
|
|
You can also download a prebuilt binary archive from the GitHub release assets for your platform, then run the root-level install.sh locally.
Build or install from the current checkout:
After installation, run:
By default, Nodus stores shared mirrors, checkouts, and snapshots in the platform's local application data directory:
macOS: ~/Library/Application Support/nodus/
Linux: ~/.local/state/nodus/ (or $XDG_STATE_HOME/nodus/)
Windows: %LOCALAPPDATA%\nodus\
You can override that location for any command with --store-path <path>.
Quick Start
If the repo does not have a manifest yet:
Then add a package:
To install only selected artifact kinds from that package:
That one command:
- resolves the latest tag unless you pass
--tag,--branch, or--revision - writes the dependency to
nodus.toml - persists adapter selection when needed
- locks exact state in
nodus.lock - emits managed files under the selected runtime root
Validate the result:
For repeatable CI:
To install the exact Git revisions already recorded in nodus.lock without following newer branch heads:
When a package declares high sensitivity capabilities:
Use a custom shared store root when needed:
Remove a configured dependency and prune its managed outputs:
If you maintain a dependency repo locally and want to relay managed edits back into that checkout:
After setup, your repo has a pinned dependency in nodus.toml, exact resolved state in nodus.lock, and managed runtime files under the adapter root you selected.
Generate shell completions when you want tab completion for the CLI:
Why Teams Use Nodus
- Add a package from Git or a local path without manually copying files into
.agents/,.codex/,.claude/,.cursor/, or.opencode/ - Install once and emit only the runtime outputs your repo actually uses
- Reuse shared mirrors, checkouts, and content-addressed snapshots across projects
- Keep generated files under explicit ownership so stale outputs can be pruned safely
- Verify install state with
nodus doctorand enforce it in CI withnodus sync --locked
Available Today
Nodus currently supports:
- Local path dependencies
- Git dependencies resolved from tags or branches
- Deterministic sync with lock state stored in
nodus.lock - Managed output emission for Agents, Claude, Codex, Cursor, and OpenCode
- Repo-level adapter selection that can be inferred, chosen explicitly, or persisted
- Validation of shared store state, lockfile state, and managed files with
nodus doctor
Planned later:
- Remote registries
- Package publishing workflows
- Signature or provenance verification
- Global install scopes
- Claude plugin mode
Contributing
See CONTRIBUTING.md for the local development workflow and release checks.
License
Licensed under Apache-2.0.
Manifest
The root project does not need api_version, name, or version just to consume dependencies.
A minimal consumer manifest looks like:
[]
= ["codex"]
[]
= { = "WendellXY/nodus", = "v0.3.2" }
If this repo also publishes AI-plugin assets from additional folders, you can declare additive content roots and optionally mirror the root project's own discovered assets into local runtime folders:
= ["nodus-development"]
= true
Each content_roots entry is resolved relative to the repo root and is scanned
as another package source root containing optional skills/, agents/,
rules/, and commands/ subfolders.
You can optionally filter which artifact kinds a dependency contributes:
[]
= { = "WendellXY/nodus", = "v0.3.2", = ["skills"] }
You can also use local path dependencies:
[]
= { = "vendor/playbook" }
Use [dev-dependencies] for packages that should resolve in the current repo but stay private when this package is consumed by another Nodus workspace:
[]
= { = "vendor/tooling" }
When a dependency is synced from a branch rather than a Git tag, you can optionally retain the package's own semantic version separately from the transport ref:
[]
= { = "CharlesWiltgen/Axiom", = "main", = "2.34.0" }
You can also pin a dependency to an exact Git commit:
[]
= { = "WendellXY/nodus", = "0123456789abcdef0123456789abcdef01234567" }
You can also declare direct managed file or directory mappings for a root-manifest dependency:
[]
= "vendor/shared"
[[]]
= "prompts/review.md"
= ".github/prompts/review.md"
[[]]
= "templates"
= "docs/templates"
managed.source is resolved relative to the dependency root. managed.target is resolved relative to the consuming repo root. Both paths must be relative, and managed is supported only for direct dependencies declared in the root nodus.toml.
Optional capabilities are still supported:
[[]]
= "shell.exec"
= "high"
= "Run repository checks."
Supported Fields
api_version(optional)name(optional)version(optional)content_rootspublish_rootcapabilities[adapters]adapters.enabled[dependencies][dev-dependencies]dependencies.<alias>.githubdependencies.<alias>.urldependencies.<alias>.pathdependencies.<alias>.tagdependencies.<alias>.branchdependencies.<alias>.revisiondependencies.<alias>.versiondependencies.<alias>.components[[dependencies.<alias>.managed]]dependencies.<alias>.managed.sourcedependencies.<alias>.managed.target
Unknown manifest fields are ignored with warnings.
For a fully commented example manifest, see examples/nodus.toml.
Adapter Selection
Nodus emits outputs only for the selected adapters. It resolves that selection in this order:
- Explicit
--adapter <agents|claude|codex|cursor|opencode>flags onnodus addornodus sync - Persisted
[adapters] enabled = [...]innodus.toml - Detected repo roots:
.agents/=> Agents.claude/=> Claude.codex/=> Codex.cursor/=> Cursor.opencode/orAGENTS.md=> OpenCode
- Interactive prompt on a TTY
- Error with guidance in non-interactive environments
When Nodus resolves adapters from flags, detection, or a prompt, it writes [adapters] enabled = [...] into nodus.toml so later sync, doctor, and CI runs stay deterministic.
Package Discovery
Nodus validates and discovers package content from the repo root and any
configured content_roots by looking for these folders inside each discovery
root:
skills/<id>/SKILL.md=> skillagents/<id>.md=> agentrules/<id>.*=> rulecommands/<id>.*=> command
When you run Nodus in a repo root, those folders are treated as package source
for consumers of that repo. By default, Nodus does not mirror the root
project's own discovered skills/, agents/, rules/, or commands/ into
managed runtime folders like .codex/ or .claude/; set publish_root = true
to opt into publishing the root project's discovered assets alongside resolved
dependencies. Artifact ids must remain unique per kind across all discovery
roots.
Package validity rules:
- A dependency repo must contain at least one discovered
skills/,agents/,rules/, orcommands/entry across the repo root plus any configuredcontent_roots, or declare at least one dependency innodus.toml - Other files and directories are allowed and ignored
skills/entries must be directories- Each skill must contain
SKILL.mdwith YAML frontmatter containing:namedescription
agents/entries must be.mdfilesrules/andcommands/entries must be files
Commands
nodus add
By default, Nodus resolves the latest Git tag, writes that tag into nodus.toml, and immediately runs a normal nodus sync.
You can still pin a specific tag explicitly:
Or track a specific branch or exact commit:
You can explicitly choose one or more adapters:
You can also restrict the dependency to specific component kinds:
You can also override the shared repository store root for this command:
Behavior:
- accepts a full Git URL or a GitHub shortcut like
WendellXY/nodus - infers the dependency alias from the repo name
- fetches a shared bare mirror into the shared store root
- materializes a shared checkout for the resolved revision under the shared store root
- resolves the latest tag when no Git selector is provided
- writes either
tag,branch, orrevisionintonodus.toml - validates the discovered package layout or dependency wrapper manifest
- creates or updates
nodus.toml - records only the direct dependency you added in the caller manifest
- lets the normal sync flow recursively resolve dependencies declared by the remote repo's
nodus.toml - persists adapter selection when it is inferred or explicitly provided
- persists dependency component selection when
--componentis provided
Example:
nodus init
Creates a minimal nodus.toml plus skills/example/SKILL.md.
nodus info
Displays resolved package metadata without modifying the current project.
Examples:
Behavior:
- accepts a dependency alias from the current repo, a local package directory, a full Git URL, or a GitHub shortcut like
owner/repo - resolves a direct dependency alias using the source pinned in the current repo's
nodus.toml - inspects local package directories directly when no Git ref override is provided
- resolves the latest Git tag when inspecting a Git reference without
--tagor--branch - falls back to the default branch when a Git repository has no tags
- prints the resolved source, package root, selected components, discovered artifact ids, dependencies, adapters, and declared capabilities
nodus remove
Removes one dependency from nodus.toml and runs the normal sync flow to update
nodus.lock and prune managed runtime files. The package argument accepts either the
dependency alias or a repository reference like owner/repo.
nodus outdated
Checks configured dependencies from nodus.toml, including [dev-dependencies], for newer upstream tags or branch head changes.
Behavior:
- tagged Git dependencies are compared against the newest available tag in the shared mirror
- branch Git dependencies are compared against the currently locked revision in
nodus.lock - path dependencies are reported as local paths and are never marked outdated
nodus update
Updates configured dependencies from nodus.toml, including [dev-dependencies], and then runs the normal sync flow.
Behavior:
- tagged Git dependencies are rewritten to the newest available tag
- branch Git dependencies keep their branch pin, refresh to the latest branch head, and update the optional semantic
versionfield when present - path dependencies are left as local paths and included in the normal sync pass
--allow-high-sensitivitymirrorsnodus syncfor projects that already opt into high-sensitivity capabilities
nodus relay
Relays edits from managed runtime outputs like .codex/, .claude/, .cursor/, .agents/, and .opencode/ back into a maintainer-owned local checkout of the direct Git dependency.
Behavior:
- works only for direct Git dependencies from
nodus.toml - requires a current
nodus.lockand uses the locked snapshot as the relay baseline - persists maintainer linkage in
.nodus/local.toml - accepts multiple dependencies in one invocation and relays each one using its persisted link
--via <adapter>persists a preferred adapter hint in.nodus/local.tomlwhen relay metadata should remember which adapter to treat as canonical; aliases:--relay-via,--prefer--repo-path <path>still applies to exactly one dependency, because each relay link points at one maintainer checkout- writes
.nodus/.gitignoreso the local relay config stays untracked - validates that the linked checkout is a Git repo whose
originmatches the dependency URL - writes only changed source files into the linked checkout; it does not commit or push
- with
--watch, keeps polling the managed outputs and relays new edits automatically until you stop the command; multi-dependency watch uses each dependency's persisted relay link - fails when managed variants disagree or when both the linked source and managed output changed since the locked baseline
Example:
nodus sync
Resolves the root project plus configured dependencies, recursively follows nested dependencies declared in dependency manifests, snapshots their discovered content, writes nodus.lock, and emits managed runtime outputs for resolved dependencies plus the root project when publish_root = true.
Options:
--store-path <path>: override the shared repository store root--locked: fail ifnodus.lockwould change--frozen: install exact Git revisions fromnodus.lockand fail if the lockfile is missing or stale--allow-high-sensitivity: allow packages that declarehighsensitivity capabilities--adapter <agents|claude|codex|cursor|opencode>: override and persist adapter selection for this repo
When a dependency has a relay link in .nodus/local.toml, sync fails instead of overwriting pending managed edits that have not been relayed yet.
nodus doctor
Checks that:
- the root manifest parses
- shared dependency checkouts exist in the shared store root
- shared repository mirrors exist in the shared store root with the expected origin URL
- discovered layouts are valid
- Git dependencies are at the expected locked revision
nodus.lockis up to date- managed file ownership entries are internally consistent
- no unmanaged-file collisions would block sync
Managed Files
Nodus only manages files it wrote itself.
Managed files are tracked in nodus.lock. During sync, Nodus:
- writes or updates managed files
- removes stale managed files that are no longer desired
- refuses to overwrite existing unmanaged files
- refuses to overwrite pending relay edits for dependencies linked through
.nodus/local.toml
Lockfile and Store
nodus.lock records:
- dependency alias
- source kind (
pathorgit) - source URL or path
- requested tag
- exact Git revision
- content digest
- selected dependency components, when narrowed from the package default
- discovered skills / agents / rules / commands
- declared capabilities
- managed runtime ownership entries
Resolved packages are snapshotted under:
<store-root>/store/sha256/<digest>/
Sync emits from those snapshots rather than directly from mutable working trees.
Shared Store
Shared dependency state uses three on-disk locations:
- Shared remote mirrors live under
<store-root>/repositories/<repo-name>-<url-hash>.git - Shared checkouts live under
<store-root>/checkouts/<repo-name>-<url-hash>/<rev>/ - Shared content-addressed snapshots live under
<store-root>/store/sha256/<digest>/
This keeps fetched repositories, materialized checkouts, and package snapshots shared across projects. Project-specific state stays limited to each repo's lockfile and emitted runtime outputs.
Runtime Output Mapping
Current adapter behavior:
- Nodus emits only the selected adapters for the repo
- Nodus filters each dependency's own exported components before adapter-specific emission
- If multiple adapter roots are already present, Nodus installs all detected adapters
- Agents: discovered skills are copied to
.agents/skills/<skill-id>_<source-id>/ - Agents: discovered commands are copied to
.agents/commands/<command-id>_<source-id>.md - Claude: discovered skills are copied to
.claude/skills/<skill-id>_<source-id>/ - Claude: discovered agents are copied to
.claude/agents/<agent-id>_<source-id>.md - Claude: discovered commands are copied to
.claude/commands/<command-id>_<source-id>.md - Claude: discovered rules are copied to
.claude/rules/<rule-id>_<source-id>.md - Codex: discovered skills are copied to
.codex/skills/<skill-id>_<source-id>/ - Cursor: discovered skills are copied to
.cursor/skills/<skill-id>_<source-id>/ - Cursor: discovered commands are copied to
.cursor/commands/<command-id>_<source-id>.md - Cursor: discovered rules are copied to
.cursor/rules/<rule-id>_<source-id>.mdc - OpenCode: discovered skills are copied to
.opencode/skills/<skill-id>_<source-id>/ - OpenCode: discovered agents are copied to
.opencode/agents/<agent-id>_<source-id>.md - OpenCode: discovered commands are copied to
.opencode/commands/<command-id>_<source-id>.md - OpenCode: discovered rules are copied to
.opencode/rules/<rule-id>_<source-id>.md
For managed directories and files, <source-id> is a short deterministic suffix:
- Git dependencies use the first 6 characters of the locked commit SHA
- Root and local-path packages use the first 6 characters of the package content digest
In nodus.lock, managed runtime outputs are tracked by stable logical roots such as .agents/skills/<skill-id>, .agents/commands/<command-id>.md, .claude/skills/<skill-id>, .codex/skills/<skill-id>, .cursor/rules/<rule-id>.mdc, and .opencode/commands/<command-id>.md. During sync and doctor, Nodus expands each logical path back to the concrete suffixed directory or file using the locked package source.
For each selected runtime root, Nodus also writes a managed .gitignore file that ignores both itself and the generated runtime outputs inside that root.
Development
Run the verification suite: