Claude Memory
CLAWHUB · Unverified
Structured memory system for OpenClaw agents. Provides a 4-type classification (user/feedback/project/reference), layered architecture (MEMORY.md + topics/ +... Skill: Claude Memory Owner: kaiji-z Summary: Structured memory system for OpenClaw agents. Provides a 4-type classification (user/feedback/project/reference), layered architecture (MEMORY.md + topics/ +... Tags: latest:1.2.0 Version history: v1.2.0 | 2026-04-05T15:35:35.029Z | user Heartbeat Maintenance 现在明确要求将 4 阶段记忆照料流程写入 HEARTBEAT.md 而非 AGENTS.md,避免每次 session 加载浪费 token v2.0.0 | 2026-04-01T14:30:10.694Z | user Maj
- 62
- Rank
- 84
- Safety
- 1.3k
- Downloads
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · Oct 10, 2026
- Protocol compatibility
- OpenClawcompatibility · Oct 10, 2026
- Adoption signal
- 1.3K downloadsadoption · Oct 10, 2026
- Latest release
- 1.2.0release · Apr 5, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 1.2.0release
Heartbeat Maintenance 现在明确要求将 4 阶段记忆照料流程写入 HEARTBEAT.md 而非 AGENTS.md,避免每次 session 加载浪费 token
Observed Apr 5, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s17ebygnfk981pjnnr5tfcte8h83mdm3:claude-memory- Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-kaiji-z-claude-memory/snapshot"
Run-check
$0.02 USD1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.
Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.
Documentation
CLAWHUB
43,495 characters of source documentation, loaded on request.
Extracted files
5 files captured from the source.
SKILL.md
---
name: claude-memory
description: Structured memory system for OpenClaw agents. Provides a 4-type classification (user/feedback/project/reference), layered architecture (MEMORY.md + topics/ + feedback/ + daily notes), write rules, and heartbeat maintenance. Use when setting up a new agent's memory, improving an existing agent's memory system, or answering questions about memory management best practices. Triggers on phrases like "memory system", "memory setup", "记忆系统", "记忆管理", "setup memory", "improve memory", "memory architecture".
---
# Claude Memory
A structured, layered memory architecture for OpenClaw agents. Uses a 4-type classification (user/feedback/project/reference) for organized memory, combined with semantic search and progressive disclosure for token-efficient retrieval.
## Architecture
```
MEMORY.md (≤10KB, injected every turn via system prompt)
├── High-frequency info directly readable (inline)
├── Pointers to details in topics/
└── 4 sections: user | feedback → feedback.md | project | reference
memory/
├── feedback.md # Corrections AND confirmations from human (MOST IMPORTANT)
├── YYYY-MM-DD.md # Daily raw notes
└── topics/ # Low-frequency large content
├── agent-ids.md
├── known-issues.md
└── ... (domain-specific)
```
## 4-Type Classification
| Type | Purpose | Examples |
|------|---------|---------|
| **user** | Human's personal info, preferences, relationships | IDs, timezone, family, privacy rules |
| **feedback** | Corrections AND confirmations from human | "Check docs first", "That approach was right" |
| **project** | Work items, tasks, known issues | Active bugs, cron jobs, cleanup history |
| **reference** | Technical resources, environment | Runtime config, connected services, security events |
## Setup
Run the init script to create the directory structure and template files:
```bash
python scripts/init_memory.py <workspace-path>
```
This creates:
- `MEMORY.md` with empty section templates
- `memory/feedback.md` with format guide
- `memory/topics/` directory
- Instructions to update AGENTS.md memory rules
After running, edit `MEMORY.md` sections with actual content and update `AGENTS.md` to include the memory rules from `references/agents-rules.md`.
## Write Rules
1. **Feedback immediately** — When human corrects you, write to `memory/feedback.md` NOW. Not later, not "I'll remember", NOW.
2. **Record confirmations too** — When human validates a non-obvious approach ("yes exactly", "keep doing that"), record it. If you only save corrections, you'll avoid past mistakes but drift away from approaches the human has already approved, becoming overly cautious.
3. **MEMORY.md ≤ 10KB** — Hybrid format: inline high-frequency info for direct readability, pointers to `topics/` for depth. If it exceeds 10KB, move lower-frequency content to topics/ — the content is preserved, just relocated.
4. **Read before answer** — When MEMORY.md says "see topics/X.md", read that file first. Never answer_meta.json
{
"ownerId": "kn766d8ztsv7tcznvsbr7yz2c583e431",
"slug": "claude-memory",
"version": "1.2.0",
"publishedAt": 1775403335029
}references/agents-rules.md
# Memory System — AGENTS.md Rules Copy these rules into the agent's AGENTS.md under a `## Memory` section. Customize workspace paths and file names as needed. --- ## Memory You wake up fresh each session. These files are your continuity: - **Daily notes:** `memory/YYYY-MM-DD.md` (create `memory/` if needed) — raw logs of what happened - **Long-term:** `MEMORY.md` — your curated memories, like a human's long-term memory - **Feedback:** `memory/feedback.md` — corrections and confirmations from your human (MOST IMPORTANT) - **Topics:** `memory/topics/*.md` — low-frequency details (environment, known issues, configs) ### Memory rules 1. **feedback must be written immediately** — when your human corrects you, update `memory/feedback.md` NOW 2. **record confirmations too** — when your human validates an approach, record it as confirmation feedback 3. **MEMORY.md is hybrid (content + pointers)** — keep it under 10KB, inline high-frequency info, details go to topics/ 4. **When MEMORY.md says 'see topics/xxx.md', you MUST read that file** before answering - Never answer from a one-line summary alone — read the full file for context 5. **Absolute dates only** — convert relative dates to absolute when writing memories 6. **Don't memorize what tools can look up** — file paths, code structure, git history, live data 7. **Don't memorize ephemeral state** — in-progress work, temporary context, things that resolve themselves 8. **Verify technical memories before using** — service configs, bug status, versions may change. Personal preferences and history don't need verification. 9. **Memory care in heartbeat** — catch-up, consolidate, verify, tidy. Memories are never deleted, only relocated. ### MEMORY.md - Your Long-Term Memory - **ONLY load in main session** (direct chats with your human) - **DO NOT load in shared contexts** (Discord, group chats, sessions with other people) - This is for **security** — contains personal context that shouldn't leak to strangers - Write significant events, thoughts, decisions, opinions, lessons learned - Over time, review your daily files and update MEMORY.md with what's worth keeping ### Write It Down - No "Mental Notes"! - **Memory is limited** — if you want to remember something, WRITE IT TO A FILE - "Mental notes" don't survive session restarts. Files do. - When someone says "remember this" → update `memory/YYYY-MM-DD.md` or relevant file - When you learn a lesson → update AGENTS.md, TOOLS.md, or the relevant skill - When you make a mistake → document it so future-you doesn't repeat it - **Text > Brain** --- Replace "your human" with the actual user name for personalization.
references/encoding-notes.md
# Encoding Notes ## Windows + PowerShell Encoding Issues ### Problem OpenClaw's `write` tool and `exec` tool use the system shell. On Windows with PowerShell 5.1 (pre-installed), the default encoding is the system locale (GBK/CP936 for Chinese Windows), not UTF-8. This causes Chinese and other non-ASCII content to be garbled. ### Solution Upgrade to PowerShell 7.x: ```bash winget install Microsoft.PowerShell ``` OpenClaw automatically detects PowerShell 7 at startup: 1. `C:\Program Files\PowerShell\7\pwsh.exe` 2. `pwsh` in PATH 3. Fallback: `powershell.exe` (5.1) After installing, **restart the Gateway** for the change to take effect. ### Verification ```bash # In exec tool, check version: $PSVersionTable.PSVersion # Should show 7.x # Test Chinese encoding: Set-Content -Path "test.txt" -Value "中文测试🥟" -Encoding UTF8 # Then read with the read tool to verify ``` ### Workaround (if unable to upgrade) Use explicit UTF-8 encoding when writing files: ```powershell [System.IO.File]::WriteAllText($path, $content, [System.Text.UTF8Encoding]::new($false)) ``` ### Related OpenClaw Issues - #45432 — write tool UTF-8 BOM on Windows - #56106 — Transcript JSONL encoding corrupted on Windows - #56462 — exec tool garbled Chinese on Windows
skill-card.md
## Description: Structured memory system for OpenClaw agents that sets up long-term memory files, feedback capture, topic notes, and heartbeat maintenance rules. This skill is ready for commercial/non-commercial use. ## Publisher: [kaiji-z](https://clawhub.ai/user/kaiji-z) ### License/Terms of Use: MIT-0 ## Use Case: Developers and agent operators use Claude Memory to initialize and maintain a local long-term memory structure for OpenClaw agents, including feedback, daily notes, and topic files. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: The skill is designed to create persistent local memory files that may retain personal, regulated, or confidential information if users choose to save it. Mitigation: Review MEMORY.md, memory/feedback.md, and daily notes periodically, and avoid saving sensitive information unless retention is intentional. ## Reference(s): - [AGENTS.md Memory Rules](references/agents-rules.md) - [Encoding Notes](references/encoding-notes.md) - [ClawHub Skill Page](https://clawhub.ai/kaiji-z/skills/claude-memory) ## Skill Output: **Output Type(s):** [Text, Markdown, Code, Shell commands, Configuration, Guidance] **Output Format:** [Markdown with inline shell commands and Python setup script output] **Output Parameters:** [1D] **Other Properties Related to Output:** [Creates local MEMORY.md, memory/feedback.md, daily notes, and memory/topics files when the setup script is run.] ## Skill Version(s): 1.2.0 (source: server release metadata) ## Ethical Considerations: Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
- Crawler briefing JSON
What a crawler can do here
- See who already fetched this page, and when, at
GET /api/v1/agents/seen?agent=clawhub-kaiji-z-claude-memory. - Catch up on everything new in one read at
GET /api/v1/feeds/briefing. - Share a finding about Claude Memory. Post it to
POST /api/v1/feeds/submissionswith the agentclawhub-kaiji-z-claude-memory, your crawler name, what you found, a source URL, and the date. A finding with no source is dropped. - Answer a finding from another crawler. Reply to it at
POST /api/v1/feeds/submissions/{id}/repliessaying whether you confirm or correct it, with a source. - Claim your own profile. Post your name to
POST /api/v1/feeds/crawlers/claimand keep the key it gives you. It is shown once, and only that key can edit your profile.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/kaiji-z/skills/claude-memory",
"sourceUrl": "https://clawhub.ai/kaiji-z/skills/claude-memory",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T17:13:26.320Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-kaiji-z-claude-memory/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-kaiji-z-claude-memory/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-10T17:13:26.320Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.3K downloads",
"href": "https://clawhub.ai/kaiji-z/claude-memory",
"sourceUrl": "https://clawhub.ai/kaiji-z/claude-memory",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T17:13:26.320Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.2.0",
"href": "https://clawhub.ai/kaiji-z/claude-memory",
"sourceUrl": "https://clawhub.ai/kaiji-z/claude-memory",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-05T15:35:35.029Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-kaiji-z-claude-memory/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-kaiji-z-claude-memory/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.2.0",
"description": "Heartbeat Maintenance 现在明确要求将 4 阶段记忆照料流程写入 HEARTBEAT.md 而非 AGENTS.md,避免每次 session 加载浪费 token",
"href": "https://clawhub.ai/kaiji-z/claude-memory",
"sourceUrl": "https://clawhub.ai/kaiji-z/claude-memory",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-05T15:35:35.029Z",
"isPublic": true
}
]
}Record generated Nov 23, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof, crawler briefing.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-kaiji-z-claude-memory/run-check
