← Reddit

Most agent-memory tools are markdown you keep grooming. I wanted something that travels between models and machines, so I built a protocol.

Reddit · devulders · May 12, 2026
A developer built ltm, a JSON protocol and toolkit that preserves AI agent context across different models, editors, and machines through small "Core Memory Packets" containing goals, decisions, attempted solutions, and next steps. The 2-5 KB packets address the problem of agent memories not transferring between platforms and reduce token waste by preventing agents from re-exploring already-investigated code paths. The open-source tool offers self-hosting or managed hosting options, includes security redaction for credentials, and integrates with multiple AI clients through MCP support.

Detailed Analysis

A developer working across multiple AI coding environments has released an open-source tool called **ltm** (long-term memory), designed to solve a persistent limitation in modern AI-assisted development workflows: the inability of agent context to travel between models, machines, or editor environments. The author, Dennis de Vulder, identified that existing approaches to agent memory — primarily markdown files like CLAUDE.md or vendor-specific context stores — are inherently local and fragile, requiring continuous manual grooming and offering no portability when a developer switches from Claude to Codex, or from a Mac to a Linux machine. The ltm project proposes a small, structured JSON specification called the Core Memory Packet as the foundational artifact, with a CLI and a server acting as reference implementations rather than the central product. A packet contains five required fields — goal, locked-in decisions, attempted approaches, dead ends, and next steps — and is designed to remain compact at 2 to 5 KB, covering only the irreducible working knowledge that cannot be reconstructed from a repository's commit history.

The design philosophy behind ltm reflects a deliberate set of tradeoffs that distinguish it from ad-hoc memory solutions. By limiting packet contents to decision context and failed paths rather than full session transcripts or configuration files, the tool avoids two common failure modes: context bloat that wastes tokens, and configuration leakage that breaks reproducibility across environments. The author explicitly separates "intent" — which is portable — from "configuration," which remains local. CLAUDE.md files, system prompts, and tool setups never enter a packet. This makes ltm philosophically closer to a structured handoff protocol than a memory store, analogous to a surgeon's pre-operative briefing that captures only what cannot be inferred from the patient's chart. Security is treated as a first-class concern: all packets are scanned for secrets before transmission, with AWS keys, GitHub tokens, JWTs, private keys, and OAuth tokens blocked by default, reflecting awareness that persistent memory systems create new attack surfaces for credential exfiltration.

The tool's MCP (Model Context Protocol) integration is particularly significant given the current state of the AI tooling ecosystem. By exposing `ltm save` and `ltm resume` as MCP tools, the system allows Claude Code, Cursor, Zed, and Codex to invoke memory operations natively without requiring user intervention or manual ID tracking. This positions ltm within the emerging layer of infrastructure that treats AI models as interchangeable compute behind a standardized interface — a pattern consistent with Anthropic's own push for MCP as a universal connector between agents and external systems. The self-hostable architecture (a single Go binary with SQLite, deployable on a minimal VPS) and the availability of a managed hub on the same protocol further lower adoption barriers and avoid vendor lock-in, a recurring complaint in the agent tooling space.

The broader significance of ltm lies in what it reveals about the current maturity gap in AI-assisted software development. Despite rapid advances in model capability, the infrastructure for managing multi-session, multi-model, multi-machine workflows remains largely artisanal. Developers are still solving fundamental continuity problems with text files and manual copy-paste. The author's framing — that the commit log handles the 90% that went well, while ltm handles the invisible constraints that shaped code without ever appearing in it — identifies a genuine blind spot in how software knowledge is currently captured and transmitted. As AI agents become more deeply embedded in professional development workflows, the demand for structured, portable, model-agnostic memory protocols is likely to grow, and projects like ltm represent early attempts to define what that layer of infrastructure should look like. The project is released under Apache 2.0 and openly attributes AI involvement in its own development through Assisted-by commit trailers following Linux kernel conventions.

Read original article →