lockfile-sync
Reviewed
at commit 0e4c0dd
New version, not yet reviewed
Caution: Runs your project's package managers after each commit; bundle and mix evaluate the project's own Gemfile and mix.exs, and the checks may fetch packages from registries.
After each commit the model makes, names the manifests whose dependencies it changed without their lockfile (npm, Composer, Cargo, Go, Python, Bundler, Dart…
0 upvotes
Log in to upvote or save- Made by
- Kerem Gok
- Pinned commit
-
0e4c0dd09165cae2933d79eda6069c6df477137f - What we checked
-
After each git commit Claude makes, it checks whether a changed dependency manifest (package.json, Cargo.toml, go.mod and similar) left its lockfile behind, and tells you and Claude. To be sure, it runs the matching package manager in your project. An optional deny mode blocks commit, push and merge until the lockfile is fixed.
Review details
Static review of the source at the pinned commit; not run. Registers session.start, command.run (/lockfile-sync on|off|mode note|deny), turn.complete, prompt.submit and tool.call for Bash. On a git commit it runs git (rev-parse, show, diff, status, log) via $.process.run, reads manifests and lockfiles with $.fs.read/exists, and for a stale lockfile runs a package manager check with a 60 s limit in the lockfile's directory: npm ci --dry-run --ignore-scripts, pnpm install --frozen-lockfile --lockfile-only --ignore-scripts, bun install --frozen-lockfile --dry-run --ignore-scripts, yarn check (v1 only), composer validate --check-lock --no-plugins, cargo metadata --locked, go mod tidy -diff, uv lock --check, poetry check --lock, pdm lock --check, pipenv verify, bundle lock --print, dart pub get --enforce-lockfile --dry-run, mix deps.get --check-locked (MIX_DEPS_PATH in $TMPDIR/lockfile-sync). Several are given flags that avoid scripts and plugins, but bundle and mix load the project's own Gemfile and mix.exs, which are executable Ruby and Elixir, and cargo, go, dart, uv and pdm can contact package registries or toolchain downloads depending on project config. The README discloses the commands. The commands are fixed argv lists, no shell, and only run when the lockfile and manifest match HEAD. In note mode it only adds a note to the commit's tool result, a note at the next prompt (context on prompt.submit) and a sidebar or log line. In deny mode (off by default, set by the person) it returns a deny for git commit, push and merge while a lockfile is behind. Stores on/off and mode with $.store. Calls no model and makes no network calls itself. Package manager behaviour and project-defined config (.npmrc, Gemfile, mix.exs) were not reviewed.
- What it uses
-
- Reads your prompts: yes
- Sees tool calls: yes
- Blocks or changes tool calls: yes
- Reads or writes files: yes
- Runs programs on your machine: yes
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: yes
After each commit the model makes, names the manifests whose dependencies it changed without their lockfile (npm, Composer, Cargo, Go, Python, Bundler, Dart, Mix).
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/lockfile-sync/)