By ruvnet
AgentDB Marketplace: vector memory, episodic recall, causal graph, RL routing, and advanced retrieval — all backed by the agentdb npm package
Trending marketplaces
7-day visitors to each marketplace page
npx claudepluginhub ruvnet/agentdbAgentDB's own standalone MCP server (npx agentdb mcp start) for Claude Code: vector memory, reflexion episodes, skills, causal edges and learning tools, plus a mod that keeps secrets out of memory and refuses destructive admin tools unless enabled. Not the ruflo-agentdb plugin, which reaches AgentDB through ruflo's MCP server; the two can be installed side by side.
Foundation plugin for AgentDB — pattern store, search, stats. Required by other agentdb-* plugins.
Episodic replay (Reflexion) + skill library for AgentDB. Adds /remember, /recall, and a curator agent for nightly consolidation.
Causal graph + hierarchical memory. Adds /link, /explain-link, and an investigator agent for root-cause traversal. Includes the delete tools shipped in agentdb 3.0.0-alpha.13.
RL routing + Thompson Sampling bandit for AgentDB. 9 algorithms (Q-Learning, SARSA, DQN, PPO, Actor-Critic, Policy Gradient, Decision Transformer, MCTS, Model-Based RL); /learn-task, /route-task.
Graph operations on AgentDB — Cypher execution, k-hop traversal, hyperedge search.
Advanced retrieval for AgentDB — MMR diversity rerank, explainable recall, metadata filters, hybrid (BM25 + dense) search.
A single-file cognitive container — vectors, indexes, learning state, and a cryptographic audit trail in one .rvf. Self-learning search improves up to 36% from feedback alone, with no manual tuning. Runs in Node, the browser, edge runtimes, and offline.
Building agents that remember? Explore the wider ecosystem.
Explore Cognitum One · Try ruOS, an agentic desktop in your browser.
Most vector databases store embeddings and call it done. AgentDB watches which results your agent actually used, learns from that signal, and ranks the next query better. The bandit underneath also picks the right RL algorithm, the right compression tier, and the right pattern weighting on its own — so the database itself gets sharper while you focus on the agent.
The name: a database that thinks like an agent — episodic memory, skill library, causal reasoning, and a learning loop, all in one file. Built by
rUvon theruvectorRust engine.
Self-Learning Vector Memory
Agent ──► AgentDB (.rvf) ──► HNSW search ──► top-k results
│ │
▼ ▼
recordFeedback(id, reward) ◄── agent uses some, ignores rest
│
▼
Bandit re-tunes ranking / RL choice / compression ──► next query is smarter
3 lines to self-learning search:
const backend = await SelfLearningRvfBackend.create({ learning: true, storagePath: "./my.rvf" }); const results = await backend.searchAsync(query, 10); // search backend.recordFeedback(results[0].id, 0.9); // learn — next search is smarter
Node.js 20.9.0 or newer is required, matching the patched sharp runtime used by local Transformers embeddings and better-sqlite3 12. Node 18 is no longer supported.
There are three ways to use AgentDB depending on what you're building. Pick whichever matches your stack:
| npm library | CLI | MCP server | |
|---|---|---|---|
| What you get | TypeScript / JS API for any Node app | agentdb binary, scriptable from any shell | 41 tools callable from Claude Code, Cursor, Cline, etc. |
| Install | npm i agentdb | npx agentdb … (no install) | claude mcp add agentdb -- npx agentdb mcp start |
| Best for | Embedding the engine in your own code | Quick experiments, CI scripts, ad-hoc memory | Plugging memory + learning into an LLM agent |
npm install agentdb
import { SelfLearningRvfBackend } from 'agentdb/backends/self-learning';
const db = await SelfLearningRvfBackend.create({
dimension: 384,
learning: true,
storagePath: './memory.rvf',
});
// Use your embedding model here; any 384-dim Float32Array works.
const embedding = Float32Array.from({ length: 384 }, (_, i) => Math.sin(i));
await db.insertAsync('doc1', embedding, { text: 'Hello world' });
const hits = await db.searchAsync(embedding, 5);
db.recordFeedback(hits[0].id, 1.0); // it was useful — db gets smarter
7-day visitors to each marketplace page
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.