ClaudeCodeMod

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.

In Claude Code
/plugin marketplace add ruvnet/ruflo
/plugin install ruflo-aidefence@ruflo
Open the repo

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

The As a mod section of the ruflo-aidefence README: a guard that refuses an aidefence_learn sample holding a key, token or password; the /aidefence-mod command; the status file the console reads; and the guard option.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • tool.callAround a tool call, where it can hold one
  • command.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

Same repo on other shelves

Skills

  1. 5868rufloruvnet/ruflo4.2k
  2. 9607swarm-orchestrationruvnet/ruflo2.1k
  3. 11420agent-arch-system-designruvnet/ruflo1.4k

MCP servers

  1. 7Claude Flowruvnet/ruflo馃寠 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated81.3k

Marketplaces

  1. 9ruvnet/rufloruvnet/ruflo馃寠 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated82.3k

Other mods in Safety

ruflo-autopilotruvnetHolds a commandRefuses a ruflo autopilot log or lesson that holds a key, token, or password, and an autopilot config that raises the loop past its iteration cap.ruflo-daaruvnetHolds a commandRefuses a call to ruflo's dynamic agent tools, the daa_ family, when its input holds a key, token, or password, and names the kind of secret, never the value.ruflo-docsruvnetHolds a commandRefuses a ruflo documentation memory write, or a document worker dispatch, when it holds a key, token, or password, and names the kind of secret, not the value.ruflo-goalsruvnetHolds a commandRefuses a ruflo goal, horizon, research, or dossier write, or a task, that holds a key, token, or password, and a dossier note that holds an SSN-shaped number.ruflo-rag-memoryruvnetHolds a commandRefuses a write to ruflo's vector memory, memory_store or an AgentDB store, when it holds a key, token, private key, or password, so it never reaches the store.ruflo-ruvllmruvnetHolds a commandRefuses a ruflo local-model training or index call when its input holds a key, token, or password, so credentials are never trained into an adapter.ruflo-rvfruvnetHolds a commandRefuses a ruflo memory save, session save, or transfer that holds a key, token, or password, so an RVF export or saved session never carries it off the machine.ruflo-security-auditruvnetHolds a commandRefuses to store a ruflo security audit finding that quotes a live secret in a security, audit, CVE, or findings memory namespace, and never repeats the secret.personaomeerdvrnHolds a commandSets the role Claude works for, such as UI/UX Designer or QA Engineer, shows it under the prompt, and refuses edits and shell commands outside that role.outboxcharlie947Holds a commandHolds each message Claude tries to send by WhatsApp, email, or Slack in a pane with its text, recipients, and attachments, until you press Send, Edit, or Hold.guardrailsmishgoldenbergHolds a commandBlocks commands such as rm -rf, mass kubectl deletes, or a force push from clickable rules with presets, and checks scripts Claude wrote before they run.loop-breakermishgoldenbergNotices Claude going in circles, the same command failing 3 times or the same code rewritten 3 times in a turn, tells you, and tells Claude to stop and rethink.
All 73 in Safety