env-sync
Reviewed
at commit 0e4c0dd
New version, not yet reviewed
After each commit the model makes, names the env variables its added lines read that .env.example lacks, with the file and line of each.
0 upvotes
Log in to upvote or save- Made by
- Kerem Gok
- Pinned commit
-
0e4c0dd09165cae2933d79eda6069c6df477137f - What we checked
-
After each git commit Claude makes, reads the commit's diff and tells Claude which environment variables the added lines read that .env.example (or .env.sample/.env.dist) does not list. An optional deny mode, off by default, blocks git commit, push and merge until they are added. It makes no network calls and stores only its settings.
Review details
Static review of the source at the pinned commit; not run. Registers session.start (registers the /env-sync command), command.run (status, on, off, mode note|deny), tool.call on Bash, turn.complete and prompt.submit. Around a Bash command that matches git commit it runs git rev-parse --show-toplevel, git rev-parse HEAD and git show --format= --unified=0 --no-color --no-ext-diff HEAD (10 s timeouts), scans added lines with regular expressions for env reads (process.env, os.environ, getenv, env::var and similar), reads the root .env.example/.env.sample/.env.dist with $.fs.read and appends a note to the tool result naming the variable, file and line. It never reads the variables' values and tells Claude to add placeholders, never real secrets. Open findings are re-checked by reading the flagged source file and the reference file. Deny mode, switched with /env-sync mode deny, returns a deny for commit, push and merge while a finding is open and narrows commits to staged files via git diff --cached. The commit directory is derived from cd and git -C in the command text; shell expansions make it give up with a logged error. Uses $.store, $.sidebar, $.ui.log. No model calls, no network, no writes. The two unbundled files (eslint.config.js, Makefile) are developer tooling and not loaded.
- 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
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/env-sync/)