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.
/plugin marketplace add ruvnet/agentdb /plugin install agentdb@agentdb
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

What it hooks into
session.startWhen a session startstool.callAround a tool call, where it can hold onecommand.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