Chuyển đến nội dung
Skillpedia
Trình kết nối (MCP)30k · #9340

agentmemory-architecture

Skill này làm gì

Skill này giải thích cách máy chủ agentmemory được xây dựng và cách nó lưu trữ, truy xuất bộ nhớ. Nó hữu ích để hiểu hệ thống trước khi bạn mở rộng hoặc xử lý sự cố.

Khi nào nên dùng

  • ✓Khi bạn muốn hiểu cách agentmemory lưu và lấy lại bộ nhớ.
  • ✓Khi bạn định mở rộng máy chủ bộ nhớ với các khả năng mới.
  • ✓Khi bạn cần giải thích cho người khác cách hệ thống bộ nhớ hoạt động.

Liên kết skill

https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/agentmemory-architecture/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/rohitg00/agentmemory/blob/main/plugin/skills/agentmemory-architecture/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

“Giải thích cách agentmemory lưu và tìm bộ nhớ của tôi, từ lúc một ghi chú được lưu đến lúc nó được gợi nhớ lại.”

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

Cách hoạt động

Máy chủ chạy cục bộ, ghi nhận các quan sát và lập chỉ mục chúng để tìm kiếm lai, kết hợp khớp từ khóa và khớp vector. Bộ nhớ được giữ cùng phiên làm việc và đi qua vòng đời gồm ghi nhận, nén, hợp nhất và quên.

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.

agentmemory is a memory server for coding agents. It runs locally, captures observations, indexes them for hybrid retrieval, and serves them back over REST and MCP. Worker Compose runs the pinned iii engine with AgentMemory and the registry state and http workers. The state worker uses a file-backed KV store by default, with Redis available by configuration; it is not SQLite.

iii primitives

Everything is a function, a trigger, or worker state on the iii engine. There is no separate plugin system; the worker registers functions (mem::*) and HTTP triggers (api::*) and the engine routes calls. agentmemory does not bypass iii; new capability is a new function plus a trigger.

Retrieval model

Recall combines BM25 keyword search with configured vector similarity and graph expansion. A clean installation without an embedding provider uses BM25 without an API key. Set EMBEDDING_PROVIDER=local to enable on-device embeddings, which may download a model, or configure a remote provider. LLM compression and summaries require a configured provider and their relevant options.

Storage and lifecycle

Memories carry content, concepts, files, importance, and timestamps, grouped into sessions and optionally linked to commits. A lifecycle of capture, compress, consolidate, and forget keeps the store useful over time rather than letting it grow unbounded.

Ports

REST defaults to port 3111, the viewer to 3113, and the internal engine WebSocket to 49134. Use --port <N> or --instance <N> to select another local runtime.

Viewer

A real-time web viewer at http://localhost:3113 shows memory building as sessions run, with authenticated SSE updates over the REST port. Useful for demos and for confirming capture is working.

See also

  • agentmemory-mcp-tools and agentmemory-rest-api for the surfaces.
  • agentmemory-hooks for automatic capture.
  • agentmemory-config for ports and feature flags.
Câu hỏi thường gặp

Tìm kiếm có cần khóa API không?

Không. Bản cài đặt sạch dùng tìm kiếm từ khóa mà không cần nhà cung cấp embedding hay khóa API.

Bộ nhớ được lưu ở đâu?

Kho trạng thái mặc định dựa trên file và có thể cấu hình để dùng Redis. Nó không phải SQLite.

Nó dùng những cổng nào?

REST và trình xem mỗi cái dùng một cổng cục bộ riêng, với mặc định được liệt kê trong tài liệu.

Chi tiết

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

How agentmemory is built, the iii engine primitives it runs on, its storage model, ports, and the viewer. Use when reasoning about how memory is stored or retrieved end to end, when extending the system, or when answering how agentmemory works under the hood.

repo: rohitg00/agentmemory

Độ phổ biến

Sao GitHub
30k
Vị trí xếp hạng
#9340
Giấy phép
Apache-2.0
Cập nhật
2/11/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ự