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 Lelu-aiv0.3.1MITIn 1 marketplace
Catches risky tool calls before they run, such as recursive deletes of your home directory or force-pushes. A hook checks every tool call, starting in shadow mode that only logs what it would block; it says it runs locally with no account.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
guardrails, safety, data-loss-prevention, secrets, force-push, hooks, shadow-mode, permissions ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code is fast, and sometimes it is fast at the wrong thing. Lelu checks every tool call before it runs and stops the ones you would never have approved:
rm -rf ~/, rm -rf $HOME, sudo rm -fr /, reversed and long-form flags. Lelu expands the command the way the shell would, so it sees the real target, not the text. (benchmark)~/.ssh, ~/.aws/credentials, .env and similar files asks you first, and editing protected files is blocked. Rules match whole file and folder names, so app.environment.ts, docs/setup.ssh.md and .env.example are left alone (details).WebFetch to a site you haven't approved asks you first, and so does piping a download straight into a shell (curl … | sh).It starts in shadow mode: it only records what it would have done, and Claude Code works exactly as before, except that changes to Lelu's own files still ask (why). Run /lelu:status to see what it caught, then /lelu:enforce when you want it to act. Lelu never answers "allow" itself, so Claude Code's own permission prompts and rules keep working as they do today.
Inside Claude Code:
/plugin marketplace add Lelu-ai/lelu
/plugin install lelu@lelu
That's all. No account and no cloud service: decisions are made and logged on your machine, in about 20 ms per tool call.
| Command | What it does |
|---|---|
/lelu:status | Current mode, what Lelu caught, and the latest catches |
/lelu:enforce | Start blocking and asking (runs a fixed command that writes enforce to the mode file; you approve it) |
/lelu:shadow | Back to record-only (writes shadow to the mode file; you approve it) |
/lelu <rule> | Add a rule in plain English, e.g. /lelu never touch the prod database. Rules are saved in policy.local.json in the data directory, so plugin updates keep them. They add to the defaults; they can't remove a default rule. |
The checker is a compiled Go program, so it is not in the plugin folder. When a session starts, hooks/lelu-hook.sh, a short shell script you can read, downloads one file for your OS and CPU (Linux or macOS, amd64 or arm64), about 1.5 MB, from this repo's plugin-claude-code-v<version> release. It checks the file against that release's SHA256SUMS.txt and unpacks it into ~/.lelu/claude-plugin/bin/<version>/.
The download runs in the background, so your session starts straight away. In shadow mode, tool calls go through while it finishes; in enforce mode they wait for it.
It connects only to github.com and release-assets.githubusercontent.com, over HTTPS, once per plugin version. Nothing is uploaded.
The file is built from daemon/ by this workflow, which also publishes a build provenance attestation for each release file. The attestation covers the downloaded .gz file, not the unpacked lelu, so verify the .gz and check that it unpacks to the file you have (use your OS and CPU in the file name):
gh release download plugin-claude-code-v<version> -R Lelu-ai/lelu -p 'lelu-linux-amd64.gz'
gh attestation verify lelu-linux-amd64.gz -R Lelu-ai/lelu
gzip -dc lelu-linux-amd64.gz | cmp - ~/.lelu/claude-plugin/bin/<version>/lelu && echo same
The separate lelu-daemon-<os>-<arch> and lelu-hook-<os>-<arch> files on the release, which install.sh uses, are attested too and can be verified directly.
If the download fails, it retries after 10 minutes. It needs curl or wget, sha256sum or shasum, and gzip.
The plugin stores its ledger, mode, socket, daemon log, your own rules (policy.local.json) and the downloaded checker in
$HOME/.lelu/claude-plugin by default. Set LELU_DATA_DIR to use another
directory. LELU_HOME is accepted as a compatibility alias when
LELU_DATA_DIR is not set.
Build from source and load the plugin straight from your checkout, so nothing is downloaded:
git clone https://github.com/lelu-ai/lelu.git && cd lelu
./plugin-claude-code/install.sh # builds hooks/lelu-hook and bin/lelu-daemon with Go, starts the daemon
claude --plugin-dir ./plugin-claude-code
When hooks/lelu-hook and bin/lelu-daemon exist inside the plugin folder, the launcher uses them instead of the release binaries.
7-day copy clicks
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.
Plugins from other owners that cover similar ground