ClaudeCodeMod

All shelves / Mods / Safety

agentdb

By ruvnet

agentdb is a Claude Code safety mod by ruvnet.

Refuses 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.

Holds a command

Install

The marketplace name is agentdb.

In Claude Code
/plugin marketplace add ruvnet/agentdb
/plugin install agentdb@agentdb
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.6.0
License
MIT
Repo stars
97
Last change
2026-11-06

What it can reach

  • Holds a command
  • Sees tool calls

Needs Node 18 or later; the first start downloads the package and, in the author's testing, took about 30 seconds on a cold cache, right at Claude Code's default 30-second MCP startup timeout, so the first session can show the server as failed: warm the cache once, reconnect with /mcp after the download finishes, or raise the timeout with MCP_TIMEOUT=90000 claude. Set options with /plugin configure agentdb@agentdb, then restart the session so the server picks them up. secret_guard is enforce by default; notify lets a write through with a toast, and off does not check. allow_destructive is false by default, and deleting data takes both exposing the delete tools (mcp_profile=admin, or naming them in mcp_allow) and this option. Inputs too large to screen in full are refused, and a guard that throws or overruns on a guarded call refuses it. The README says the mod is tighten-only, uses no network or processes, and writes no files, and judges only calls to an MCP server named agentdb.

The marketplace, agentdb, also holds agentdb-core, agentdb-memory, agentdb-causal, agentdb-learning, agentdb-graph, and agentdb-search, which add commands and skills that call the server this plugin supplies. This is not the ruflo-agentdb plugin: the README says that one bridges AgentDB through ruflo's MCP server, while this one is AgentDB's own standalone server, npx agentdb mcp start, and they can be installed together. Keeping secrets out of memory is why this page files it under safety. ruflo-agentdb refuses a write to ruflo's agent memory, or a memory import, that holds a private key, token, or key-like value. memory-fork refuses the session's writes into the memory folder. This one judges only calls to its own agentdb server: writes through agentdb_insert, agentdb_pattern_store, reflexion_store, skill_create, causal_add_edge, experience_record, and the feedback tools are screened for private keys, cloud and SaaS keys, JWTs, bearer tokens, URLs with credentials, and credential-named fields with random-looking values, and the refusal never repeats the value. The admin-only tools, agentdb_delete, agentdb_delete_batch, agentdb_pattern_delete, skill_delete, agentdb_clear_cache, and agentdb_init with reset: true, are refused unless allow_destructive is on. Its injection_guard option blocks episode, pattern, and skill writes that aidefence flags as prompt injection.

Demo

The mod section of the agentdb plugin README: hooks/ is a function-hooks module that judges only calls to the agentdb MCP server; the secret guard screens writes for token shapes and credential-named fields with random-looking values and never repeats the value, the destructive guard refuses the admin-only tools unless allow_destructive is on, and a guard that fails closed; it only tightens, uses no network and writes no files.
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

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
agentdb
Repo
ruvnet/agentdb
Folder
plugins/agentdb
Version
3.6.0
License
MIT
Repo stars
97
Last change
2026-11-06
Language
TypeScript
Files
21

Other mods in Safety

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.slopsquat-guardSingh-APHolds a commandHolds a package install and checks the name against its registry, so a hallucinated or typosquatted package does not install.
All 73 in Safety