经 AI Skill Hub 精选评估,海马记忆系统 获评「强烈推荐」。这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.2 分,适合有一定技术背景的用户使用。
为AI智能体设计的生物启发型记忆框架。模拟人脑记忆衰减机制,支持动态检索强化和上下文管理。适合需要长期记忆和智能遗忘机制的AI应用开发者和工作流设计者。
海马记忆系统 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
为AI智能体设计的生物启发型记忆框架。模拟人脑记忆衰减机制,支持动态检索强化和上下文管理。适合需要长期记忆和智能遗忘机制的AI应用开发者和工作流设计者。
海马记忆系统 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:npm 全局安装 npm install -g hippo-memory # 方式二:npx 直接运行(无需安装) npx hippo-memory --help # 方式三:项目依赖安装 npm install hippo-memory # 方式四:从源码运行 git clone https://github.com/kitfunso/hippo-memory cd hippo-memory npm install npm start
# 命令行使用
hippo-memory --help
# 基本用法
hippo-memory [options] <input>
# Node.js 代码中使用
const hippo_memory = require('hippo-memory');
const result = await hippo_memory.run(options);
console.log(result);
# hippo-memory 配置说明 # 查看配置选项 hippo-memory --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export HIPPO_MEMORY_CONFIG="/path/to/config.yml"
The secret to good memory isn't remembering more. It's knowing what to forget.
<p align="center"> <img src="./assets/hippo-init.svg" alt="hippo init --scan ~ — initializing memory across all repos" width="720"> </p>
A memory layer for AI agents. Modeled on the hippocampus. Decay by default, strength through use, provenance on every memory. SQLite under the hood, zero runtime deps, works with every CLI agent you have.
npm install -g hippo-memory && hippo init --scan ~
One command. Every git repo on your machine gets memory.
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.
Dependencies: Zero runtime deps. Node.js 22.5+. Optional embeddings via @xenova/transformers.
---
A memory's life across a typical session, before walking each feature in turn:
```
If you have a CLAUDE.md, it patches it. AGENTS.md for Codex/OpenClaw/OpenCode. .cursorrules for Cursor. For Codex, Hippo also wraps the detected launcher in place so /exit can consolidate memory without a manual PATH step. No manual hook install needed. Your agent starts using Hippo on its next session.
It also registers the current project in Hippo's workspace registry and installs one machine-level daily runner (6:15am). That runner sweeps every registered workspace, runs hippo learn --git --days 1, then hippo sleep. You get strict daily consolidation without creating one OS task per project.
To skip: hippo init --no-hooks --no-schedule
---
hippo context --framing suggest
hippo context --framing assert
```
Three modes: observe (default), suggest, assert. Choose based on how directive you want the memory to be.
---
```
---
hippo init detects your agent framework and patches the right config file automatically:
| Framework | Detected by | Patches |
|---|---|---|
| Claude Code | CLAUDE.md or .claude/settings.json | CLAUDE.md + SessionStart/SessionEnd hooks in settings.json |
| Codex | AGENTS.md or .codex | AGENTS.md + automatic in-place Codex launcher wrapper |
| Cursor | .cursorrules or .cursor/rules | .cursorrules |
| OpenClaw | .openclaw or AGENTS.md | native OpenClaw plugin or AGENTS.md |
| OpenCode | .opencode/ or opencode.json | AGENTS.md + TS plugin at ~/.config/opencode/plugins/hippo.ts (subscribes to session.idle + session.created) |
No extra commands needed. Just hippo init and your agent knows about Hippo.
If you prefer explicit control:
hippo hook install claude-code # patches CLAUDE.md + adds SessionStart/SessionEnd + UserPromptSubmit hooks
hippo hook install codex # optional repair/manual run: patches AGENTS.md + wraps the detected Codex launcher
hippo hook install cursor # patches .cursorrules
hippo hook install openclaw # patches AGENTS.md
hippo hook install opencode # patches AGENTS.md + installs the opencode TS plugin
This adds a ` ... ` block that tells the agent to: 1. Run hippo context --auto --budget 1500 at session start 2. Run hippo remember "<lesson>" --error on errors 3. Run hippo outcome --good on completion
For Claude Code, it also adds: - a SessionEnd hook so hippo sleep runs automatically when the session exits - a SessionStart hook that prints the previous session's consolidation output - a UserPromptSubmit hook that runs hippo context --pinned-only --include-recent 5 --format additional-context every turn. It re-injects pinned memories (hippo remember <text> --pin) plus the last 5 writes, so fresh same-session lessons appear on the next prompt before you pin them. Opt out with {"pinnedInject":{"enabled":false}} in .hippo/config.json.
To remove: hippo hook uninstall claude-code
```bash npm install -g hippo-memory
hippo remember "FRED cache silently dropped the tips_10y series" --tag error hippo recall "data pipeline issues" --budget 2000 ```
---
Full release history: CHANGELOG.md · GitHub Releases
```markdown
hippo init auto-detects your agent framework and wires itself in:
```bash cd my-project hippo init
```
---
| Command | What it does |
|---|---|
hippo init | Create .hippo/ + auto-install agent hooks |
hippo init --global | Create global store at ~/.hippo/ |
hippo init --no-hooks | Create .hippo/ without auto-installing hooks |
hippo remember "<text>" | Store a memory |
hippo remember "<text>" --tag <t> | Store with tag (repeatable) |
hippo remember "<text>" --error | Store as error (2x half-life) |
hippo remember "<text>" --pin | Store with no decay |
hippo remember "<text>" --verified | Set confidence: verified (default) |
hippo remember "<text>" --observed | Set confidence: observed |
hippo remember "<text>" --inferred | Set confidence: inferred |
hippo remember "<text>" --global | Store in global ~/.hippo/ store |
hippo recall "<query>" | Retrieve relevant memories (local + global) |
hippo recall "<query>" --budget <n> | Recall within token limit (default: 4000) |
hippo recall "<query>" --limit <n> | Cap result count |
hippo recall "<query>" --why | Show match reasons and source buckets |
hippo recall "<query>" --json | Output as JSON |
hippo context --auto | Smart context injection (auto-detects task from git) |
hippo context "<query>" --budget <n> | Context injection with explicit query (default: 1500) |
hippo context --limit <n> | Cap memory count in context |
hippo context --budget 0 | Skip entirely (zero token cost) |
hippo context --framing <mode> | Framing: observe (default), suggest, assert |
hippo context --format <fmt> | Output format: markdown (default) or json |
hippo import --chatgpt <path> | Import from ChatGPT memory export (JSON or txt) |
hippo import --claude <path> | Import from CLAUDE.md or Claude memory.json |
hippo import --cursor <path> | Import from .cursorrules or .cursor/rules |
hippo import --markdown <path> | Import from structured markdown (headings -> tags) |
hippo import --file <path> | Import from any text file |
hippo import --dry-run | Preview import without writing |
hippo import --global | Write imported memories to ~/.hippo/ |
hippo capture --stdin | Extract memories from piped conversation text |
hippo capture --file <path> | Extract memories from a file |
hippo capture --dry-run | Preview extraction without writing |
hippo sleep | Run consolidation (decay + merge + compress) |
hippo sleep --dry-run | Preview consolidation without writing |
hippo status | Memory health: counts, strengths, last sleep |
hippo outcome --good | Strengthen last recalled memories |
hippo outcome --bad | Weaken last recalled memories |
hippo outcome --id <id> --good | Target a specific memory |
hippo inspect <id> | Full detail on one memory |
hippo forget <id> | Force remove a memory |
hippo embed | Embed all memories for semantic search |
hippo embed --status | Show embedding coverage |
hippo watch "<command>" | Run command, auto-learn from failures |
hippo learn --git | Scan recent git commits for lessons |
hippo learn --git --days <n> | Scan N days back (default: 7) |
hippo learn --git --repos <paths> | Scan multiple repos (comma-separated) |
hippo daily-runner | Sweep registered workspaces and run daily learn+sleep |
hippo conflicts | List detected open memory conflicts |
hippo conflicts --json | Output conflicts as JSON |
hippo resolve <id> | Show both conflicting memories for comparison |
hippo resolve <id> --keep <mem_id> | Resolve: keep winner, weaken loser |
hippo resolve <id> --keep <mem_id> --forget | Resolve: keep winner, delete loser |
hippo promote <id> | Copy a local memory to the global store |
hippo share <id> | Share with attribution + transfer scoring |
hippo share <id> --force | Share even if transfer score is low |
hippo share --auto | Auto-share all high-scoring memories |
hippo share --auto --dry-run | Preview what would be shared |
hippo peers | List projects contributing to global store |
hippo sync | Pull global memories into local project |
hippo invalidate "<pattern>" | Actively weaken memories matching an old pattern |
hippo invalidate "<pattern>" --reason "<why>" | Include what replaced it |
hippo decide "<decision>" | Record architectural decision (90-day half-life) |
hippo decide "<decision>" --context "<why>" | Include reasoning |
hippo decide "<decision>" --supersedes <id> | Supersede a previous decision |
hippo hook list | Show available framework hooks |
hippo hook install <target> | Install hook (claude-code also adds Stop hook for auto-sleep) |
hippo hook uninstall <target> | Remove hook |
hippo handoff create --summary "..." | Create a session handoff |
hippo handoff latest | Show the most recent handoff |
hippo handoff show <id> | Show a specific handoff by ID |
hippo session latest | Show latest task snapshot + events |
hippo session resume | Re-inject latest handoff as context |
hippo current show | Compact current state (task + session events) |
hippo wm push --scope <s> --content "..." | Push to working memory |
hippo wm read --scope <s> | Read working memory entries |
hippo wm clear --scope <s> | Clear working memory |
hippo wm flush --scope <s> | Flush working memory (session end) |
hippo dashboard | Open web dashboard at localhost:3333 |
hippo dashboard --port <n> | Use custom port |
hippo mcp | Start MCP server (stdio transport) |
---
Native plugin with auto-context injection, workspace-aware memory lookup, and tool hooks for auto-learn / auto-sleep. When autoSleep is enabled, the OpenClaw plugin now launches hippo sleep in a detached background worker at session end so the live session can exit immediately.
Query-time retrieval still uses the active workspace store plus the shared global store. Daily consolidation comes from the machine-level runner that hippo init / hippo setup installs.
openclaw plugins install hippo-memory
openclaw plugins enable hippo-memory
Plugin docs: extensions/openclaw-plugin/. Integration guide: integrations/openclaw.md.
Plugin with SessionStart/Stop hooks and error auto-capture. See extensions/claude-code-plugin/.
Full integration details: integrations/
---
The AI-memory category matured fast in 2026. Hippo's specific take — bio-decay, strengthen-on-use, outcome-weighted half-lives — is one stance among several. The table below is a feature snapshot, not a verdict: graph-first systems (gbrain, Zep, Cognee), agent-managed systems (Letta), and version-control / skill-distillation takes (Memoria, EverMind) all solve adjacent problems with different mechanics.
| Feature | Hippo | [MemPalace](https://github.com/milla-jovovich/mempalace) | [Mem0](https://github.com/mem0ai/mem0) | [Basic Memory](https://github.com/basicmachines-co/basic-memory) | [gbrain](https://hermesatlas.com/projects/garrytan/gbrain) | [Zep](https://www.getzep.com/) | [Letta](https://github.com/letta-ai/letta) | [Cognee](https://www.cognee.ai/) | [Memoria](https://github.com/matrixorigin/Memoria) | [EverMind](https://evermind.ai/) |
|---|---|---|---|---|---|---|---|---|---|---|
| Decay by default | Yes | No | No | No | No | No | No | No | No | No |
| Retrieval strengthening | Yes | No | No | No | No | No | No | Partial (recall tuning) | No | Partial (Skill Memory distills patterns) |
| Reward-proportional decay | Yes | No | No | No | No | No | No | No | No | No |
| Hybrid search (BM25 + embeddings) | Yes | Embeddings + spatial | Embeddings only | No | Yes (vec + rerank + graph) | Yes (graph + vec) | ? | Yes (GraphRAG) | Yes (vector + full-text) | Yes (mRAG, multi-modal) |
| Schema acceleration / knowledge graph | Yes (schema) | No | No | No | Yes (typed KG, self-wiring) | Yes (temporal KG) | No | Yes (auto-ontologies) | No (typed claims) | Yes (hierarchical: user/group/agent) |
| Conflict detection + resolution | Yes | No | No | No | Yes (eval-surfaced) | Yes (auto-invalidate stale facts) | No | No | Yes (auto-detect + quarantine) | Partial (temporal tracking) |
| Multi-agent shared memory | Yes | No | No | No | Yes (brain repo, team mounts) | Yes | No (single-agent state) | Yes | Yes (branch/merge across sessions) | Yes (multi-agent coordination) |
| Transfer scoring | Yes | No | No | No | No | No | No | No | No | No |
| Outcome tracking | Yes | No | No | No | No | No | No | No | No | Partial (Cases: agent trajectories) |
| Confidence tiers | Yes | No | No | No | No (typed facts) | No | No | No | No | No |
| Spatial organization | No | Yes (wings/halls/rooms) | No | No | No | No | No | No | No | No |
| Lossless compression | No | Yes (AAAK, 30x) | No | No | No | No | No | No | No | No |
| Cross-tool import (ChatGPT/Claude/Cursor) | Yes | No | No | No | Partial (data sources) | ? | No | Partial (28 data sources) | No (Git ops) | Partial (mRAG: PDFs/images/URLs) |
| Auto-hook install | Yes | No | No | No | No | No | No | No | No | No |
| MCP server | Yes | Yes | No | No | Yes (stdio + HTTP/OAuth) | Partial (managed) | Yes (via Letta Code) | Yes (first-party Claude/LangGraph) | Yes | ? |
| Zero runtime deps | Yes | No (ChromaDB) | No | No | No (PGLite or PG+pgvector) | No (managed service) | No (Python deps) | No (Python deps) | Yes (single Rust binary) | No (managed + OSS) |
| LongMemEval (best published) | 86.8% R@5 (F13+F9, oracle\*) | 96.6% raw / 100% reranked R@5 | ~49-85% R@5 | N/A | 97.6-97.9% R@5 (s_cleaned\*) | N/A (LoCoMo 80.3%) | N/A | N/A | 88.78% overall accuracy w/ reader\*\* | 83.00% overall\*\* (LoCoMo 93.05%, HaluMem 93.04%) |
| Git-friendly | Yes | No | No | Yes | Yes | No | No | No | Yes (Git is the model) | ? |
| Framework agnostic | Yes | Yes | Partial | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
| License | MIT | (open) | Apache-2.0 | (open) | MIT | Apache-2.0 (community) | Apache-2.0 | MIT (core) | Apache-2.0 | Apache-2.0 (OSS) + cloud |
\* Split-mismatched: Hippo's 86.8% is on longmemeval_oracle (3 sessions per haystack); gbrain's 97.6% is on longmemeval_s_cleaned (~40 sessions per haystack). Different splits, different difficulty. Not directly comparable.
\\ Different metric: Memoria's 88.78% and EverMind's 83% are reported as overall accuracy with a reader LLM, not retrieval R@5. Higher denominator + LLM helps. Not directly comparable to retrieval-only R@5 numbers above.
Different tools answer different questions. Mem0 and Basic Memory implement "save everything, search later." MemPalace implements "store everything, organize spatially for retrieval." gbrain, Zep, and Cognee implement "extract typed entities and relationships into a knowledge graph." Letta implements "the agent edits its own memory blocks." Memoria implements "Git-style version control over the memory state itself." EverMind implements "self-evolving Skill Memory + multi-modal retrieval over hierarchical scopes." Hippo implements "forget by default, earn persistence through use." These are complementary takes, not a single-axis ranking: bio-lifecycle (Hippo) + GraphRAG (gbrain/Cognee/Zep) + agent-self-edit (Letta) + memory-VCS (Memoria) + skill-distillation (EverMind) cover different parts of the same problem.
---
创新性强的生物学启发式记忆框架,填补AI智能体长期记忆的空白。设计思路新颖,675星体现认可度,TypeScript实现便于集成。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:海马记忆系统 的核心功能完整,质量优秀。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | hippo-memory |
| Topics | AI记忆生物启发TypeScript工作流智能体 |
| GitHub | https://github.com/kitfunso/hippo-memory |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-05-24 · 更新时间:2026-05-24 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端