engram-lite 是一个本地化的、基于条件筛选的 AI 代理记忆层,根据角色、领域和任务为每个代理提供相关事实,无需调用 LLM,且支持完全可重现。

Stars

28

7 天增长

暂无数据

Fork 数

10

开放 Issue

0

开源协议

Apache-2.0

最近更新

2026-07-06

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它解决了共享平面记忆导致幻觉的关键问题,将任务成功率从 40% 提升至 80%,并将幻觉降低至三分之一,同时无需云基础设施或 LLM 调用。

适合谁使用

  • 使用 Python 构建 AI 代理的开发者
  • 需要持久化记忆的 Hermes 代理用户
  • Claude Code 或 OpenClaw 插件采用者
  • 研究代理记忆系统的学者

典型使用场景

  • 为值班 SRE 代理提供警报、追踪和运行手册,同时过滤无关信息
  • 为单机上的多代理系统提供重启安全的记忆
  • 集成到 Hermes、Claude Code 或 OpenClaw 中实现自动记忆捕获与检索
  • 在 LoCoMo 和内部 CAMP-Bench 上对记忆系统进行基准测试

项目优势

  • 条件化服务消除了跨领域泄漏和无关记忆导致的幻觉
  • 捕获和服务均无需 LLM 调用,速度快且零成本
  • 自清洁、可解释的遗忘机制以及确定性重现便于调试
  • 支持多种代理框架,安装简单(pip 或一条命令)

使用前须知

  • 仅限单机使用;团队版(engram-core)尚未发布
  • 需要本地嵌入模型(不支持云端推理)
  • CAMP-Bench 结果为内部测试,不可独立重现(LoCoMo 结果可外部重现)

README 快速开始

engram-lite

Local memory for AI agents, served by persona, domain, and task. Survives restarts. One machine, many agents.

Most agent memory is a shared pile: every agent gets the same top-k for the same query. In our benchmark (methodology below), an agent fed flat shared memory hallucinated more than an agent given no memory at all. Serving each agent the memory that fits who it is (its persona, its domain, the task in front of it) doubled task success (40% to 80%) and cut hallucination to a third.

And the memory layer never calls an LLM. On LoCoMo — the long-conversation memory benchmark — engram-lite scores J 68.3 with zero LLM calls and $0 to build the memory. The protocol, footnotes, and the full comparison against the leading LLM-based memory systems live in benchmarks/locomo/.

engram-lite is that serving layer, small enough to run on your laptop:

  • Conditioned serving. Register a profile per agent (persona / domain / scope). The same question serves your on-call SRE agent the alert, the trace, and the mitigation runbook, and serves your release agent the deploy, the rollback, and the freeze policy. Out-of-lane questions correctly serve nothing.
  • Restart-proof. Everything is stored in a single SQLite file. Your agent can restart tomorrow and pick up exactly where it left off.
  • Self-cleaning. A salience gate skips junk (code, command output, questions). New facts are de-duplicated, updates supersede old versions, stale facts expire, and the store stays bounded.
  • Zero infrastructure. No server, no cloud, no accounts, no telemetry. SQLite plus a local embedding model. pip install and you are running.
  • Explainable forgetting. Every drop, merge, truncation, and abstention is recorded with the rule that fired (Memory.decisions()). "Why don't you remember X?" has an answer — something an LLM-written memory can't give you, because its keep/drop decisions live inside model weights.
  • Deterministic and replayable. Same transcript in, same memory out — byte-identical across rebuilds. Memory failures can be diffed, bisected, and regression-gated like any other bug.
  • Plugs into what you build with. A Hermes memory provider, a Claude Code plugin, an OpenClaw plugin, or three lines of Python — all shar

项目描述

Local Agentic Memory

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

lopopolo
精选
lopopolo GitHub avatar

harness-engineering

Harness Engineering is a methodology for improving coding agent outputs by carefully crafting the environment around them—providing curated context, tools, and executable constraints that encode an organization’s nonfunctional requirements and cumulative lessons.

AI 与机器学习AI 智能体
2,390
slvDev
精选
slvDev GitHub avatar

esp32-ai

A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.

AI 与机器学习大语言模型
1,960
littledivy
精选
littledivy GitHub avatar

mimic

mimic captures traffic from any iOS or web app and automatically generates a Python client library that lets you call the app's API like a regular library.

AI 与机器学习
1,482