AgentDB Memory Patterns
Implement persistent memory patterns for AI agents using AgentDB.
Skill by AlphaSaleAidan
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/alphasaleaidan-agentdb-memory-patterns
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
AgentDB Memory Patterns- Description
- Implement persistent memory patterns for AI agents using AgentDB. Includes session memory, long-term storage, pattern learning, and context management. Use when building stateful agents, chat systems, or intelligent assistants.
- License
- MIT
- Instructions
- 336 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: only lowercase letters, digits and single hyphens allowed
- name: "AgentDB Memory Patterns" does not match folder "agentdb-memory-patterns"
Files (2)
- LICENSE
- SKILL.md
SKILL.md (first lines)
# AgentDB Memory Patterns
## What This Skill Does
Provides memory management patterns for AI agents using AgentDB's persistent storage and ReasoningBank integration. Enables agents to remember conversations, learn from interactions, and maintain context across sessions.
**Performance**: 150x-12,500x faster than traditional solutions with 100% backward compatibility.
## Prerequisites
- Node.js 18+
- AgentDB v1.0.7+ (via agentic-flow or standalone)
- Understanding of agent architectures
## Quick Start with CLI
### Initialize AgentDB
```bash
# Initialize vector database
npx agentdb@latest init ./agents.db
# Or with custom dimensions
npx agentdb@latest init ./agents.db --dimension 768
# Use preset configurations
npx agentdb@latest init ./agents.db --preset large
# In-memory database for testing
npx agentdb@latest init ./memory.db --in-memory
```
### Start MCP Server for Claude Code
```bash
# Start MCP server (integrates with Claude Code)
npx agentdb@latest mcp
# Add to Claude Code (one-time setup)
claude mcp add agentdb npx agentdb@latest mcp
```
### Create Learning Plugin
```bash
# Interactive plugin wizard
npx agentdb@latest create-plugin
# Use template directly
npx agentdb@latest create-plugin -t decision-transformer -n my-agent
# Available templates:
# - decision-transformer (sequence modeling RL)
# - q-learning (value-based learning)
# - sarsa (on-policy TD learning)
# - actor-critic (policy gradient)
# - curiosity-driven (exploration-based)
```
## Quick Start with API
```typescript
import { createAgentDBAdapter } from 'agentic-flow/reasoningbank';
// Initialize with default configuration
const adapter = await createAgentDBAdapter({
dbPath: '.agentdb/reasoningbank.db',
enableLearning: true, // Enable learning plugins
enableReasoning: true, // Enable reasoning agents
quantizationType: 'scalar', // binary | scalar | product | none
cacheSize: 1000, // In-memory cache
});
// Store interaction memory
const patternId = await adapter.insertPattern({
id: '',
type: 'pattern',
domain: 'conversation',
pattern_data: JSON.stringify({
embedding: await computeEmbedding('What is the capital of France?'),
pattern: {
user: 'What is the capital of France?',
assistant: 'The capital of France is Paris.',
timestamp: Date.now()
}
}),
confidence: 0.95,
usage_count: 1,
success_count: 1,
created_at: Date.now(),
last_used: Date.now(),
});
// Retrieve context with reasoning
const context = await adapter.retrieveWithReasoning(queryEmbedding, {
domain: 'conversation',
k: 10,
useMMR: true, // Maximal Marginal Relevance
synthesizeContext: true, // Generate rich context
});
```
## Memory Patterns
### 1. Session Memory
```typescript
class SessionMemory {
async storeMessage(role: string, content: string) {
return await db.storeMemory({
sessionId: this.sessionId,
role,
content,
timestamp: Date.now()
});
}
async getSessionHistory(limit = 20) {
return await db.query({
filters: { sessionId: this.sessionId },From AlphaSaleAidan/opus-5-5-x-gpt-skill-tree, MIT.
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 23, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.475score
AgentDB Memory Patterns
agenticdevops
Implement persistent memory patterns for AI agents using AgentDB.
SkillDFreshness: D★ 19Claude Code +9 - 0.352score
AgentDB Memory Patterns
lilinji
Implement persistent memory patterns for AI agents using AgentDB.
SkillBFreshness: B★ 16Claude Code +9 - 0.318score
AgentDB Memory Patterns
anubhavg-icpl
Implement persistent memory patterns for AI agents using AgentDB.
SkillCFreshness: C★ 11Claude Code +9 - 0.304score
AgentDB Memory Patterns
harshvardhankulkarni
Implement persistent memory patterns for AI agents using AgentDB.
SkillBFreshness: BClaude Code +9 - 0.293score
AgentDB Memory Patterns
Manojkumar7671
Implement persistent memory patterns for AI agents using AgentDB.
SkillCFreshness: C★ 1Claude Code +9 - 0.283score
AgentDB Memory Patterns
aegntic
Implement persistent memory patterns for AI agents using AgentDB.
SkillDFreshness: D★ 12Claude Code +9 - 0.277score
AgentDB Memory Patterns
yycholla
Implement persistent memory patterns for AI agents using AgentDB.
SkillCFreshness: CClaude Code +9 - 0.251score
AgentDB Memory Patterns
Geralt1983
Implement persistent memory patterns for AI agents using AgentDB.
SkillDFreshness: D★ 1Claude Code +9
Cite this page
AgentDB Memory Patterns skill. Agent Mart. https://agentmart.dev/skills/alphasaleaidan-agentdb-memory-patterns (last updated 2026-10-24)