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

Claw Recall

Claw Recall · v2.1.0
安全 unknown 级 作者 rodbland2021 公开目录收录
993 下载 1 安装 2.6k 收藏 0 浏览

简介

Claw Recall

原始描述

Searchable conversation memory that survives context compaction. Indexes session transcripts into SQLite with full-text and semantic search so your agent can...

通过你的 Agent 添加

安装目录:claw-recall/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/claw-recall/
Codex CLI~/.codex/skills/claw-recall/
DeepSeek Harness~/.agents/skills/claw-recall/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: claw-recall description: "Persistent, searchable memory for AI agents. Indexes conversation transcripts into a SQLite database with full-text and semantic search. Recovers context after compaction, searches across multiple agents, and captures external sources (Gmail, Google Drive, Slack). Use when: (1) recovering context after compaction, (2) searching past conversations, (3) finding what another agent discussed, (4) capturing insights for cross-agent knowledge sharing. NOT for: real-time chat monitoring, replacing MEMORY.md for preferences/config, or storing secrets." metadata: { "openclaw": { "emoji": "🧠", "requires": { "bins": ["python3"] }, "tags": ["memory", "search", "recall", "conversation", "context", "compaction", "multi-agent"], "homepage": "https://github.com/rodbland2021/claw-recall", "community": "https://discord.gg/4wGTVa9Bt6" } }

Claw Recall — Persistent, Searchable Memory for AI Agents

When context compaction erases what your agent was just working on, Claw Recall brings it back.

The Problem

AI agents forget. Context compaction drops critical decisions, cross-session knowledge vanishes, and long conversations push early context out of the window. If you run multiple agents, they can't access each other's conversations at all.

What Claw Recall Does

  • Post-compaction recovery: Get the full transcript from before compaction wiped your context
  • Cross-agent search: Any agent can search any other agent's conversations
  • Unified search: Conversations, captured thoughts, Gmail, Google Drive, and Slack in one query
  • Hybrid search: Keyword (FTS5) + semantic (OpenAI embeddings) with automatic detection
  • Self-hosted: Your data stays on your machine. No cloud, no subscription, no vendor lock-in.

Installation

Claw Recall is an MCP server. Install the Python package, then connect it to your agent.

git clone https://github.com/rodbland2021/claw-recall.git
cd claw-recall
pip install -r requirements.txt
python3 -m claw_recall.indexing.indexer --source ~/.openclaw/agents-archive/ --incremental

Full setup guide: https://github.com/rodbland2021/claw-recall#quick-start

Connect via MCP (OpenClaw)

Add to your OpenClaw config (~/.openclaw/openclaw.json or agent config):

{
  "mcpServers": {
    "claw-recall": {
      "command": "python3",
      "args": ["-m", "claw_recall.api.mcp_stdio"],
      "env": { "PYTHONPATH": "/path/to/claw-recall" }
    }
  }
}

Connect via MCP (Claude Code)

Add to ~/.claude.json:

{
  "mcpServers": {
    "claw-recall": {
      "command": "python3",
      "args": ["-m", "claw_recall.api.mcp_stdio"],
      "env": { "PYTHONPATH": "/path/to/claw-recall" }
    }
  }
}

Remote agents (SSE)

Start the SSE server on the Claw Recall machine, then connect from anywhere:

python3 -m claw_recall.api.mcp_sse
claude mcp add --transport sse -s user claw-recall "http://your-server:8766/sse"

MCP Tools Reference

Primary Tools (use these most)

search_memory — The main search tool. Searches ALL sources in one call: conversations, captured thoughts (Gmail, Drive, Slack), and markdown files.

search_memory query="what did we decide about the API" [agent=butler] [days=7]

Optional params: agent (filter by agent name), days (limit to recent), force_semantic (use embeddings), force_keyword (use FTS5 only), convos_only, files_only, limit.

browse_recent — Full transcript of the last N minutes. The go-to tool for context recovery after compaction.

browse_recent [agent=kit] [minutes=30]

Returns the complete conversation with timestamps. Use this FIRST after any context reset.

capture_thought — Save an insight, decision, or finding so any agent can find it later.

capture_thought content="SQLite WAL mode requires checkpoint for readers to see writes" [agent=kit]

Secondary Tools

Tool Purpose
search_thoughts Search captured thoughts only (usually search_memory is better)
browse_activity Session summaries across agents for a time period
poll_sources Trigger Gmail/Drive/Slack polling on demand
memory_stats Database statistics (indexed sessions, messages, embeddings)
capture_source_status Check external source capture health

When to Use Each Tool

Situation Tool Example
Just restarted / lost context browse_recent "What was I working on?"
Looking for a past decision search_memory "What did we decide about pricing?"
Need another agent's work search_memory with agent= "What did atlas find about the schema?"
Found something worth sharing capture_thought Save a reusable insight
Checking if something was discussed search_memory with days= "Did we talk about X this week?"
External source check poll_sources Trigger Gmail/Drive/Slack re-scan

How It Works

Session Files (.jsonl) → Indexer → SQLite DB (FTS5 + vectors) → MCP Tools
                                        ↑
Gmail / Drive / Slack → Source Poller ───┘

All data is stored locally in a SQLite database. Keyword search uses FTS5 (zero API keys). Semantic search uses OpenAI embeddings (requires OPENAI_API_KEY in .env).

Requirements

  • Python 3.10+
  • SQLite 3.35+ (bundled with Python)
  • OpenAI API key (optional, only for semantic search)

Links

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

标签

没有标签

同类 Skill