惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
博客园 - 叶小钗
Last Week in AI
Last Week in AI
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC
P
Proofpoint News Feed
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
量子位
A
About on SuperTechFans
Engineering at Meta
Engineering at Meta
Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
博客园 - Franky
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
D
DataBreaches.Net
博客园_首页
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
GitHub - RohiRIK/OpenLtm: Long-Term Memory plugin for Cla...
RohiRik · 2026-06-09 · via Hacker News - Newest: "AI"

OpenLTM — Long-Term Memory for AI coding agents, now open source

You explained your auth layer once. Why does Claude ask again tomorrow?

Long-Term Memory for AI coding agents — Claude Code, OpenCode, and Pi

Version License Runtime Database Claude Code MCP

Persistent semantic memory that survives every session, every update, every compaction.


📣 Now open source

OpenLTM was born as a private memory layer for Claude Code. Today it's fully open source under MIT.

Same engine — automatic capture, semantic recall, importance-weighted decay, a queryable memory graph — now yours to read, fork, and extend. What started as one developer's "stop re-explaining my codebase" plugin is now an open foundation for agent memory across Claude Code, OpenCode, and Pi.

  • 🔓 MIT licensed — no cloud, no account, no telemetry. Your memory lives in a local SQLite DB you own.
  • 🧩 Provider-agnostic — one core (@rohirik/openltm-core), thin adapters per host.
  • 🛠 Hackable — hooks, skills, janitor providers, and the graph visualizer are all in the open.

Migrating from an earlier install? The marketplace is now RohiRIK/OpenLtm and the plugin is openltm. Your existing memory database carries over.


The philosophy

Four ideas. No exceptions.

  • Memory should be automatic. Hooks do the work. The session end hook extracts patterns, the session start hook injects them back. You shouldn't have to remember to remember.
  • Decay is a feature, not a bug. A gotcha from six months ago that you never revisited probably no longer applies. Set importance: 5 to make something permanent — everything else ages out naturally.
  • Semantic over keyword. FTS5 full-text search runs first; if it returns nothing, vector embeddings kick in. You search by meaning, not exact words — "how we handle async errors" finds the right memory even if you never wrote those exact words.
  • Zero config, zero lock-in. Install once, works everywhere. Every setting has a sane default. The DB lives outside the plugin directory so it survives every update. No cloud, no telemetry, no account.

What you get

🔍 Recall Past decisions, patterns, and gotchas — before you start work
🧠 Learn Every session, automatically — no manual note-taking
💉 Inject Top context at session start so Claude picks up where it left off
Decay Stale memories fade while critical knowledge lives forever
🕸 Graph Traverse relationships between memories for reasoning chains
🗺 Visualize See your entire memory network in a browser-based explorer
Vec Recall Semantic vector (KNN) recall via sqlite-vec; degrades to JS-cosine when unavailable
🔌 Extensions sqlite-vec + Honker (queue/cron/pub-sub) loaded dynamically; graceful fallback without system libsqlite3

Install

Marketplace (recommended)

claude plugin marketplace add https://github.com/RohiRIK/OpenLtm
claude plugin install openltm

Restart Claude Code. That's it. Four Claude Code hooks + one git post-commit hook auto-wire, four commands load, five skills activate, and your openltm.db migrates or creates itself.

bunx (no clone)

bunx @rohirik/openltm-core          # auto-detect Claude Code, OpenCode
bunx @rohirik/openltm-core --pi     # experimental Pi adapter
bunx @rohirik/openltm-core --dry-run --claude  # preview without writing

Dev / git clone

git clone https://github.com/RohiRIK/OpenLtm ~/Projects/OpenLtm
cd ~/Projects/OpenLtm && bash install.sh

Quick Start

Start a new session. Context is injected at the top automatically.

Then try:

/openltm:memory recall auth       — what do we know about auth in this project?
/openltm:memory learn <insight>   — save something worth keeping
/openltm:health                   — memory health + decay summary
/openltm:project init             — set a goal for the current project

That's it. The rest is hooks doing the work.


The shape of memory

Claude Code
   │
   ├── 4 Commands  ──┐
   ├── 5 Skills    ──┼──▶  openltm MCP server ──▶  openltm.db
   └── 5 Hooks     ──┘                        (memories, tags,
                                                context_items,
                                                memory_relations,
                                                memories_fts)

Full deep-dive — schema, hook architecture, decay formula, ADRs — in How It Works and Architecture.

SQLite Extensions: The plugin loads sqlite-vec (vec0 / KNN vector search) and Honker (async embedding queue, leader-elected cron, pub-sub) when a system extension-enabled libsqlite3 is available. Both degrade gracefully — missing binary or library leaves the capability off and falls back to JS-cosine, file-watch polling, or in-process cron. Controlled with LTM_DISABLE_VEC, LTM_DISABLE_HONKER, LTM_SQLITE_LIB, and LTM_HONKER_EXT env vars.


Verify

/openltm:health                    # plugin health + hooks + decay
/openltm:memory recall test        # returns results (or "no results" on fresh install)

Start a new session — you should see context injected at the top. If not, run /openltm:health to diagnose.


Go deeper

Full documentation index: docs/.

I want to… Read
Get running in five minutes Quickstart
See every install option Installation
Use every command and its flags Commands
Tune decay, injection, embedding behavior Configuration
See how it works under the hood How It Works · Architecture
Understand the schema and data model DB Spec
See all hooks, skills, and MCP tools Hooks · Skills · MCP Tools
Fix a problem Troubleshooting
See the product vision and where it's going PRD · Roadmap
Contribute a change Contributing
Check what changed Changelog

Contributing

Open an issue first to discuss the change, then send a PR. The full workflow — setup, tests, the version-bump rule, and release steps — is in CONTRIBUTING.md.

Report a Bug


License

MIT — RohiRIK


Built for Claude Code

Powered by caffeine, SQLite, and the persistent belief that context shouldn't die at the end of a session.