KH

kitfunso/hippo-memory

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

792 stars 47 forks 质量 93 趋势 21MIT

为人工智能智能体设计的生物启发记忆。衰变、检索强化、巩固。零运行时DEPS,SQLite,MCP。基于选择加入TypeSafe Jev重排序器的基准检索。

概览

为AI代理设计的内存层。基于海马体建模。默认是衰减,使用中强,每个内存都有来源。底层是SQLite,零运行时DEPS,适用于你所有的CLI代理。 一个命令。你机器上的每个 git 仓库都会获得内存。 大多数“AI内存”系统都是保存所有内容,之后再搜索。那是附加语义搜索的存储功能。这就是为什么你的代理上周一直遇到同一个部署bug。上一周也是如此。系统发现了四次失败。它根本不知道应该记得。 河马应用了大脑五亿年来一直掌握的正确方法。记忆会随着时间衰减。回忆会让它们更强大。三层生物层(缓冲层、情节层、语义层)在睡眠中融合。艰难的教训之所以能记住,是因为你用过它们。冷知识会消失,因为你没用过。 这也解决了可移植性的问题。你的ChatGPT记忆不会传到Claude那里。你的.cursorrules不会传到Codex。Hippo是每个代理背后一个进程。

概述(AI 翻译)

别再反复教你的经纪人了。

让你的智能体记忆像大脑一样运作。Hippo是编码智能体的长期记忆。它是你AI工具(Cursor、Claude Code、Codex)连接的关键层。它让你的专有数据完全本地化,并且随着时间学习。通过每次回忆强化记忆,Hippo保留有效的部分,让错误逐渐衰减,并不断增强智能体的智能。

Hippo 将你的编码代理内存保存在机器的 SQLite 存储中,并通过可读取和提交的 markdown 镜像。搜索开箱即用 BM25,没有模型和网络调用;嵌入是可选安装。hippo init 安装 Claude Code 和 OpenCode 的钩子,安装 Codex 时为 Codex 的 hooks.json 添加 2 个钩子(Codex 在 /hooks 中信任后运行),并为已有的 AGENTS.md 添加 Codex、Cursor、OpenClaw 和 Pi 的指令。任何 MCP 客户端都可以连接。标记错误内存会排名较低;运行 hippo supersede 则旧事实保留回忆。运行时无 deps。

安装好它,然后在一个项目里运行hippo init。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

🦛 Hippo

Your corrections, remembered by Claude Code, Codex and Cursor.

Hippo is open-source memory that runs on your machine and gives the rules it captured back to the agent when a new session starts. In our Claude Code test on 29 repositories, adding it to built-in memory cut repeat mistakes from 21 in 100 to 11, at the same cost.

Hippo keeps your coding agents’ memories in a SQLite store on your machine, with markdown mirrors you can read and commit. Search is BM25 out of the box, with no model and no network call; embeddings are an optional install. hippo init installs hooks for Claude Code and OpenCode, adds 2 hooks to Codex’s hooks.json when Codex is installed (Codex runs them once you trust them in /hooks), and adds instructions to an existing AGENTS.md for Codex, Cursor, OpenClaw and Pi. Any MCP client can connect. Mark a memory wrong and it ranks lower; run hippo supersede and the old fact leaves recall. Zero runtime deps.

Install it, then run hippo init inside one project. Init creates the project’s .hippo/ store and adds a block to the CLAUDE.md or AGENTS.md already there. On your machine it adds hooks for the agents it finds, such as Claude Code’s in ~/.claude/settings.json, and a daily 6:15am run. What hippo init changes lists all of it and the flags that skip each part.

npm install -g hippo-memory && hippo init

Setting up every git repo under a folder in one go is a second step. The Quick start says what it changes, then gives the command.

Installing the package alone captures nothing, and what runs after init depends on the agent.

Having an AI agent install it? Point it at llms-install.md: it installs, wires hippo into the agents it finds, and verifies with hippo doctor.

Works with:    Claude Code, Codex, Cursor, OpenClaw, OpenCode, Pi, any MCP client
Imports from:  ChatGPT, Claude (CLAUDE.md), Cursor (.cursorrules), Slack, markdown
Storage:       SQLite backbone with markdown mirrors. Git-trackable, human-readable.
在 GitHub 查看完整 README

安装

npx -y hippo-memory mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "hippo-memory": { "command": "hippo", "args": ["mcp"] } } }