Chuyển đến nội dung
Skillpedia
Agent48k · #5201

mesh-memory

Skill này làm gì

Đây là bộ nhớ số cho AI. Nó lưu những gì AI đã học hoặc quyết định trong các phiên làm việc trước, cho phép tìm lại thông tin này về sau, ngay cả khi bạn không nhớ chính xác từ ngữ đã dùng. Nó hoạt động như một cuốn sổ ghi chú có tổ chức dành cho AI.

Khi nào nên dùng

  • ✓Khi AI cần nhớ các quyết định hoặc ghi chú từ công việc trước.
  • ✓Khi bạn muốn lưu lịch sử những việc AI đã làm trong một phiên để dùng sau.
  • ✓Khi bạn muốn AI tìm thông tin theo ý nghĩa, không theo từ khóa chính xác.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/mesh-memory/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/mesh-memory/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Nhắc tôi về quyết định chúng ta đã đưa ra liên quan đến cơ sở dữ liệu của dự án X.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI lưu ghi chú và quyết định của mình trong một cơ sở dữ liệu đặc biệt. Khi bạn hỏi điều gì, nó tìm thông tin có cùng ý nghĩa với câu hỏi của bạn, ngay cả khi từ ngữ khác nhau.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Mesh Memory

Mesh Memory is a self-hosted semantic memory service with a built-in MCP server. It stores documents (worklogs, decisions, notes, research) in PostgreSQL with pgvector and retrieves them by meaning, so a query like "what database did we pick?" surfaces a saved note that says "chose Redis for caching" even with zero keyword overlap. Embeddings are generated locally with multilingual-e5-base (768 dimensions); the core flow requires no external API keys.

Use this skill when an agent needs persistent memory across sessions: saving its own work, recalling prior decisions, or building a project knowledge base shared between multiple agents.

When to Use This Skill

  • Saving a session worklog, decision, or research note so a later session can find it.
  • Recalling past work by topic when you do not remember the exact words you used.
  • Sharing a long-lived knowledge base across multiple agents, terminals, or teammates.
  • Organizing context by role or project through workspaces (one workspace per role/project).
  • Looking up structured tags (e.g. all type:decision entries from one project).

Prerequisites

  • A running Mesh Memory instance reachable from the MCP server. Local Docker is the common path -- docker compose up -d in the upstream repo brings it up; see https://github.com/dklymentiev/mesh-memory for the full Quick Start.
  • The MCP server (mcp_server.py) registered with your client (Claude Code, Cursor, Claude Desktop, or any other MCP-aware agent).
  • MESH_API_URL pointing at the running instance (default: http://localhost:8000).

Setup

Register the MCP server in your client configuration:

{
  "mcpServers": {
    "mesh": {
      "command": "python3",
      "args": ["/path/to/mesh-memory/mcp_server.py"],
      "env": {
        "MESH_API_URL": "http://localhost:8000"
      }
    }
  }
}

When the server is reachable, the 13 tools listed below become available.

MCP Tools

Tool Purpose
mesh_focus Switch the active workspace (optionally prefetch recent docs).
mesh_add Save a document with optional tags. Auto-adds date:YYYY-MM-DD and source:.
mesh_update Update content, tags, or pinned status of an existing document.
mesh_delete Delete a document by GUID.
mesh_get Fetch a single document by GUID.
mesh_search Semantic search by query, optionally across multiple workspaces with weights.
mesh_bytag List documents that match one or more tags (AND logic).
mesh_recent List most recently created documents, optionally filtered by type: tag.
mesh_projects List per-project document counts (uses guid: tag as project marker).
mesh_tags List existing tags with counts; optional prefix filter.
mesh_versions Show the version chain of a document (similarity-linked revisions).
mesh_stats Memory statistics for the active workspace.
mesh_schema Show the tag schema (recognized prefixes and types).

Workflows

Save a session worklog

After completing work, persist it for future sessions:

mesh_add(
  content="Investigated 502s on the checkout flow. Root cause: missing CORS header on the cart API. Fix shipped in commit abc123.",
  tags="type:worklog,topic:checkout,date:2026-05-23",
  workspace="developer"
)

date: and source: are added automatically when omitted. Type and topic tags are inferred from nearest neighbors after the embedding completes (5-10 seed documents required before inference kicks in).

Recall past work by meaning

Search across sessions for related context, even with different vocabulary:

mesh_search(query="checkout was failing for some users", limit=5, workspace="developer")

The query shares no keywords with the original note ("502s", "CORS"), but the embedding-based search surfaces it.

Switch role / context

For a multi-role agent, switch the active workspace at the start of a session:

mesh_focus(workspace="sysadmin", prefetch=true, limit=5)

Subsequent calls default to that workspace. Pin a role-prompt document at the top of each workspace so the agent re-orients on every prefetch.

Cross-workspace search with weights

To pull context from related domains without diluting the primary signal:

mesh_search(
  query="nginx rate limit recipe",
  workspaces={"sysadmin": 0.7, "security": 0.2, "developer": 0.1},
  limit=10
)

…

Câu hỏi thường gặp

Tôi có cần cài đặt thứ gì phức tạp không?

Có, bạn cần có một dịch vụ tên Mesh Memory chạy trên máy tính hoặc máy chủ. Thường thì làm việc này bằng Docker, theo hướng dẫn của dự án.

AI biết tìm ở đâu?

Bạn cấu hình chương trình AI (như Claude Code) để biết nơi tìm Mesh Memory. Sau đó, AI dùng các lệnh cụ thể để lưu hoặc truy xuất thông tin.

Tôi có thể dùng công cụ này với nhiều AI cùng lúc không?

Có. Bạn có thể tổ chức bộ nhớ theo 'dự án' hoặc 'vai trò', và nhiều AI có thể cùng dùng một bộ nhớ, mỗi AI tập trung vào công việc của mình.

Chi tiết

Mô tả gốc của tác giả

Self-hosted semantic memory for AI agents via MCP. Save worklogs, decisions, and notes, then recall them across sessions by meaning, not keyword. Postgres + pgvector with auto-tagging.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#5201
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự