ClaudeCodeMod

All shelves / Mods / Safety

agentic-flow

By ruvnet

agentic-flow is a Claude Code safety mod by ruvnet.

Refuses an agentic_flow_agent call whose task matches a destructive or exfiltration pattern or passes an API key, and adds a status-line entry for the guard.

DrawsHolds a command

Install

The marketplace name is agentic-flow.

In Claude Code
/plugin marketplace add ruvnet/agentic-flow
/plugin install agentic-flow@agentic-flow
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
3.4.0
Repo stars
838
Last change
2026-11-06

What it can reach

  • Draws in the session
  • Holds a command
  • Sees tool calls
  • Reaches the network or an outside service

Needs Node.js 20+, since the MCP server runs with npx, and Claude Code 2.1.287 or newer for the mod. The first launch downloads the package, longer than Claude Code's default 30-second MCP startup timeout, so the first session can show the server as failed; after the download finishes, run /mcp and reconnect, or raise the timeout with MCP_TIMEOUT=90000 claude. Under the default readonly profile the server does not register agentic_flow_agent at all, so the guard has nothing to check until mcp_profile is learning or admin. guardMode is enforce by default, or notify, or off. Nothing is pre-approved: Claude Code asks before each call. It is a short pattern list, not a sandbox: the same intent in other words gets through. With allow_bypass_permissions on, every agent it spawns runs with bypassPermissions and may use Bash, Write, Edit, WebFetch and WebSearch with no confirmation, so use it only inside a disposable sandbox. From a terminal: claude plugin marketplace add ruvnet/agentic-flow, then claude plugin install agentic-flow@agentic-flow.

The marketplace, agentic-flow, holds only this plugin. It brings the agentic-flow MCP server, ReasoningBank learning and multi-provider routing skills, two agents, and /agentic-flow-status; the mod is the guard on spawning agents. Refusing a risky agent spawn is why this page files it under safety. subagent-wall holds a subagent after a time limit to git, gh, and Markdown or text writes. guardrails-lite holds a read of a secret .env file, a git force-push, and a recursive rm on /, ~, or $HOME. This one judges only calls to agentic_flow_agent, the MCP tool that spawns an agent, and refuses one whose task matches a destructive pattern (a recursive delete of / or home, mkfs, dd to a disk, a fork bomb, DROP DATABASE, a force-push to main) or an exfiltration pattern (curl piped to sh, reading ~/.ssh, cloud credentials or /etc/shadow, sending secrets or .env with curl or nc), or that passes an Anthropic or OpenRouter key as an argument. It fails closed if the check itself errors. The README calls it a short pattern list, not a sandbox, and puts the real boundary in the read-only default, which hides the tool from Claude altogether. Spawned agents get read-only tools unless you turn on allow_bypass_permissions.

Demo

The Security section of the agentic-flow plugin README: nothing is pre-approved, the read-only default profile, spawned agents get read-only tools unless bypass permissions is on, and the guard that refuses agentic_flow_agent calls whose task matches destructive or exfiltration patterns or that pass an API key, with the note that it is a short pattern list, not a sandbox.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • command.runWhen you run its slash command
  • tool.callAround a tool call, where it can hold one

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
ruvnet
Category
Safety
Marketplace
agentic-flow
Repo
ruvnet/agentic-flow
Folder
plugins/agentic-flow
Version
3.4.0
Repo stars
838
Last change
2026-11-06
Language
TypeScript
Files
22

Other mods in Safety

agentdbruvnetHolds a commandRefuses a write to AgentDB memory that holds a key, token, password, or private key, and refuses its destructive admin tools unless you turn them on.cc-askpassGoneToneOpens a password pane when a command Claude runs asks for sudo, ssh, or git credentials, so the password goes to the program and never reaches the model.secret-envtoy-craneHolds a commandOpens a pane for typing an API key into a .env file, shows [hidden] wherever the value appears in tool results, and denies Write and Edit on that key's line.mod-blast-radiusv-amorimHolds a commandHolds a risky Bash command on a card until you choose Run or Cancel, shows what it would change first, and reads your own rules from a JSON file.mod-collision-guardv-amorimHolds a commandPauses a file edit when another open session just edited that file, and asks you to proceed, move to a worktree, cancel, or type an instruction for Claude.secret-guardvumichienHolds a commandHides secret values from your env files and secret-shaped text in tool results, tells Claude to use $NAME instead, and refuses commands that print them.blast-radiusAnthropicHolds a commandHolds a shell command such as rm -rf, a force push, a hard reset, or a migration, shows what it would touch, then asks you to proceed or cancel.merge-gatehamzaferHolds a commandHolds gh pr merge until CI is green and a Codex review has run once, and draws that pull request's status above the prompt.rulebook-guardhamzaferHolds a commandAsks before git commit --amend, an unformatted push, or personal details in notes and commits.bash-guardSingh-APHolds a commandHolds every Bash call, even in bypass mode. Blocks rm -rf on a home or system directory, and asks before a force-push, a hard reset, or a pipe into sh.net-guardSingh-APHolds a commandHolds curl, wget, ssh, scp, git push, and WebFetch, even in bypass mode. Blocks paste sites and request catchers, and asks before data goes anywhere new.file-guardSingh-APHolds a commandHolds writes outside the project and writes into .git, and asks before lockfiles and CI files.
All 73 in Safety