← 返回 Skills 市场
aisofialuz

Agent Memory Hub

作者 AIsofialuz · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
64
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install agent-memory-hub
功能描述
Provides AI agents with persistent, searchable long-term memory using a local JSON database and BM25 ranking for facts, preferences, and project details.
使用说明 (SKILL.md)

agent-memory-hub

Category: Memory & Context
Version: 1.0.0
Type: MCP Server

Give any AI agent true long-term memory. Store facts, preferences, project details, and notes. Retrieve them with intelligent search. Never start from scratch again.


What It Does

agent-memory-hub is an MCP server that provides persistent, searchable memory for AI agents. It stores information between sessions using a local JSON database and retrieves it using BM25 full-text search with importance and recency weighting.

Think of it as a second brain for your agent — one that actually remembers who you are, what you're working on, and what you prefer.


When to Use

Situation Action
Session start Call get_relevant_context with the user's first message
User shares a preference Call store_memory immediately
User references past work Call search_memory before responding
User asks "do you remember…" Call search_memory or get_relevant_context
End of important session Call memory_summary to review what was captured
User corrects outdated info Call update_memory

Tools Reference

store_memory(key, content, tags?, importance?)

Store any fact, preference, or note. Tags and importance are auto-detected.

Good keys: user_name, preferred_stack, project_deadline, api_key_note, client_requirement_1

store_memory("user_preferred_editor", "User uses VS Code with Vim keybindings")
→ Auto-tags: ["preference", "technical"]
→ Auto-importance: 6/10

search_memory(query, limit?, tags?)

BM25 ranked search across all memories. Weights importance and recency.

search_memory("code editor preferences")
→ Returns top matches with scores

get_relevant_context(user_query)

The power tool. Automatically surfaces the best memories for the current task. Call this at the start of every session.

get_relevant_context("Help me refactor the auth module")
→ TECHNICAL: preferred_stack, framework_version
→ PROJECT: auth_module_notes, project_deadline
→ PREFERENCE: user_coding_style

update_memory(key, new_content?, tags?, importance?)

Update any field of an existing memory without deleting it.

update_memory("project_deadline", "Deadline moved to June 20th")

list_memories(tags?, limit?, sort?)

Browse stored memories. Sort by recent, importance, or access count.

list_memories(tags=["project"], sort="importance", limit=10)

forget_memory(key)

Permanently remove a memory.

forget_memory("old_api_endpoint")

memory_summary()

High-level overview: count, top tags, most important, most accessed.


Example Agent Workflow

User: "Let's continue working on the SaaS dashboard"

Agent step 1: get_relevant_context("SaaS dashboard project")
→ Retrieves: project goals, tech stack, deadline, previous decisions

Agent step 2: [Responds with full context, no need to re-explain]

User: "By the way, we switched from Supabase to PlanetScale"

Agent step 3: store_memory("database_choice", "Using PlanetScale (switched from Supabase in May 2025)", importance=8)

[Next session — agent immediately knows this without being told again]

Installation

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "agent-memory-hub": {
      "command": "node",
      "args": ["/path/to/agent-memory-hub/build/index.js"]
    }
  }
}

Claude Code CLI

claude mcp add agent-memory-hub -- node /path/to/agent-memory-hub/build/index.js

Build from source

npm install && npm run build

Storage

  • Default: ~/.agent-memory/memories.json
  • Override: set AGENT_MEMORY_DIR environment variable
  • Format: human-readable JSON, easy to backup

Auto-Tag Categories

preference · project · identity · technical · task · credential · note · person · config


Requirements

  • Node.js 18+
  • No API keys
  • No external servers
  • No Python or Docker
安全使用建议
Install only if you are comfortable with a local, persistent memory file. Configure the storage directory if needed, periodically inspect or delete `~/.agent-memory/memories.json`, and tell your agent not to store passwords, API keys, tokens, or other sensitive information.
能力标签
cryptorequires-sensitive-credentials
能力评估
Purpose & Capability
The long-term memory function matches the stated purpose, but the documented scope includes credential-related memories, which is broader and more sensitive than ordinary preferences or project notes.
Instruction Scope
The skill encourages agents to store information immediately and retrieve memory at session start, without documenting explicit user approval, redaction, expiry, or provenance controls for sensitive memories.
Install Mechanism
It is a Node/MCP package built and run locally; this is expected for the purpose, but the metadata provides no source homepage and no registry install spec.
Credentials
The implementation is local-only and does not show external servers, but memories are stored as human-readable JSON under the user's home directory and may include secrets or personal data.
Persistence & Privilege
Persistent cross-session state is central to the skill and update/forget tools exist, but retention and reuse are broad and not bounded by consent, sensitivity filtering, or automatic cleanup.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agent-memory-hub
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agent-memory-hub 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release — persistent BM25 memory with auto-tagging, 7 tools, zero dependencies
元数据
Slug agent-memory-hub
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Agent Memory Hub 是什么?

Provides AI agents with persistent, searchable long-term memory using a local JSON database and BM25 ranking for facts, preferences, and project details. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 64 次。

如何安装 Agent Memory Hub?

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

Agent Memory Hub 是免费的吗?

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

Agent Memory Hub 支持哪些平台?

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

谁开发了 Agent Memory Hub?

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

💬 留言讨论