/agentdb:agentdb-setup-diagnosticsfrom agentdb
Sets up and diagnoses the agentdb plugin and its MCP server: checks connection status, active profile, database contents, and why tools are missing or calls are refused.
Ships in agentdb. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run /agentdb-guard status: it reports the guard's modes and how many agentdb tools are connected. No tools means the server did not start; check claude mcp list for plugin:agentdb:agentdb and its error. The server runs npx -y agentdb@<plugin version> mcp start, so the first start downloads the package and needs network access and Node 18 or later.
agentdb_capabilities() (read-only, agentdb 3.1.0) reports the native accelerator capabilities and the backend in use: the vector backend (ruvector native, rvf or stub), the SQL driver, and the embedding model and dimension. A stub vector backend or a fallback SQL driver explains slow or low-quality search.
agentdb_stats(detailed: true): table counts, storage, performance.db_stats(): record counts.agentdb_pattern_stats(): patterns, success rates, top task types.learning_metrics(): RL session success rates and rewards.An empty database is normal on first use. Data lives in AGENTDB_PATH (the db_path option), else ./agentdb.db in the directory Claude Code started the server from, so a different project directory means a different database.
The server only lists the tools its profile allows (mcp_profile option, env AGENTDB_MCP_PROFILE):
| Profile | Tools |
|---|---|
readonly / retrieval | search, stats, recall, predict |
learning (default, also when empty) | the above plus memory writes, reflexion, skills, causal edges, RL and pattern/skill feedback, agentdb_capabilities |
admin | everything, including agentdb_init, agentdb_delete, agentdb_delete_batch, agentdb_clear_cache |
mcp_allow adds named tools to a profile (an admin-only tool named there is exposed too); mcp_deny removes them in any profile. A hidden tool called anyway returns "not permitted by the active AgentDB capability policy". An unknown profile name stops the server from starting.
The plugin's mod refuses, before the server sees them:
secret_guard: enforce default, notify, off). /agentdb-guard scan <text> names the rule a text trips, never the value.agentdb_init with reset: true (it drops every table in the open database), unless allow_destructive is on. Using them takes both exposing them (mcp_profile=admin, or naming them in mcp_allow) and allow_destructive./plugin configure agentdb@agentdb (or claude plugin configure agentdb), then restart the session so the server restarts with the new environment.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ruvnet/agentdb --plugin agentdb3 skills in this plugin
/agentdb-reflexion-learningLearn from outcomes with AgentDB — store reflexion episodes with a self-critique, turn what worked into skills, report pattern and skill outcomes for reward-aware recall, record causal edges and RL feedback, and retrieve past failures before retrying. Use after a task succeeds or fails, when the user says "learn from this" or "don't make that mistake again", or before retrying something that failed./agentdb-vector-memoryStore and recall memory with AgentDB's own MCP server — semantic facts (agentdb_insert/agentdb_search), reasoning patterns (agentdb_pattern_store/agentdb_pattern_search) and certified recall. Use when the user says "remember this", "save this for later", "what do we know about X", or before starting a task that may have prior context.Other plugins' skills for the same job