← 返回 Skills 市场
penglovemeng

agent-memory

作者 penglovemeng · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
335
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install peng-agent-memory
功能描述
Provides persistent memory for AI agents to remember facts, learn from experience, and track entities across sessions.
使用说明 (SKILL.md)

AgentMemory Skill

Persistent memory system for AI agents. Remember facts, learn from experience, and track entities across sessions.

Installation

clawdhub install agent-memory

Usage

from src.memory import AgentMemory

mem = AgentMemory()

# Remember facts
mem.remember("Important information", tags=["category"])

# Learn from experience
mem.learn(
    action="What was done",
    context="situation",
    outcome="positive",  # or "negative"
    insight="What was learned"
)

# Recall memories
facts = mem.recall("search query")
lessons = mem.get_lessons(context="topic")

# Track entities
mem.track_entity("Name", "person", {"role": "engineer"})

When to Use

  • Starting a session: Load relevant context from memory
  • After conversations: Store important facts
  • After failures: Record lessons learned
  • Meeting new people/projects: Track as entities

Integration with Clawdbot

Add to your AGENTS.md or HEARTBEAT.md:

## Memory Protocol

On session start:
1. Load recent lessons: `mem.get_lessons(limit=5)`
2. Check entity context for current task
3. Recall relevant facts

On session end:
1. Extract durable facts from conversation
2. Record any lessons learned
3. Update entity information

Database Location

Default: ~/.agent-memory/memory.db

Custom: AgentMemory(db_path="/path/to/memory.db")

安全使用建议
This skill appears to be what it says: a local SQLite-based memory for agents. Before installing, note: (1) it creates/writes a DB in ~/.agent-memory/memory.db by default — review and protect that file (file permissions, backups, encryption) if it will store sensitive info; (2) you can set db_path to any path — do not point it at system-critical files (e.g., /etc/passwd) or shared secrets; (3) the code does not perform network calls or request credentials, but any agent that uses this memory could export or transmit memories elsewhere — treat stored memories as data that your agents might surface; (4) there are minor code/quality issues (e.g., API surface hints in __init__ referencing get_memory) that are functional concerns but not indicators of malicious behavior. If you need stricter isolation, run the skill under a restricted user or in a container and review the DB contents regularly.
功能分析
Type: OpenClaw Skill Name: peng-agent-memory Version: 1.0.0 The peng-agent-memory skill is a legitimate implementation of a persistent memory system for AI agents using a local SQLite database. The code in src/memory.py and the CLI wrappers provide standard CRUD operations for facts, lessons, and entities without any external dependencies, network calls, or suspicious execution patterns. The instructions in SKILL.md are appropriately scoped to managing agent context and do not contain any prompt-injection attacks or attempts to exfiltrate sensitive data.
能力评估
Purpose & Capability
Name/description (persistent memory, facts, lessons, entities) matches the provided code and SKILL.md. No unrelated binaries, cloud credentials, or external services are required.
Instruction Scope
SKILL.md and the CLI wrappers confine operations to storing/recalling/updating local memories and integrating with an agent lifecycle. There are no instructions to read unrelated system files, transmit data externally, or access secrets.
Install Mechanism
No install spec — code is bundled in the skill and has no external dependencies. That reduces remote code fetch risk. The package creates/uses a local SQLite DB as expected.
Credentials
The skill requests no environment variables or credentials. The only persistent resource it uses is a local SQLite DB (default ~/.agent-memory/memory.db), which is appropriate for a memory store.
Persistence & Privilege
The skill will create and write a database under the user's home directory by default and can be pointed at an arbitrary db_path. This is normal for a local memory store, but be aware a user-supplied db_path could point to sensitive locations (permissions permitting). It does not request always:true and uses normal autonomous invocation behavior.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install peng-agent-memory
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /peng-agent-memory 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Update
元数据
Slug peng-agent-memory
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

agent-memory 是什么?

Provides persistent memory for AI agents to remember facts, learn from experience, and track entities across sessions. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 335 次。

如何安装 agent-memory?

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

agent-memory 是免费的吗?

是的,agent-memory 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

agent-memory 支持哪些平台?

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

谁开发了 agent-memory?

由 penglovemeng(@penglovemeng)开发并维护,当前版本 v1.0.0。

💬 留言讨论