smart-agent-memory
跨平台 Agent 长期记忆系统。分层上下文供给 + 温度模型 + Skill经验记忆 + 结构化存储 + 自动归档。三层存储:Markdown(人可读,QMD 可搜索)+ JSON(结构化)+ SQLite/FTS5(高性能全文搜索)。纯 Node.js 原生模块,零外部依赖。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/beyound87/smart-agent-memoryWhat This Skill Does
Smart Agent Memory is a sophisticated, long-term memory system designed specifically for the OpenClaw AI agent ecosystem. It functions as a hierarchical context management engine that prevents token bloat by ensuring agents only access the specific information required for the current task. By utilizing a three-tiered storage approach—human-readable Markdown, structured JSON, and high-performance SQLite/FTS5—it provides a robust framework for state persistence. The system excels at 'Skill-based learning,' where successful tool executions or specific API quirks are archived as 'experience' memories, ensuring the agent becomes more efficient over time. It features a built-in session lifecycle management tool, allowing for clean session-start context loading and session-end summarization.
Installation
To install this skill, run the following command in your terminal:
clawhub install openclaw/skills/skills/beyound87/smart-agent-memory
Once installed, you must perform a one-time initialization to configure your workspaces:
node ~/.openclaw/skills/smart-agent-memory/scripts/memory-cli.js setup
This command identifies your active workspaces and injects the necessary bootstrap configurations, enabling seamless cross-agent memory sharing.
Use Cases
- Project Continuity: Maintain complex project state and team preferences across different sessions and days.
- Skill Optimization: Store specific API parameter requirements or 'gotchas' for tools to prevent recurring errors.
- Contextual Awareness: Load relevant entity information or past discussions based on tags or timeframes, drastically reducing token consumption.
- Automated Reflective Learning: Use the 'learn' command to archive project outcomes, ensuring the agent avoids historical pitfalls in future iterations.
Example Prompts
- "@smart-agent-memory start session, tell me what we decided about the API authentication in our last meeting."
- "@smart-agent-memory remember that the Stripe API requires ISO-8601 formatted timestamps, tag this as stripe-integration."
- "@smart-agent-memory load context for project-x and give me a summary of lessons learned from the last 7 days."
Tips & Limitations
- Efficiency: Always call
node $CLI indexbefore loading deep context. This small index (<500 tokens) provides a roadmap, allowing you to fetch only the essential segments, saving significantly on costs and token limits. - Persistence: Avoid storing massive binary blobs. The system is optimized for text-based context. If you need to store logs, use the built-in
gc(Garbage Collection) functionality to archive old data and keep your memory footprint lean. - Atomicity: Don't wait until the end of a long task to save information. Use
rememberorlearnthroughout the workflow. If an agent crashes, you won't lose the progress made in the middle of the task. - Structure: Leverage tags consistently. The effectiveness of the system relies on your ability to categorize memories logically so they can be retrieved instantly via the
contextcommand.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-beyound87-smart-agent-memory": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read
Related Skills
myopenclaw-backup-restore
Cross-platform backup and restore for OpenClaw. Works on Windows, macOS, and Linux — backups created on any OS can be restored on any other OS. Use when user wants to create a snapshot, restore from backup, migrate to a new machine, or protect against data loss. Supports dry-run preview, automatic pre-restore snapshots, gateway token preservation, credential permission hardening, and a built-in HTTP server for browser-based management. Only requires Node.js (no bash/rsync/python needed).
token-pilot
Automatic token optimization during interaction. Behavioral rules + plugin synergy + workspace analyzer. Pure Node.js, cross-platform. Activate on session start (rules auto-apply) or when user asks about token usage/cost/audit.
security-hardening-safey
Agent 安全加固技能。用于:(1) 安装后经用户确认,将安全红线注入所有 Agent 的底层记忆(AGENTS.md),精简版注入~112行,不造成token膨胀;(2) 当用户问到安全规则、提示词注入防御、危险命令管控、外部代码审查、多模态注入等话题时加载此技能;(3) 进行安全审计或排查疑似注入事件时使用。触发词:安全加固、提示词注入、prompt injection、rm -rf、eval exec、外部内容攻击、Agent被黑、安全规则、安全红线、代码审查、脚本审查、skill vetter、安装技能、初始化。
coding-lead
Coding execution skill for any implementation-focused agent. Current production path is claude-only with simple tasks direct, medium tasks preferring ACP run or direct acpx, and complex tasks handled via existing agent continuity plus context files instead of ACP session persistence. Integrates with qmd and smart-agent-memory when available.
team-builder
在 OpenClaw 上一键部署多 Agent SaaS 团队工作区。内置双开发轨(devops 交付 + fullstack-dev 实现)、实时 spawn 调度、cron 巡检、Deep Dive 产品知识目录、onboarding 引导。支持自定义角色、模型、时区,可选 Telegram 接入。