All shelves / Mods / Safety
ruflo-aidefence
By ruvnet
ruflo-aidefence is a Claude Code safety mod by ruvnet.
Refuses a sample sent to ruflo's AI defence to learn from when it holds a key, token, or password, since learned patterns are stored and replayed.
Holds a command
Install
The marketplace name is ruflo.
/plugin marketplace add ruvnet/ruflo /plugin install ruflo-aidefence@ruflo
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.3.3
- License
- MIT
- Repo stars
- 80064
- Last change
- 2026-10-17
What it can reach
- Holds a command
- Sees tool calls
Claude Code 2.1.287 or later. The guard is on by default; turn it off with the guard option. /aidefence-mod answers locally, with status and scan. The refusal never repeats the secret.
The marketplace name is ruflo. Add ruvnet/ruflo. The plugin is ruflo's safety scanning, PII detection, and prompt injection defense, with threat patterns it learns; the mod is the guard on its aidefence_learn tool. Refusing a sample is why this page files it under safety. secret-shield replaces API keys, tokens, and passwords in tool output with a marker before the model sees them. guardrails-md sends each Bash command to a scoring model and blocks it when the score says it is dangerous. This one does neither: it only refuses a learning sample that holds a secret, because what it learns is kept and replayed. It makes no network call and no model call. It writes a status file that ruflo-console reads. In the source, the deny is returned from a tool.call hook.
Demo

What it hooks into
session.startWhen a session startstool.callAround a tool call, where it can hold onecommand.runWhen you run its slash command/aidefence-mod
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/aidefence-modAIDefence mod: status, scan <text>
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- ruvnet
- Category
- Safety
- Marketplace
- ruflo
- Repo
- ruvnet/ruflo
- Folder
- plugins/ruflo-aidefence
- Version
- 0.3.3
- License
- MIT
- Repo stars
- 80064
- Last change
- 2026-10-17
- Language
- TypeScript
- Files
- 18