IHMT-MEMORY (Infinite Hierarchical Memory Tree) is a long-term memory system for AI coding agents. It stores memories as a local plain-text file tree and does not depend on a vector database, server, or third-party service; it only requires Python 3.10+ and the standard library.
Purpose: to let AI coding agents remember information across sessions, projects, and agents—for example, decisions and their reasons, environment configurations, personal preferences, people-to-project relationships, corrections, etc.—so users do not have to explain repeatedly.
Main capabilities:
- Cross-session memory: the agent searches memory before answering and saves persistent information.
- Multi-agent sharing: Claude Code, Codex, opencode, etc. can share the same memory; what one saves, the others can find.
- Token savings: through tree-based retrieval (root → branch → leaf), only files relevant to the question are opened, typically consuming 200–900 tokens, largely independent of the number of memory entries (from 50 to 50,000).
- Time awareness: when information changes, old memories are retained as history and marked OUTDATED; searches prioritize returning current values; for ambiguous questions, it asks rather than guesses.
- Portable: memory is a plain-text folder that can be copied, backed up, or placed under version control.
- Local and private: all data is stored on local disk and is not uploaded to the cloud; each installer's initial memory is empty.
Usage:
- Install via an AI agent: paste the installation prompt to an agent that supports terminal commands or file editing (such as Claude Code, Codex, opencode). The agent will follow INSTALL.md to download IHMT to ~/IHMT-MEMORY, save memories in ~/.ihmt, and register the MCP server.
- Manual installation: requires Python 3.10+, git, and an agent CLI. Provides uvx and pipx installation methods, for example
uvx ihmt-memory. - Configure MCP: Claude Code uses
claude mcp addcommand; Codex usescodex mcp add ihmt-memory -- uvx ihmt-memoryand configuresdefault_tools_approval_mode = "approve"; opencode, in the configuration file, adds"ihmt-memory"entry. - Usage instructions: you need to use the template
templates/memory-instructions.mdInstructions appended to the agent's instruction files (such as ~/.claude/CLAUDE.md, ~/.codex/AGENTS.md) so that the agent recalls memories before answering and saves corrections. - Graphical interface: provides a local read-only interface with four screens—Settings, Explore, Diagnostics, and Timeline—supporting Spanish/English.
Use cases:
- Developers who need AI coding agents to remember project decisions, environment configurations, and personal preferences.
- Users who use multiple AI agents and want to share memories.
- Privacy-focused users who want memories stored entirely locally.
- Scenarios that require long-term tracking of information changes (such as place of residence or tech stack updates).
Limitations:
- Officially supports Claude Code; Codex and opencode have been tested; other MCP clients (such as GitHub Copilot, Cursor, Windsurf, Gemini CLI, Claude Desktop) should theoretically work but have not been tested.
- Requires the agent to be able to run terminal commands or edit files; pure browser-based chat assistants cannot install it.
- On macOS, the system-provided python3 is version 3.9, which is too old; 3.10+ must be installed.
- Windows has installation instructions but has not been tested.
- The project indexing tool (ProjectIndex) may increase costs in A/B testing; it is recommended as an optional feature and should not be mandated for use in CLAUDE.md.
- Content retrieved from memory is sent to the model invoked by the agent, just like other context.
- No information on fees, pricing, or performance guarantees is provided.