微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🧠

赋予 AI 真正的长期记忆

Jasper Recall · v0.3.6
ai-agent-memory 安全 A 级 榜单 #1 作者 emberdesire 公开目录收录
下载 2.8k 安装 4 收藏 5.9k 浏览 25
原始页面

简介

本地 RAG 记忆系统,基于 ChromaDB 实现 AI Agent 长期记忆与语义搜索,支持多 Agent 共享与隐私隔离

原始描述

Local retrieval-augmented generation system for AI agents using ChromaDB and sentence-transformers, supporting multi-agent shared memory and privacy controls.

中文使用说明 来自收录源

核心用法

Jasper Recall 是一款专为AI Agent设计的本地RAG(检索增强生成)记忆系统,基于Python生态的ChromaDB向量数据库与sentence-transformers嵌入模型构建,完全离线运行、无需外部API。

三大核心命令

  • recall — 语义搜索历史记忆,支持多集合隔离(private/public/learnings)
  • index-digests — 将Markdown记忆文件切片、嵌入并索引到ChromaDB
  • digest-sessions — 从会话日志提取关键信息生成结构化摘要

多代理记忆共享(v0.3+)

创新性地支持多代理网格(Multi-Agent Mesh):N个代理共享部分记忆,通过[public]/[private]/[learning]标签实现精细化访问控制。主代理拥有完整记忆,沙箱代理仅限shared_memories,学习成果双向同步至agent_learnings集合。

OpenClaw插件集成

提供autoRecall自动记忆注入功能,在每条消息处理前智能召回相关上下文,内置完善的安全过滤(跳过HEARTBEAT、短消息、NO_REPLY等),并可配置minScore阈值与publicOnly沙箱模式。


显著优点

维度 优势
完全本地 嵌入模型(all-MiniLM-L6-v2)与向量数据库均本地运行,零API依赖、零网络延迟、零隐私外泄
隐私优先设计 内置privacy-check主动敏感数据扫描,支持public/private/learnings三级隔离,符合GDPR数据最小化原则
多代理架构 独特的集合隔离机制,解决沙箱代理"需要上下文但不可信"的痛点
轻量易用 单命令npx jasper-recall setup完成Python venv、ChromaDB、CLI配置全流程
安全默认 HTTP服务器强制127.0.0.1,public_only=true默认启用,文档充分警告风险操作

潜在局限

  1. Python依赖重量:ChromaDB+sentence-transformers约200MB,首次下载较重
  2. 嵌入模型局限:384维的MiniLM-L6-v2在复杂语义匹配上弱于商用API(如OpenAI text-embedding-3)
  3. 无加密存储:ChromaDB数据文件以明文存储,敏感场景需额外文件系统加密
  4. HTTP服务器可误配:--host 0.0.0.0可强制暴露,虽文档警告但仍需用户自律
  5. Node.js生态缺失:核心功能依赖Python子进程,跨进程通信带来轻微性能开销

适合人群

  • 个人AI开发者:需要为本地Agent构建长期记忆,拒绝API成本与隐私风险
  • 多Agent系统架构师:需要安全地在主代理与沙箱代理间共享部分知识
  • 隐私敏感场景:医疗、法律、金融等要求数据不出本地的领域
  • OpenClaw/Claude Code用户:寻求深度集成的记忆增强工作流

常规风险

风险 说明 缓解措施
敏感数据泄露 误将private内容标记为public 定期运行privacy-check,共享前--dry-run预览
服务器暴露 误配--host 0.0.0.0导致外部访问 保持默认127.0.0.1,网络层附加防火墙
上下文注入污染 autoRecall引入低相关度记忆 设置minScore >= 0.5,定期清理索引
依赖供应链 Python库漏洞(当前无已知CVE) 定期--doctor --fix更新依赖

技能正文

Jasper Recall - OpenClaw Plugin

Semantic search over indexed memory using ChromaDB. Automatically injects relevant context before agent processing.

Features

  • recall tool — Manual semantic search over memory
  • /recall command — Quick lookups from chat
  • /index command — Re-index memory files
  • Auto-recall — Automatically inject relevant memories before processing

Auto-Recall (The Magic ✨)

When autoRecall is enabled, jasper-recall hooks into the agent lifecycle and automatically searches your memory before every message is processed.

How It Works

┌─────────────────────────────────────────────────────────────┐
│  1. Message arrives from user                               │
│  2. before_agent_start hook fires                           │
│  3. jasper-recall searches ChromaDB with message as query   │
│  4. Results filtered by minScore (default: 30%)             │
│  5. Relevant memories injected via prependContext           │
│  6. Agent sees memories + original message                  │
│  7. Agent responds with full context                        │
└─────────────────────────────────────────────────────────────┘

What Gets Injected

<relevant-memories>
The following memories may be relevant to this conversation:
- [memory/2026-02-05.md] Worker orchestration decisions...
- [MEMORY.md] Git workflow: feature → develop → main...
- [memory/sops/codex-integration-sop.md] Codex Cloud sync...
</relevant-memories>

What's Skipped

Auto-recall won't run for:

  • Heartbeat polls (HEARTBEAT...)
  • System prompts containing NO_REPLY
  • Messages shorter than 10 characters

Configuration

In openclaw.json:

{
  "plugins": {
    "entries": {
      "jasper-recall": {
        "enabled": true,
        "config": {
          "autoRecall": true,
          "minScore": 0.3,
          "defaultLimit": 5,
          "publicOnly": false
        }
      }
    }
  }
}

Options

Option Type Default Description
enabled boolean true Enable/disable plugin
autoRecall boolean false Auto-inject memories before processing
minScore number 0.3 Minimum similarity score (0-1) for auto-recall
defaultLimit number 5 Default number of results
publicOnly boolean false Only search public memory (sandboxed agents)

Score Tuning

  • minScore: 0.3 — Include loosely related memories (more context, may include noise)
  • minScore: 0.5 — Only moderately relevant (balanced)
  • minScore: 0.7 — Only highly relevant (precise, may miss useful context)

Tools

recall

Manual semantic search over memory.

Parameters:

  • query (string, required): Natural language search query
  • limit (number, optional): Max results (default: 5)

Example:

recall query="what did we decide about the API design" limit=3

Returns: Formatted markdown with matching memories, scores, and sources.


Commands

/recall <query>

Quick memory search from chat.

/recall worker orchestration decisions

/index

Re-index memory files into ChromaDB. Run after updating notes.

/index

RPC Methods

For external integrations:

recall.search

{ "query": "search terms", "limit": 5 }

recall.index

Re-index memory files (no params).


Requirements

  • recall command in ~/.local/bin/
  • ChromaDB index at ~/.openclaw/chroma-db
  • Python venv at ~/.openclaw/rag-env

Installation

npx jasper-recall setup

This sets up:

  1. Python venv with ChromaDB + sentence-transformers
  2. recall, index-digests, digest-sessions scripts
  3. Initial index of memory files

When Auto-Recall Helps

✅ Great for:

  • Questions about past decisions ("what did we decide about X?")
  • Following up on previous work ("where were we with the worker setup?")
  • Context about people, preferences, projects
  • Finding SOPs and procedures

⚠️ Less useful for:

  • Brand new topics with no memory
  • Simple commands ("list files")
  • Real-time data (weather, time)

Sandboxed Agents

For agents processing untrusted input, use publicOnly:

{
  "jasper-recall": {
    "config": {
      "publicOnly": true,
      "autoRecall": true
    }
  }
}

This restricts searches to memory/shared/ and public-tagged content, preventing leakage of private memories.


Links

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

其他来源收录

同一技能在不同目录的原始页面:

标签

raglocal-aiagent-memorychroma-dbsemantic-searchprivacy-firstmulti-agentvector-databaseopenclaw-pluginoffline-first

同类 Skill