Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By speedydevv1v0.0.1MITIn 1 marketplace
Pins the config files your coding agents obey (Claude Code, Codex, Gemini, VS Code, Cursor) and asks again the moment any of them change. Blocks a mid-session settings edit that adds something that runs.
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
hooks, supply-chain, trust, config, claude-code, codex, gemini
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
The trust prompt asks whether you trust a folder. Once, blind.
agent-lock asks whether you trust these exact files, shows you what is in them,
and asks again the moment any of them change.
Claude Code · Codex CLI · Gemini CLI · VS Code · Cursor
$ claude
3 changes in ~/work/keyv since you trusted it (Aug 30)
✗ .claude/settings.json
~ hooks.SessionStart[0].hooks[0].command: "npm run lint" → "node .vscode/setup.mjs"
✗ new file .vscode/setup.mjs 84 KB (runs or configures something)
⚠ new: .claude/settings.json: SessionStart hook with matcher "*" (fires on every start, resume, clear and compact)
⚠ new: .claude/settings.json: "node .vscode/setup.mjs" runs a file inside .vscode/ (.claude → .vscode cross-reference)
⚠ new: .vscode/setup.mjs: obfuscated identifiers (_0x…), 212 occurrences
⚠ new: .vscode/setup.mjs: encoded or unbroken blob of 61440 characters
Files changed since you trusted them.
[a] approve and re-pin
❯ [c] check the changes with claude (opus) first · no tools, empty folder
[i] inspect the changes
[s] safe mode · launch without this folder's settings
[q] quit
Arrows or a letter, Enter picks. check asks the tool you just launched: claude asks Claude, codex asks Codex, gemini asks Gemini. One line comes back, ✓ codex: clear or ✗ claude (opus): no. plus one sentence naming the file, and then the menu is back. The decision is still yours.
That is the shape of the commit that hit the keyv repositories on 4 August 2026: a .claude/settings.json hook and a .vscode/tasks.json task, cross-wired, each launching a dropper hidden in the other tool's folder. git pull, open the folder, type claude, done. The trust dialog had been clicked months earlier.
It cannot tell who made a change, only that the content is no longer what you approved. It tells you at three moments: right after a git pull or git checkout (the git hook prints it under the pull output), when you type the command (the gate, nothing launches until you answer), and mid-session inside Claude Code (the plugin holds the change until you approve it). ~/.agent-lock/log keeps every approval with a timestamp.
Zero dependencies. One node file plus a lib/. Nothing is fetched at runtime, and you can read all of it in an afternoon.
macOS and Linux:
git clone https://github.com/speedydevv1/agent-lock ~/agent-lock
node ~/agent-lock/agent-lock.mjs install
# open a new terminal
agent-lock scan
Windows, in PowerShell or cmd:
git clone https://github.com/speedydevv1/agent-lock "$HOME\agent-lock"
node "$HOME\agent-lock\agent-lock.mjs" install
# open a new terminal
agent-lock scan
install writes a shim for each of claude, codex and gemini into ~/.agent-lock/bin/ and puts that directory first on your PATH, installs a global git hook dispatcher (post-merge / post-checkout warn, every hook name still falls through to the repo's own .git/hooks), and pins your home config after showing it to you. agent-lock uninstall reverses all of it.
How it reaches PATH differs by platform, and so does what a shim is:
| shim | PATH | |
|---|---|---|
| macOS, Linux | one /bin/sh script per tool, which execs the real binary | a line plus three aliases appended to .zshrc and .bashrc |
| Windows | a .cmd per tool, plus the extension-less sh one, because Git Bash and WSL share this home directory and look for exactly that name | the Path value under HKCU\Environment, read and written unexpanded so a %USERPROFILE% in it stays a %USERPROFILE%. No .zshrc, no aliases |
Windows needs nothing installed beyond Node and git. There is no .ps1 shim on purpose: a script on PATH answers to the execution policy, and Restricted is the client default, so PowerShell is sent to the .cmd through PATHEXT like everything else.
scan reads the three trust maps, inventories every folder any of the tools already trusts, and pins the clean ones in one answer. Flagged folders are shown one by one.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub speedydevv1/agent-lock --plugin agent-lockPlugins from other owners that cover similar ground