Long-term memory for AI coding agents as a tree of plain files IHMT-MEMORY, a new long-term memory system for AI coding agents, stores decisions, preferences and corrections as a tree of plain text files on the user's disk and retrieves typically 200–900 tokens per query whether the memory holds 50 entries or 50,000, according to its project documentation. The tool is officially supported on Claude Code and tested with Codex and opencode, runs as a standard stdio MCP server, and requires Python 3.10 or newer plus git, with macOS and Linux (Ubuntu) tested and Windows instructions included but untested. Memory is shared across agents and models from Anthropic, OpenAI, Google and Meta, keeps superseded facts flagged OUTDATED as history, and sends nothing to the cloud. Long-term memory for your AI coding agents. Tell your agent something once — a decision, how your setup works, a correction — and it remembers it in every future session, in any project, with any of your agents. - Remembers across sessions. Decisions and their reasons, your environment, your preferences, people and projects, corrections. Your agent searches the memory before answering and saves what lasts, so you stop repeating yourself. - One memory for all your agents and models. Claude Code, Codex and opencode can share the same memory: what one saves, the others find. Tested with models from Anthropic, OpenAI, Google and Meta. - Saves tokens. Instead of pasting your notes or re-explaining context every session, the agent retrieves only what the question needs — typically 200–900 tokens, whether the memory holds 50 entries or 50,000, because search walks a tree instead of reading everything. Honest numbers https://github.com/gonzaroman/IHMT-MEMORY/blob/main/GUIDE.md 11-honest-numbers , including where it does not save. - Understands time. When something changes "I moved to Valencia", "staging is on PostgreSQL 17 now" , the old memory is kept as history, flagged OUTDATED , and searches answer with the current one first. Where you live, where you work and your stack are tracked automatically; any other correction is linked when the agent saves it with replaces . When a question is ambiguous "Luis" — which one? , it asks instead of guessing. - Portable. Your memory is one folder of plain text files. Copy it to another computer, back it up, or put it under version control — it works wherever you put it. - Local, private and readable. No cloud, no database, no account: IHMT stores everything on your disk and sends nothing anywhere. The memories your agent retrieves reach its model like any other context. Every memory is a text file you can open, and each person who installs IHMT starts with their own, empty memory. Compatibility. Officially supported: Claude Code . Also tested: Codex CLI and the ChatGPT desktop app — setup https://github.com/gonzaroman/IHMT-MEMORY/blob/main/GUIDE.md 56-using-it-with-codex-tested and opencode setup https://github.com/gonzaroman/IHMT-MEMORY/blob/main/GUIDE.md 57-using-it-with-opencode-tested . IHMT is a standard stdio MCP server, so any agent that supports local MCP servers should work — GitHub Copilot, Antigravity, Cursor, Windsurf, Gemini CLI, Claude Desktop… — and INSTALL.md https://github.com/gonzaroman/IHMT-MEMORY/blob/main/INSTALL.md knows how to configure them, but we have not tested those yet. All of them can share one memory. | You need | Why | |---|---| | Python 3.10 or newer | IHMT is written in Python | | git | to download IHMT and keep it updated | | An AI agent that can run commands Claude Code, Codex, opencode, Copilot in agent mode… | it installs IHMT and then uses the memory | | Internet, during the installation | to download the code and the MCP package; not needed afterwards | Missing Python or git? Your AI agent installs them for you it is instructed to ask you first . Python goes in your user folder, with no administrator password, so nothing system-wide changes. On a brand-new Mac, git may need one click: Apple shows a window asking to install its command-line tools. On a Mac, note that the python3 that comes with macOS is version 3.9, which is too old — that is why your agent may say Python is missing even though python3 exists. You do not need administrator rights, a database, an account, or any paid service beyond your agent. Tested on macOS and Linux Ubuntu ; on Windows the instructions are included but not tested yet. Details: GUIDE.md §3 https://github.com/gonzaroman/IHMT-MEMORY/blob/main/GUIDE.md 3-requirements . Paste this into the AI agent you want to give a memory to — Claude Code , Codex and opencode are tested; GitHub Copilot , Antigravity , Cursor , Windsurf , Gemini CLI , Claude Desktop and other MCP clients should work too: Install the IHMT memory MCP server for me from https://github.com/gonzaroman/IHMT-MEMORY — follow the instructions in its INSTALL.md. The agent follows INSTALL.md https://github.com/gonzaroman/IHMT-MEMORY/blob/main/INSTALL.md : it downloads IHMT to ~/IHMT-MEMORY , keeps your memory in ~/.ihmt , registers the server with itself only , adds the usage instructions, and tells you what it did. Then start a new session so the memory tools load. Using several agents? Paste the same prompt in each one, whenever you want. If IHMT is already installed — say you have used it with Claude for months and now want it in Codex — the agent finds that installation, updates it if it safely can, and connects to the same memory , so it knows what you told the others from day one. It needs an agent that can run terminal commands or edit files; chat-only assistants in a browser cannot install anything. Manual install Requirements: Python 3.10+, git, and your agent's CLI. git clone https://github.com/gonzaroman/IHMT-MEMORY.git ~/IHMT-MEMORY cd ~/IHMT-MEMORY python3 -m venv .venv .venv/bin/pip install -r requirements-mcp.txt mkdir -p ~/.ihmt Claude Code claude mcp add ihmt-memory -s user -e IHMT HOME="$HOME/.ihmt" -- "$PWD/.venv/bin/python" "$PWD/mcp server.py" claude mcp list ihmt-memory … ✔ Connected The server name must come before -e . Then append templates/memory-instructions.md https://github.com/gonzaroman/IHMT-MEMORY/blob/main/templates/memory-instructions.md to ~/.claude/CLAUDE.md . Codex — codex mcp add ihmt-memory --env IHMT HOME="$HOME/.ihmt" -- "$PWD/.venv/bin/python" "$PWD/mcp server.py" , then add default tools approval mode = "approve" to the mcp servers.ihmt-memory table in ~/.codex/config.toml above its env table and append the template to ~/.codex/AGENTS.md . Details https://github.com/gonzaroman/IHMT-MEMORY/blob/main/GUIDE.md 56-using-it-with-codex-tested . opencode — add an "ihmt-memory" entry "type": "local" , "command":