Skip to content
nomadv0.62.6

Claude Code plugin

claude-nomad ships an optional Claude Code plugin. It puts the everyday nomad commands one slash away inside a Claude Code session, and warns you at session start when your synced setup has drifted. /nomad:sync and /nomad:push run in preview mode; a real sync or push needs a terminal (see below). The plugin is a thin convenience layer: it shells out to the nomad binary and adds no sync logic of its own.

The plugin runs the nomad CLI under the hood, so install the CLI before using the plugin:

Terminal window
npm i -g claude-nomad

Minimum CLI version: >= 0.35.0. The plugin versions independently from the CLI (no lockstep coupling), but it calls recent subcommands (nomad diff, nomad clean --backups) and relies on the doctor glyph output format that the session-start hook greps. A CLI older than 0.35.0 makes some commands error or produce no output. /nomad:sync additionally needs a CLI that ships the sync subcommand (>= 0.57.0); on an older CLI that one command errors while the rest keep working. Run npm i -g claude-nomad to update to the latest version if needed.

If nomad is not installed, the slash commands fail with a command not found error from the shell, and the session-start check stays silent. So you can enable the plugin everywhere without it complaining on machines that do not use nomad.

Add the marketplace catalog, then install the plugin from it:

/plugin marketplace add funkadelic/claude-nomad
/plugin install nomad@claude-nomad

If you install it mid-session, run /reload-plugins to activate the commands right away.

To try it for a single session without installing, point Claude Code at the plugin directory:

Terminal window
claude --plugin-dir ./.claude-plugin/nomad-plugin/

Each command runs the matching CLI subcommand and prints its output back into the session. See the full command reference for what each one does in detail.

Command Runs Notes
/nomad:sync nomad sync --dry-run Preview only: the pull preview, then the push preview (see below).
/nomad:pull nomad pull Accepts --dry-run to preview without applying.
/nomad:diff nomad diff Offline, read-only preview of what a pull would change.
/nomad:push nomad push --dry-run Preview only. A real push must run in a terminal (see below).
/nomad:doctor nomad doctor Read-only health check: symlinks, settings drift, path-map, more.
/nomad:clean nomad clean --backups Prunes the backup cache. Pass --keep <N> to trim recent ones.

A real nomad push runs a secret-scanning pipeline and, on a hit, an interactive recovery menu to redact, allow, or drop the finding. That menu needs a real terminal, which the plugin’s I/O context cannot provide. nomad sync runs that same push pipeline as its second half. So /nomad:push and /nomad:sync are limited to --dry-run. To push or sync for real, open a terminal and run nomad push or nomad sync directly.

When a Claude Code session starts (including --resume, /clear, and after a compaction), the plugin quietly runs nomad doctor and surfaces any warnings or failures into the session. If everything is healthy, it says nothing. The check is read-only, never writes to ~/.claude/, and always lets the session start even if doctor reports a problem, so it can never get in your way.