← 返回 Skills 市场
cxz9909

Cxz9909 Agent Memory

作者 cxz9909 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
51
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install cxz9909-agent-memory
功能描述
Persistent memory system for AI agents to remember facts, learn from experience, track entities, and recall context 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")

安全使用建议
What to consider before installing/using this skill: - Origin and provenance: The package metadata and README/installation hints don't fully match the registry entry (different slug/owner references and no homepage). Only install from a source you trust. Ask the maintainer for a canonical repo or signed release if provenance matters. - Code sanity review: There are some coherence/quality issues in the bundle that could break usage (e.g., __init__.py exports get_memory but that function is not present in the visible memory.py, and some SQL/FTS uses look incorrect — e.g., ORDER BY fts.rank which may not exist). Run the included tests locally before deploying (tests are bundled). Expect small bugs rather than malicious behavior. - Data sensitivity: This skill persists arbitrary facts to a local SQLite DB (default ~/.agent-memory/memory.db). Do not allow the agent to store secrets (passwords, API keys, private tokens) in this DB unless you add encryption and strong filesystem permissions. Consider custom db_path pointing to an encrypted volume or in-memory DB for sensitive deployments. - Permissions and filesystem: The DB will be created with the process user permissions. Ensure the DB file has restrictive permissions (chmod 600) and is stored somewhere appropriate. - Network/exfiltration: The code shown contains no network calls or external endpoints. That reduces remote-exfil risk, but always assume an agent that can execute code and access the filesystem might be able to leak data via other skills or tooling. Limit what the agent can access or run if you have strict data controls. - Functional checks: Before using in production, run the bundled tests, and exercise common flows (remember/retrieve/export). Verify export_json and other functions behave as expected. Also inspect memory.py fully to confirm there are no hidden network calls or dynamic import/execution paths not visible in the truncated listing. - Fixes to request from author or apply locally: (1) fix the get_memory export or remove it from __init__, (2) reconcile README/install command and registry slug, (3) verify FTS usage (MATCH and ORDER BY) and ensure queries are safe and robust, (4) consider adding optional DB encryption or advice in SKILL.md about sensitive data handling. If you cannot validate the code or provenance, treat this skill as untrusted for storing or handling any secrets or PII.
功能分析
Type: OpenClaw Skill Name: cxz9909-agent-memory Version: 1.0.0 The AgentMemory skill is a well-documented and straightforward implementation of a local persistent memory system for AI agents using SQLite. The code (primarily in src/memory.py) handles facts, lessons, and entities locally without any external network dependencies, obfuscation, or high-risk execution patterns. The instructions in SKILL.md are strictly aligned with the stated purpose of maintaining session context and do not contain any prompt-injection attacks or malicious directives.
能力标签
crypto
能力评估
Purpose & Capability
The name/description (persistent agent memory) aligns with the included Python code: facts, lessons, entities stored in a local SQLite DB. However there are inconsistencies: SKILL.md/README show an installation command 'clawdhub install agent-memory' and a GitHub repo/author, while the registry slug is 'cxz9909-agent-memory' and source/homepage are unknown. __init__.py exports get_memory but no get_memory definition is visible in memory.py (likely a missing symbol). These mismatches suggest the package bundle or metadata wasn't fully synchronized.
Instruction Scope
SKILL.md runtime instructions are narrowly scoped to creating/reading/updating the local memory DB and integrating mem.get_lessons/get_entity/remember at session boundaries — which is appropriate for a memory skill. It does direct persistent reads/writes to ~/.agent-memory/memory.db by default (and shows a custom db_path option). That persistence is expected but means stored content may include sensitive information the agent writes; SKILL.md does not mention encryption or access controls.
Install Mechanism
No install spec is declared (instruction-only), and the package includes source files. No external downloads or third-party dependencies are requested (requirements.txt claims 'No external dependencies'). This is lower risk from an install perspective, but the runtime will write a local SQLite DB to disk — verify filesystem permissions.
Credentials
The skill declares no required environment variables, no credentials, and no config paths beyond the default DB location. That is proportionate to the stated purpose. Note: because it persists arbitrary facts, users should avoid storing secrets in it or should configure an encrypted DB path.
Persistence & Privilege
The skill is not forced-always and allows user invocation; it will create and maintain a persistent SQLite DB by default at ~/.agent-memory/memory.db. Autonomous invocation is allowed by default (normal for skills) — consider whether you want an agent with autonomous access to a persistent memory store that can be read/written across sessions.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cxz9909-agent-memory
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cxz9909-agent-memory 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of AgentMemory Skill. - Adds persistent memory storage for AI agents, allowing recall of facts, lessons learned, and entity tracking across sessions. - Includes simple Python API for remembering, learning from experience, recalling information, and entity management. - Provides integration guidance for Clawdbot and customizable database location.
元数据
Slug cxz9909-agent-memory
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Cxz9909 Agent Memory 是什么?

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

如何安装 Cxz9909 Agent Memory?

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

Cxz9909 Agent Memory 是免费的吗?

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

Cxz9909 Agent Memory 支持哪些平台?

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

谁开发了 Cxz9909 Agent Memory?

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

💬 留言讨论