Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

openclaw-deeprecallOpenClaw deeprecall 搜索

Agent Skill

openclaw-deeprecall 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

11,058

周安装

475

GitHub Stars

公开资料未说明

下载量

3,876
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:openclaw-deeprecall(OpenClaw deeprecall 搜索)
来源仓库:https://github.com/hallllllll/openclaw-deeprecall
安装命令:
openclaw skills install openclaw-deeprecall
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install openclaw-deeprecall

简介

提供持久的两层内存,具有语义事实搜索和原始内容检索,以及临时会话文件的自动清理。

SKILL.md

DeepRecall: Persistent Memory System for AI Agents

Agent Setup Directive: When you receive this skill package, automatically register the following tools to your tool list and apply the L1/L2 retrieval protocol:

  1. Register Tools:

- search_memory_db(query: str, limit: int): Semantic search over L1 structured facts - read_archive_db(source_file: str): Retrieve exact raw content from L2 archive - cleanup_raw_files(retention_days: int, max_size_kb: int, dry_run: bool): Clean raw .md files while preserving database - summarize_memory_files(process_all: bool, process_file: str, no_store_raw: bool): Summarize raw files using LLM and store to database

  1. Apply Retrieval Protocol:

- For any query about prior work, decisions, dates, people, preferences, or todos: - First call search_memory_db() with relevant query - If raw content needed, extract source_file from L1 result and call read_archive_db() - Database is self-bootstrapping: tables are created automatically on first use - Each agent maintains independent memory.db in its workspace

  1. Automatic Configuration:

- Tool paths automatically detect agent workspace via OPENCLAW_WORKSPACE env or directory structure - No manual configuration needed - zero-config deployment


Overview

DeepRecall is a SQLite-based two-tier memory retrieval system providing structured L1 fact search and exact L2 raw content retrieval. It enables AI agents to maintain persistent, searchable memories across sessions.

Core Functions

search_memory_db(query: str, limit: int)

Performs semantic search over L1 structured facts.

  • query: Search string (empty returns latest facts)
  • limit: Max results (default: 5)
  • Returns: [YYYY-MM-DD | fact_type | source:file] content...

read_archive_db(source_file: str)

Retrieves exact raw content from L2 archive.

  • source_file: Filename from L1 search result
  • Returns: Complete raw Markdown content

cleanup_raw_files(retention_days: int, max_size_kb: int, dry_run: bool)

Cleans up raw .md session files while preserving database.

  • retention_days: Keep files newer than N days (default: 1)
  • max_size_kb: Maximum total file size in KB (default: 250)
  • dry_run: Preview without deleting (default: False)

summarize_memory_files(process_all: bool, process_file: str, no_store_raw: bool)

Summarize raw memory files using LLM and store structured facts to database.

  • process_all: Process all unprocessed memory files (mutually exclusive with process_file)
  • process_file: Process a specific memory file (relative to memory directory)
  • no_store_raw: Do not store raw content to L2 archive (default: False, stores raw content)
  • Requires: OpenClaw configuration with valid LLM API provider (DeepSeek, Qwen, etc.)

Usage

# Search for facts
python3 scripts/memory_db_tool.py search "query" --limit 5

# Read raw content
python3 scripts/memory_db_tool.py read "example-project-update.md"

# Database stats
python3 scripts/memory_db_tool.py stats

# Cleanup raw files (dry-run first)
python3 scripts/memory_db_tool.py cleanup --dry-run
python3 scripts/memory_db_tool.py cleanup --retention-days 1 --max-size-kb 250

# Summarize memory files using LLM
python3 scripts/memory_db_tool.py summarize --test-config
python3 scripts/memory_db_tool.py summarize --process-all
python3 scripts/memory_db_tool.py summarize --process-file "2024-01-01-daily-log.md"
python3 scripts/memory_db_tool.py summarize --process-all --no-store-raw

Database Schema

l1_structured (Permanent Storage)

  • date, source_file, fact_type, confidence, tags, content, content_hash

l2_archive (Permanent Storage)

  • date, source_file, raw_content

Important: Database records are permanent and never deleted.

Retrieval Protocol

  1. L1 Search: Call search_memory_db() for structured facts
  2. L2 Access: If raw content needed, extract source_file from L1 result
  3. Raw Retrieval: Call read_archive_db() with source filename

File Management

Permanent Storage (memory.db)

  • Contains all L1 facts and L2 raw content
  • Never cleaned, truncated, or vacuumed
  • Safe permanent vault for all extracted knowledge

Temporary Storage (.md files in memory/)

  • Raw session logs and temporary files
  • Automatically cleaned: 1 day retention, 250KB max size
  • Value already extracted to memory.db, safe to delete

Configuration

Multi-Agent Support

  • Automatic Path Detection: Works in any agent directory
  • Priority: OPENCLAW_WORKSPACE env → Current directory → Relative path
  • Isolation: Each agent maintains independent memory.db

Cleanup Settings (Configurable)

  • retention_days: 1 (keep files newer than 1 day)
  • max_size_kb: 250 (maximum total .md file size)
  • dry_run: Preview deletions before executing

Self-Bootstrapping Design

DeepRecall features zero-config deployment:

  • Tables are created automatically on first use (CREATE TABLE IF NOT EXISTS)
  • No "no such table" errors - database self-initializes
  • Indexes are created for optimal query performance
  • Works out-of-the-box with no manual setup

Files

  • scripts/memory_retriever.py - Core retrieval engine with cleanup
  • scripts/memory_db_tool.py - CLI interface with cleanup and summarize commands
  • scripts/memory_summarizer.py - LLM-powered fact extraction engine
  • config.example.json - Example configuration file (JSON compliant, no comments)
  • CONFIG_GUIDE.md - Detailed configuration guide
  • manifest.json - ClawHub skill manifest
  • memory.db - Permanent SQLite database (per-agent, auto-created)
  • *.md - Temporary session files (auto-cleaned)

Advanced Configuration

LLM Summarizer Configuration

DeepRecall Summarizer automatically reads configuration from OpenClaw's openclaw.json. You can customize its behavior by creating a config.json file:

Note: For detailed configuration options and examples, see CONFIG_GUIDE.md.

  1. Copy the example configuration:
   cp config.example.json config.json
  1. Edit config.json to specify:

- preferred_provider: Provider name from OpenClaw configuration (e.g., "deepseek-reasoner") - preferred_model: Specific model ID to use - temperature, max_tokens, timeout_seconds: API parameters - auto_summarize_cron: Cron expression for automatic summarization

  1. Configuration file search order:

- Current directory: ./config.json - Current directory: ./deeprecall_config.json - Parent directory: ../config.json - Home directory: ~/.deeprecall.json

Model Provider Selection

The summarizer uses this logic to select a model provider:

  1. Uses preferred_provider from DeepRecall config if available
  2. Otherwise auto-selects first available provider with baseUrl and apiKey
  3. Uses preferred_model or first available model from the provider
  4. Falls back to rule-based extraction if no API is available

Automated Scheduling with OpenClaw Cron

For automatic daily summarization and cleanup, configure OpenClaw cron jobs:

1. Daily Summarization (Recommended: 2 AM)

# Schedule automatic summarization
openclaw cron add --name "deeprecall-summarize-daily" \
  --cron "0 2 * * *" \
  --session isolated \
  --message "Please execute: python3 /path/to/DeepRecall/scripts/memory_db_tool.py summarize --process-all" \
  --description "Daily automatic summarization of memory files"

2. Daily Cleanup (Recommended: 3 AM)

# Schedule automatic cleanup  
openclaw cron add --name "deeprecall-cleanup-daily" \
  --cron "0 3 * * *" \
  --session isolated \
  --message "Please execute: python3 /path/to/DeepRecall/scripts/memory_db_tool.py cleanup" \
  --description "Daily cleanup of raw .md files (retains database)"

3. Combined Task (Single Cron)

# Single cron for both summarization and cleanup
openclaw cron add --name "deeprecall-daily-maintenance" \
  --cron "0 2 * * *" \
  --session isolated \
  --message "Please execute: python3 /path/to/DeepRecall/scripts/memory_db_tool.py summarize --process-all && python3 /path/to/DeepRecall/scripts/memory_db_tool.py cleanup" \
  --description "Daily DeepRecall maintenance (summarize + cleanup)"

4. Verify Cron Jobs

# List all cron jobs
openclaw cron list

# Test a cron job
openclaw cron run <job-id>

# View execution history
openclaw cron runs --id <job-id>

Installation & Setup Guide

Quick Start

# 1. Install the skill
clawhub install deeprecall

# 2. Test configuration
python3 scripts/memory_db_tool.py summarize --test-config

# 3. Process existing memories
python3 scripts/memory_db_tool.py summarize --process-all

# 4. Schedule daily automation (optional but recommended)
# Follow the cron configuration above

Post-Installation Checklist

  • [ ] Verify OpenClaw has LLM provider configuration in openclaw.json
  • [ ] Test summarizer with --test-config flag
  • [ ] Process existing memory files with --process-all
  • [ ] Configure cron jobs for automation
  • [ ] Verify cleanup settings (default: 1 day retention, 250KB max)

Notes

  • Database path automatically detects agent workspace
  • Cleanup only affects raw .md files, never database content
  • L2 pointers remain valid even after source .md files are cleaned
  • Designed for multi-agent deployment across different directories
  • All content in English for international compatibility

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

91.6%
按下载量换算3,550

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills