← 返回 Skills 市场
stefan27-4

DeepRecall

作者 Daniel-Stefan Chitez · GitHub ↗ · v1.0.8
cross-platform ✓ 安全检测通过
444
总下载
1
收藏
0
当前安装
9
版本数
在 OpenClaw 中安装
/install deeprecall
功能描述
Pure-Python recursive memory recall for persistent AI agents. Manager→workers→synthesis RLM loop — no Deno, no fast-rlm, just HTTP calls to any OpenAI-compat...
使用说明 (SKILL.md)

DeepRecall v2 — OpenClaw Skill

Pure-Python recursive memory for persistent AI agents. Implements the Anamnesis Architecture: "The soul stays small, the mind scales forever."

Description

DeepRecall gives AI agents infinite memory by recursively querying their own memory files through a manager→workers→synthesis RLM loop — entirely in Python. No Deno runtime, no fast-rlm subprocess, no vector database. Just markdown files and HTTP calls to any OpenAI-compatible LLM endpoint.

When the agent needs to recall something, DeepRecall:

  1. Scans the workspace for memory files (scoped by category)
  2. Indexes file metadata — headers, topics, dates, people
  3. Manager selects the most relevant files from the index
  4. Workers (parallel) extract exact verbatim quotes from each file
  5. Synthesis combines quotes into a cited, grounded answer

Workers are constrained by anti-hallucination prompts to return only verbatim quotes. The synthesis step cites every claim with (filename:line).

Installation

pip install deep-recall

Or install from source:

git clone https://github.com/Stefan27-4/DeepRecall
cd DeepRecall && pip install .

Dependencies

  • httpx (preferred) or requests — HTTP client for LLM calls
  • PyYAML — config parsing
  • Python ≥ 3.10
  • An LLM provider configured in OpenClaw

v2 breaking change: Deno and fast-rlm are no longer required. The entire RLM loop runs in-process as pure Python.

Quick Start

from deep_recall import recall

result = recall("What did we decide about the project architecture?")
print(result)

API

recall(query, scope, workspace, verbose, config_overrides) → str

The primary entry point. Runs the full manager→workers→synthesis loop.

from deep_recall import recall

result = recall(
    "Find all mentions of budget discussions",
    scope="memory",          # "memory" | "identity" | "project" | "all"
    verbose=True,            # print progress to stdout
    config_overrides={
        "max_files": 5,      # max files the manager can select
    },
)
Parameter Type Default Description
query str (required) What to recall / search for
scope str "memory" File scope — see Scopes
workspace Path | None auto-detect Override workspace path
verbose bool False Print provider, model, file selection info
config_overrides dict | None None Override max_files and other settings

Returns: A string containing the recalled information with source citations, or a [DeepRecall] status message if no files/results were found.


recall_quick(query, verbose) → str

Fast, cheap recall scoped to identity files. Best for simple lookups.

from deep_recall import recall_quick

name = recall_quick("What is my human's name?")

Equivalent to recall(query, scope="identity", config_overrides={"max_files": 2}).


recall_deep(query, verbose) → str

Thorough recall across all workspace files. Best for cross-referencing.

from deep_recall import recall_deep

summary = recall_deep("Summarize all decisions from March")

Equivalent to recall(query, scope="all", config_overrides={"max_files": 5}).


CLI

python deep_recall.py \x3Cquery> [scope]

# Examples
python deep_recall.py "What was the first project we worked on?"
python deep_recall.py "Find budget discussions" all

Scopes

Scopes control which files DeepRecall searches. Narrower scopes are faster and cheaper.

Scope Files Included Speed Cost Use Case
identity SOUL.md, IDENTITY.md, MEMORY.md, USER.md, TOOLS.md, HEARTBEAT.md, AGENTS.md ⚡ Fastest Cheapest "What's my name?"
memory Identity files + memory/LONG_TERM.md + memory/*.md daily logs 🔄 Fast Low "What did we do last week?"
project All readable workspace files (skips binaries, node_modules, .git) 🐢 Slower Medium "Find that config change"
all Identity + memory + project (everything) 🐌 Slowest Highest "Search everything"

File Categories

DeepRecall classifies discovered files into categories:

  • soulSOUL.md, IDENTITY.md — who the agent IS (always in context)
  • mindMEMORY.md, USER.md, TOOLS.md, HEARTBEAT.md, AGENTS.md — compact orientation
  • long-termmemory/LONG_TERM.md — full detailed memories, grows forever
  • daily-logmemory/YYYY-MM-DD.md — raw daily logs
  • workspace — everything else (project files, configs, docs)

Configuration

DeepRecall reads your existing OpenClaw setup — no additional config files needed.

Provider Resolution

Provider, API key, and model are resolved automatically from:

  1. ~/.openclaw/openclaw.json — primary model setting
  2. ~/.openclaw/agents/main/agent/models.json — provider base URLs
  3. ~/.openclaw/credentials/ — cached tokens (e.g. GitHub Copilot)
  4. Environment variables — fallback (ANTHROPIC_API_KEY, OPENAI_API_KEY, GOOGLE_API_KEY, etc. (18+ providers supported, all optional))

Supported Providers (20+)

Anthropic · OpenAI · Google (Gemini) · GitHub Copilot · OpenRouter · Ollama · DeepSeek · Mistral · Together · Groq · Fireworks · Cohere · Perplexity · SambaNova · Cerebras · xAI · Minimax · Zhipu (GLM) · Moonshot (Kimi) · Qwen

Auto Model Pairing

The manager and synthesis steps use your primary model. Workers use a cheaper sub-agent model automatically:

Primary Model Worker Model
Claude Opus 4 / 4.6 Claude Sonnet 4
Claude Sonnet 4 / 4.5 Claude Haiku 3.5
GPT-4o / GPT-4 GPT-4o-mini
Gemini 2.5 Pro Gemini 2.0 Flash
DeepSeek Reasoner DeepSeek Chat
Llama 3.1 70B Llama 3.1 8B

config_overrides

Pass overrides via the config_overrides parameter:

recall("query", config_overrides={
    "max_files": 5,       # max files manager can select (default: 3)
})

Skill Files

File Purpose
deep_recall.py Public API — recall, recall_quick, recall_deep, RLM loop
provider_bridge.py Resolves LLM provider, API key, base URL from OpenClaw config
model_pairs.py Maps primary models to cheaper worker models
memory_scanner.py Discovers and categorises workspace files by scope
memory_indexer.py Builds a structured Memory Index (topics, people, timeline)
__init__.py Package exports

Memory Layout

Recommended workspace structure for the Anamnesis Architecture:

~/.openclaw/workspace/
├── SOUL.md              # Identity — always in context, never grows
├── IDENTITY.md          # Core agent facts
├── MEMORY.md            # Compact index (~100 lines), auto-loaded each session
├── USER.md              # About the human
├── AGENTS.md            # Agent behavior rules
├── TOOLS.md             # Tool-specific notes
└── memory/
    ├── LONG_TERM.md     # Full memories — grows forever, searched via DeepRecall
    ├── 2026-03-05.md    # Daily raw log
    ├── 2026-03-04.md
    └── ...

⚠️ Privacy Notice

DeepRecall reads your workspace memory files and sends their contents to your configured LLM provider (Anthropic, OpenAI, Gemini, etc.) to perform recall. This is how it works — there is no local-only mode.

What gets sent:

  • File metadata (names, headings, topics) → to the manager LLM
  • Full file contents of selected files → to worker LLMs
  • This may include personal notes, daily logs, project files

What is NOT sent:

  • API keys and credentials (read locally for auth, never in prompts)
  • Files outside your workspace

Credentials used locally:

  • ~/.openclaw/openclaw.json and ~/.openclaw/credentials/* — to resolve your LLM provider
  • Env vars (ANTHROPIC_API_KEY, OPENAI_API_KEY, GOOGLE_API_KEY, etc. (18+ providers supported, all optional)) — as fallback if no OpenClaw config found

Recommended Memory Architecture

DeepRecall works best with a two-tier memory system:

Tier 1: MEMORY.md (The Index)

  • Auto-loaded every session — keep it SMALL (~100 lines)
  • Contains: quick reference facts, active projects, key metrics, a table of contents pointing to LONG_TERM.md sections
  • Think of it as your orientation file — "what do I need to know right now?"
  • If it grows past ~120 lines, move details to LONG_TERM.md

Tier 2: memory/LONG_TERM.md (The Encyclopedia)

  • Never auto-loaded — searched via DeepRecall when needed
  • Contains: full context, decisions with reasoning, timestamps, bugs with fixes, architecture details
  • Grows forever — never delete, only append
  • The devil is in the details — "the diary entry, not the Wikipedia summary"

Tier 3: memory/YYYY-MM-DD.md (Daily Logs)

  • Raw notes of what happened each day
  • Distilled into LONG_TERM.md at end of day

Nightly Sync Routine

At the end of each day (or via cron/heartbeat):

  1. Read today's daily log
  2. Append key events, decisions, lessons, bugs, metrics to LONG_TERM.md
  3. Update MEMORY.md index table if new topics appeared

⚠️ Setting this up? Ask your human before restructuring existing memory files. Show them this recommendation and let them decide how to organize their agent's memory.

License

MIT — see LICENSE.

安全使用建议
This skill appears to be what it says: it will scan your OpenClaw workspace, read OpenClaw config and credential files, and send discovered file contents to configured LLM providers. Before installing: 1) Review what directory is used as your OpenClaw workspace (default ~/.openclaw/workspace) and remove/relocate any secrets or files you don't want sent to external LLMs. 2) Inspect ~/.openclaw/openclaw.json, agents/*/models.json and ~/.openclaw/credentials/* because the skill will read them to resolve providers/tokens. 3) Only supply API keys for providers you trust and avoid pointing the skill at a workspace containing arbitrary system files. 4) Installing from an unknown GitHub/pypi package has ordinary supply-chain risk — prefer to audit the source or install in an isolated environment. If you want, I can list the exact files and code locations the skill will read and the network endpoints it may call.
功能分析
Type: OpenClaw Skill Name: deeprecall Version: 1.0.8 DeepRecall is a recursive memory system for AI agents that implements a manager-worker-synthesis loop. The code demonstrates good security practices, including path-traversal protection in deep_recall.py (_safe_path) and an explicit refusal to execute arbitrary code (_execute_tool_code). While the skill accesses sensitive OpenClaw configuration files and API keys, it does so solely to facilitate communication with the user's configured LLM providers, and the documentation includes a transparent privacy notice regarding data transmission to these endpoints.
能力评估
Purpose & Capability
Name/description (recursive memory recall) align with the code: the package scans a workspace, builds an index, runs a manager→workers→synthesis loop and issues HTTP requests to LLM providers. The many optional provider API env vars and OpenClaw config paths are reasonable for a multi-provider LLM bridge.
Instruction Scope
SKILL.md and code instruct the agent to scan the OpenClaw workspace (default ~/.openclaw/workspace), read OpenClaw config and credentials files (models.json, openclaw.json, credentials dir), and include discovered file contents as context for LLM calls. This is expected for a memory-recall tool, but means local files (the agent's memories and any file inside that workspace) may be sent to external provider endpoints.
Install Mechanism
No install spec in registry; SKILL.md suggests pip install from PyPI or GitHub. No download-from-arbitrary-URL install behavior in the skill metadata. The lack of an enforced install step lowers install-surface risk, but installing an unvetted pip package still carries normal supply-chain risk.
Credentials
The skill requests many optional provider API keys (ANTHROPIC_API_KEY, OPENAI_API_KEY, GOOGLE_API_KEY, etc.), which is coherent for a multi-provider bridge. It also reads OpenClaw config and credentials directories to resolve tokens (including a GitHub Copilot token file if present). Accessing those OpenClaw credential files is functionally justified but increases sensitivity — those files may contain tokens that the skill reads (for configuration), so limit access to trusted credentials.
Persistence & Privilege
always is false and the skill does not request elevated platform privileges. It does not modify other skill configurations. Autonomous invocation is allowed (default) but that is expected; nothing indicates permanent or privileged system presence beyond ordinary skill behavior.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install deeprecall
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /deeprecall 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.8
Version update
v1.0.7
deeprecall 1.0.7 - Removed the file `rlm_config_builder.py` from the project. - No other changes to APIs, features, or documentation.
v1.0.6
- Updated environment and config requirements metadata for clarity. - Now explicitly lists optional environment variables and searched config paths in the metadata. - No code or functionality changes included in this version. - Documentation and public interface remain unchanged.
v1.0.5
No code or documentation changes detected in this release. - Version bump from 1.0.4 to 1.0.5 - Documentation updates - Functionality remains unchanged from previous release
v1.0.4
**DeepRecall v2 — Pure Python, No External Runtimes** - Reimplemented for pure Python: removed all dependencies on Deno and fast-rlm. - All recursive memory (RLM) logic now runs in-process, calling LLMs directly via HTTP. - Now supports any OpenAI-compatible LLM provider; auto-detects provider/model from OpenClaw configs. - Updated documentation and API to match new architecture and usage.
v1.0.3
No functional changes in this version — documentation improvements only: - Clarified and expanded recommended memory file layout. - Reorganized dependencies and requirements for better readability. - Simplified and streamlined documentation sections. - Added concise usage and configuration notes. - No code or file changes detected.
v1.0.2
DeepRecall 1.0.2 Changelog - Updated skill metadata and formatting in SKILL.md for OpenClaw compatibility. - Clarified environment variable requirements, making FAST_RLM_DIR required. - Improved privacy and access documentation with concise tables and scope descriptions. - Simplified wording and organized information for easier onboarding. - No code changes; documentation and metadata improvements only.
v1.0.1
- Expanded and clarified system and Python dependency requirements for installation and environment variables. - Added detailed explanation of what files are accessed, what data is read, and where data is sent during recall operations. - Provided new privacy recommendations, including scope choices and using local model providers for maximum privacy. - Updated the Files section to include `memory_indexer.py` and described its purpose (generates MEMORY_INDEX.md). - Improved documentation layout for easier setup, security understanding, and troubleshooting.
v1.0.0
Recursive memory for AI agents — the soul stays small, the mind scales forever
元数据
Slug deeprecall
版本 1.0.8
许可证
累计安装 0
当前安装数 0
历史版本数 9
常见问题

DeepRecall 是什么?

Pure-Python recursive memory recall for persistent AI agents. Manager→workers→synthesis RLM loop — no Deno, no fast-rlm, just HTTP calls to any OpenAI-compat... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 444 次。

如何安装 DeepRecall?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install deeprecall」即可一键安装,无需额外配置。

DeepRecall 是免费的吗?

是的,DeepRecall 完全免费(开源免费),可自由下载、安装和使用。

DeepRecall 支持哪些平台?

DeepRecall 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 DeepRecall?

由 Daniel-Stefan Chitez(@stefan27-4)开发并维护,当前版本 v1.0.8。

💬 留言讨论