turing-mem gives coding agents durable memory across sessions, projects, and machines. Memory lives in a self-describing markdown directory (recommended: a git repo synced across hosts) with global and per-project scopes — durable notes, append-only session logs, and a consolidated MEMORY.md per scope. No runtime, no daemon, no database — just files any agent can navigate.
The whole system optimizes one loop: user asks X → one index read → open ≤3 notes → answer
Architecture
Everything user-facing is a skill (SKILL.md) — the identical files install into Claude Code (as the tm plugin) and OpenAI Codex CLI, so there is no per-harness fork. Every entry point starts with the same bootstrap guard, and the store itself carries AGENTS.md, format references, and a version manifest, so any agent pointed at the directory can self-orient.
Design pillars
- Frictionless capture, gated durability. Append-only
log/ checkpoints are the only unconfirmed write. Durable notes, MEMORY.md, and anything global require explicit confirmation.
- Index-first retrieval. Never bulk-load the store: one
INDEX.md read, at most 3 note opens, one wikilink hop; a read-only search agent covers the misses.
- Identity that survives machines. A project folder is
<prefix>-<8hex>: the hash (from origin URL + repo-relative subpath of the session dir) is the identity anchor; the prefix is human-chosen and renameable. The same repo folder resolves to the same memory on every clone, zero prompts.
- Consolidation as a lifecycle. Checkpoints accumulate cheaply, then merge into notes and
MEMORY.md on demand (or on a ≥10-backlog nudge); consumed logs move to log/archive/, never deleted.
Install
Claude Code — from GitHub:
/plugin marketplace add Lucklyric/turing-mem
/plugin install tm@turing-mem
Claude Code — from a local clone (the repo is its own marketplace):
/plugin marketplace add /absolute/path/to/turing-mem
/plugin install tm@turing-mem
Codex CLI — installs the recall/remember/promote/consolidate/status skills (plus shared scripts/ and references/) into ~/.agents/skills/:
sh codex/install.sh
Full guide — local installs, dev mode, verification, uninstall: INSTALL.md. It is written to be agent-followable: clone the repo and tell your agent "install turing-mem from <path> — follow its INSTALL.md".
Quickstart
/tm:init — create the config (${XDG_CONFIG_HOME:-$HOME/.config}/turing-mem/config.json) and scaffold the store.
/tm:remember — capture a session checkpoint; /tm:remember <gist> writes a durable note (confirm-gated).
/tm:recall <question> — index-first retrieval from project and global memory.
/tm:consolidate — merge accumulated log checkpoints into durable notes and MEMORY.md.
/tm:checkup — auto mode: reads the current state and proposes the single best next action, one confirm-gated step at a time.
All verbs
| Verb | Scope | What it does |
|---|
/tm:init | store | First-run setup and guided repair |
/tm:remember [gist] | project | Two-tier capture: unconfirmed checkpoint, or confirm-gated durable note |
/tm:recall <q> | project + global | Index-first retrieval; deep-search agent on a miss |
/tm:consolidate | project | Merge logs → notes + MEMORY.md, archive the logs, bump the stamp |
/tm:promote | project → global | Promote a note to global memory (always confirmed) |
/tm:checkup | store + project | Auto triage: propose and run the best next action |
/tm:server | store | Local read-only memory browser (see below) |
/tm:status | store + project | Read-only health report with the matching repair verb |
/tm:retro | project | Retrospective review: stale/contradictory notes, promotion candidates |
/tm:reindex | project | global | Rebuild an index from the notes on disk |
/tm:link | config | Pin a directory to an existing project folder |
/tm:rename | store | Rename a project folder's prefix (identity suffix preserved) |
/tm:store <task> | store | Freeform store-root maintenance via a delegate agent |