← 返回
未分类 中文

Zouroboros Memory

Production-grade persistent memory for AI agents. Hybrid SQLite + vector search, decay classes, episodic memory, cognitive profiles, and MCP server.
面向AI智能体的高性能持久化记忆系统,混合SQLite与向量搜索,支持衰减类、情景记忆、认知画像以及MCP服务器。
marlandoj marlandoj 来源
未分类 clawhub v3.0.0 1 版本 100000 Key: 无需
★ 1
Stars
📥 395
下载
💾 0
安装
1
版本
#latest

概述

Usage

Install: npm install zouroboros-memory

CLI

npx zouroboros-memory --help
npx zouroboros-memory init
npx zouroboros-memory store --entity user --key name --value "Alice" --decay permanent
npx zouroboros-memory search "project preferences" --limit 5
npx zouroboros-memory stats

MCP Server

Add to your .mcp.json:

{
  "servers": {
    "memory": {
      "command": "npx",
      "args": ["zouroboros-memory-mcp", "--db-path", "~/.zouroboros/memory.db"]
    }
  }
}

Programmatic API

import { init, storeFact, searchFacts, searchFactsHybrid, getStats } from 'zouroboros-memory';
import type { MemoryConfig } from 'zouroboros-memory';

const config: MemoryConfig = {
  enabled: true,
  dbPath: '~/.zouroboros/memory.db',
  vectorEnabled: false,
  ollamaUrl: 'http://localhost:11434',
  ollamaModel: 'nomic-embed-text',
  autoCapture: false,
  captureIntervalMinutes: 30,
  graphBoost: true,
  hydeExpansion: false,
  decayConfig: { permanent: Infinity, long: 365, medium: 90, short: 30 },
};

init(config);

// Store a fact
await storeFact({ entity: 'user', key: 'preference', value: 'dark mode' }, config);

// Keyword search
const results = searchFacts('dark mode', { limit: 5 });

// Hybrid search (RRF fusion of keyword + vector)
const hybridResults = await searchFactsHybrid('user preferences', config, { limit: 10 });

MCP Tools

ToolDescription
-------------------
memory_storeStore a fact with optional decay class
memory_searchKeyword or hybrid search
memory_episodesCreate/search episodic memories
cognitive_profileGet/update entity cognitive profiles
memory_graphQuery entity relationship graph
memory_proceduresQuery stored workflow procedures
memory_statsDatabase statistics
memory_deleteDelete a fact by ID
memory_pruneRemove expired facts

Decay Classes

ClassTTL
------------
permanentNever expires
long365 days
medium90 days (default)
short30 days

版本历史

共 1 个版本

  • v3.0.0 当前
    2026-05-03 10:47 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,234 📥 269,143
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 832 📥 301,788
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,392 📥 322,064