返回顶部
r

reclaw

Use when accessing memory, recording information, searching prior context, or managing subjects.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 2026.3.11-3
安全检测
已通过
475
下载量
0
收藏
概述
安装方式
版本历史

reclaw

# Reclaw Memory System Reclaw is an append-only event log that replaces daily memory files. It assumes the current OpenClaw environment already has the Reclaw plugin installed. All memory lives in `log.jsonl` as structured entries. Extraction happens automatically at session end — you don't write to the log directly. Your job is to state information clearly in conversation so the extraction hook captures it. ## How Memory Works 1. **MEMORY.md** is auto-loaded into every session. It has a manual section (goals, preferences) and a generated Reclaw memory snapshot updated nightly. 2. **Reclaw session summary** is written into `MEMORY.md` after each session extraction. 3. **Subject markdown projections** are generated under `~/.openclaw/reclaw/memory/` so OpenClaw can semantically index event-log content through its builtin markdown memory path. 4. **`memory_search`** finds entries by keyword, type, subject, or status when the Reclaw plugin has registered that tool in the current OpenClaw environment, and can hit semantic results from `MEMORY.md` plus generated subject projections. 5. **`memory_get`** retrieves a specific entry by ID, reads `MEMORY.md`, or fetches a full session transcript when the Reclaw plugin has registered that tool in the current OpenClaw environment. Start with what's already in context (steps 1-3). Only call tools when you need something specific. ## Entry Types | Type | What it captures | Key detail | |---|---|---| | `task` | Action items, follow-ups | Has `status`: `open` or `done` | | `fact` | User-specific information learned | Preferences, events, observations, milestones | | `decision` | A choice with reasoning | Use `detail` for the "why" | | `question` | An unresolved open loop | Resolved by later entries on the same subject | | `session_summary` | Session boundary state | One per session, summarizes what's in-flight | ## Subjects Every non-`session_summary` entry has a `subject` — a kebab-case slug like `auth-migration` or `reclaw`. Subjects are tracked in a registry with a type: `project`, `person`, `system`, or `topic` (default). When discussing something new, use a clear kebab-case slug. The extraction hook auto-creates subjects it hasn't seen. To explicitly manage subjects: ```bash # List all subjects openclaw reclaw subjects list # Add a subject with a type openclaw reclaw subjects add auth-migration --type project openclaw reclaw subjects add alice-chen --type person # Rename a subject (updates registry and all log entries) openclaw reclaw subjects rename old-slug new-slug ``` ## Using `memory_search` Combines structured log filters with keyword search and semantic search over `MEMORY.md` plus generated subject projections. ``` # Keyword search memory_search({"query": "webhook retries"}) # Structured filters memory_search({"type": "decision", "subject": "auth-migration"}) memory_search({"type": "task", "status": "open"}) memory_search({"type": "question"}) # Combined memory_search({"query": "backoff", "type": "fact", "subject": "auth-migration"}) ``` At least one of `query`, `type`, `subject`, or `status` is required. ## Markdown Projections Reclaw keeps one generated markdown file per subject under `~/.openclaw/reclaw/memory/`. These files are derived from `log.jsonl` and exist so OpenClaw's builtin markdown indexer can semantically search event-log content. - Treat projection files as generated output — don't manually edit them - Successful live extraction refreshes touched subject projections automatically - Successful non-dry-run imports refresh the full projection set automatically - If the index seems stale, rebuild with `openclaw reclaw projection refresh` ## Using `memory_get` Three lookup modes based on the `path` value: ``` # By entry ID (12-char nanoid from search results) memory_get({"path": "r7Wp3nKx_mZe"}) # By session transcript (from an entry's session field) memory_get({"path": "session:abc123def456"}) # By file path memory_get({"path": "MEMORY.md"}) ``` Reading an entry by ID increments its usage score, which helps it persist in the nightly memory snapshot. ## Citations When referencing a prior event in conversation, cite it as `[<12-char-id>]` (e.g., `[r7Wp3nKx_mZe]`). This format is tracked for usage scoring — cited entries are more likely to appear in future memory snapshots. ## Corrections and Updates The log is append-only. To correct something: - State the correction clearly in conversation. Extraction writes a new entry on the same subject. - To mark a task done, say so explicitly. Extraction emits a new `task` entry with `status: "done"`. - To answer a question, discuss the resolution. Extraction captures the answer as a `fact` or `decision`. Old entries are never modified. Current state is reconstructed by reading a subject's entries chronologically. ## Hard Filter Only user-specific information belongs in the log. Ask: "Would I need to know this person to know this?" If a general-purpose LLM could produce the content without user context, it should not be extracted. No generic knowledge, no dependency lists, no boilerplate. ## CLI Commands ```bash # Recent log entries openclaw reclaw log openclaw reclaw log --type decision --subject auth-migration --limit 10 # Search with filters openclaw reclaw search "webhook" openclaw reclaw search --type task --status open openclaw reclaw search --subject auth-migration --from 2026-02-01 --to 2026-03-01 # Trace a subject's chronological history openclaw reclaw trace openclaw reclaw trace --subject auth-migration openclaw reclaw trace <entry-id> # Subject management openclaw reclaw subjects list openclaw reclaw subjects add <slug> --type <project|person|system|topic> openclaw reclaw subjects rename <old-slug> <new-slug> # Refresh generated subject markdown projections openclaw reclaw projection refresh openclaw reclaw projection list # Regenerate the MEMORY.md memory snapshot now openclaw reclaw snapshot refresh # Force-refresh MEMORY.md session summary block from log openclaw reclaw summary refresh # Import historical conversations openclaw reclaw import <chatgpt|claude|grok|openclaw> <file> openclaw reclaw import status openclaw reclaw import resume <jobId> # Setup openclaw reclaw init openclaw reclaw verify openclaw reclaw uninstall ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 reclaw-1776319147 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 reclaw-1776319147 技能

通过命令行安装

skillhub install reclaw-1776319147

下载 Zip 包

⬇ 下载 reclaw v2026.3.11-3

文件大小: 3.24 KB | 发布时间: 2026-4-16 17:45

v2026.3.11-3 最新 2026-4-16 17:45
**Full Changelog**: https://github.com/maxpetretta/reclaw/compare/v2026.3.11-2...v2026.3.11-3

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部