LTM: A JSON Protocol for Portable Agent Memory Across Models and Machines

✍️ OpenClawRadar📅 Published: May 12, 2026🔗 Source
Ad

If you use Claude across multiple editors or machines, you've likely hit the context portability wall: your CLAUDE.md doesn't follow you to Cursor, Cursor rules don't transfer to Codex, and nothing survives a model or OS switch. Existing "agent memory" tools are mostly markdown files you manually groom or vendor-locked stores. A new open-source project called ltm takes a different approach: a small JSON protocol called the Core Memory Packet, plus a CLI and server to move packets around.

How It Works

At the end of a session, the agent calls ltm save. At the start of the next session, ltm resume pulls in the dossier on the current obstacle—regardless of model, harness, or machine. A packet contains five required fields and is typically 2 to 5 KB:

  • Goal: what you're trying to achieve
  • Decisions locked in: constraints that shaped the code
  • What you've already tried: dead ends and rejected approaches
  • Next step: what to do next

The commit log already carries the work that went fine. LTM focuses on what agents can't reconstruct from a repo: dead ends and constraints that never appear in code.

Ad

Key Design Decisions

  • Model, harness, and machine agnostic: a packet written by Claude on macOS reads fine for Codex on Linux, or for a teammate on their machine. The protocol is the product; CLI and server are reference implementations.
  • Token-efficient: a 2–5 KB packet at session start is cheaper than letting the agent re-explore the codebase to rediscover what was already tried and rejected.
  • Self-host or managed hub: same protocol either way. One Go binary, SQLite on disk, runs on a low-end VPS.
  • Redaction is load-bearing: every packet is scanned before leaving the machine. AWS keys, GitHub tokens, JWTs, private keys, absolute paths, Slack and Stripe tokens—all blocked by default. Secrets don't travel.
  • MCP support out of the box: Claude Code, Cursor, Zed, Codex, etc. can call save and resume as tools without ever typing an ID.
  • Intent is portable, configuration isn't: packets never carry CLAUDE.md, skills, prompts, or tool setup—those stay local.

Try It Without Signing Up

You can see what a resume looks like immediately: ltm example --resume runs the full flow against a sample packet and drops the resume block on your clipboard.

License and Ethics

LTM is Apache 2.0. The builder acknowledges LLM assistance: every agent-touched commit carries an Assisted-by: trailer in Linux kernel conventions.

Repo: github.com/dennisdevulder/ltm

📖 Read the full source: r/ClaudeAI

Ad

👀 See Also

Open Source Browser Tool for Testing MCP Servers Without Installation
Tools

Open Source Browser Tool for Testing MCP Servers Without Installation

An open source web tool called MCP Playground lets developers test MCP servers directly in their browser using WebContainers, a WASM Node.js runtime. It can run npm-based MCP servers locally without backend installation and connect to remote servers via URL.

OpenClawRadar
Cognithor: A Local-First Agent OS with PGE Trinity Architecture
Tools

Cognithor: A Local-First Agent OS with PGE Trinity Architecture

Cognithor is a fully local, autonomous Agent OS built over a year with 16 development phases. It features the PGE Trinity architecture (Planner → Gatekeeper → Executor), 11,609+ tests with 89% coverage, and supports 16 LLM providers including Ollama and LM Studio.

OpenClawRadar
Introducing operate.txt: A YAML spec for AI agents navigating SaaS products
Tools

Introducing operate.txt: A YAML spec for AI agents navigating SaaS products

A developer created operate.txt, a YAML file hosted at yourdomain.com/operate.txt that documents screen details, loading states, irreversible actions, and step-by-step paths for AI agents using computer use features. The spec addresses issues like Claude asking 'is this broken?' during legitimate loading screens.

OpenClawRadar
certctl: Self-hosted certificate lifecycle platform with 78 API endpoints for AI agent automation
Tools

certctl: Self-hosted certificate lifecycle platform with 78 API endpoints for AI agent automation

certctl is a self-hosted certificate lifecycle platform built with Go and TypeScript that exposes 78 REST API endpoints for certificate management. The platform is issuer-agnostic and target-agnostic, with an MCP server planned to expose all functionality as native MCP tools.

OpenClawRadar