YC

yoloshii/clawmem

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

212 stars 42 forks Качество 85 Тренд 20MIT

yoloshii/clawmem — это кандидат на сервер MCP, импортированный из https://github.com/yoloshii/clawmem.

Обзор

yoloshii/clawmem — это кандидат на сервер MCP, импортированный из https://github.com/yoloshii/clawmem.

Обзор (машинный перевод)

Встроенная память для Claude Code, OpenClaw, Hermes и AI-агентов. Поиск с дополненным поиском, хуки и MCP-сервер в одной локальной системе. Нет API-ключей, нет облачных зависимостей.

ClawMem объединяет недавние исследования в слой памяти, дополняемый поиском, который агенты действительно используют. Гибридная архитектура сочетает мультисигнальный поиск, полученный на основе QMD (BM25 + векторный поиск + взаимное ранжирование + расширение запросов + переоценка между кодировщиками), композитное скорирование (затухание недавности, уверенность, полураспады типа контента, коактивационное усиление), классификацию намерений в стиле MAGMA с многографовым обходом (семантический, временной и каузальный поиск пучков) и самоэволюционирующие память A-MEM, которые обогащают документы ключевыми словами, тегами и причинными связями между записями. Извлечение шаблонов из Engram добавляет окна дедупликации, частотное оценивание долговечности и навигацию по времени.

Интегрируется через крючки Claude Code, MCP-сервер (работает с любым совместимым с MCP клиентом), родной плагин OpenClaw или плагин Hermes Agent MemoryProvider. Все пути записываются в один и тот же локальный хранилище SQLite.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

ClawMem — On-device memory layer for Claude Code, OpenClaw, and Hermes agents

On-device memory for Claude Code, OpenClaw, Hermes, and AI agents. Retrieval-augmented search, hooks, and an MCP server in a single local system. No API keys, no cloud dependencies.

ClawMem fuses recent research into a retrieval-augmented memory layer that agents actually use. The hybrid architecture combines QMD-derived multi-signal retrieval (BM25 + vector search + reciprocal rank fusion + query expansion + cross-encoder reranking), SAME-inspired composite scoring (recency decay, confidence, content-type half-lives, co-activation reinforcement), MAGMA-style intent classification with multi-graph traversal (semantic, temporal, and causal beam search), and A-MEM self-evolving memory notes that enrich documents with keywords, tags, and causal links between entries. Pattern extraction from Engram adds deduplication windows, frequency-based durability scoring, and temporal navigation.

Integrates via Claude Code hooks, an MCP server (works with any MCP-compatible client), a native OpenClaw plugin, or a Hermes Agent MemoryProvider plugin. All paths write to the same local SQLite vault. A decision captured during a Claude Code session shows up immediately when an OpenClaw or Hermes agent picks up the same project.

TypeScript on Bun. MIT License.

What It Does

ClawMem turns your markdown notes, project docs, and research dumps into persistent memory for AI coding agents. It automatically:

  • Surfaces relevant context on every prompt (context-surfacing hook)
  • Bootstraps sessions with your profile, latest handoff, recent decisions, and stale notes
  • Captures decisions, preferences, milestones, and problems from session transcripts using a local GGUF observer model
  • Imports conversation exports from Claude Code, ChatGPT, Claude.ai, Slack, and plain text via clawmem mine, with optional post-import LLM fact extraction (--synthesize) that pulls structured decisions / preferences / milestones / problems and cross-fact links out of otherwise full-text conversation dumps (v0.7.2). Imports preserve authorship time (v0.27.0): ranking recency and temporal queries run on when content was actually written, so historical conversations mined today don’t rank as fresh — with a metadata-only --backfill-dates lane for vaults mined earlier
  • Generates handoffs at session end so the next session can pick up where you left off
  • Learns what matters via a feedback loop that boosts referenced notes and decays unused ones
  • Guards against prompt injection in surfaced content
  • Classifies query intent (WHY / WHEN / ENTITY / WHAT) to weight search strategies
Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "clawmem": { "command": "/absolute/path/to/clawmem/bin/clawmem", "args": ["mcp"] } } }