SuperAPIAI Directory

IHMT-MEMORY

github.com · AI coding

IHMT-MEMORY is an open-source tool that provides long-term memory for AI coding agents (such as Claude Code, Codex, opencode). It stores memories as a plain-text file tree on local disk, without requiring a vector database or cloud service. Before answering, the agent searches memory and saves information such as decisions, environment configurations, preferences, and corrections, thereby sharing memory across sessions, projects, and agents. It retrieves via a tree structure, typically consuming only 200–900 tokens per query, and supports time awareness (old memories are marked OUTDATED) and portability (the entire memory is just a folder).

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

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 add command; Codex uses codex mcp add ihmt-memory -- uvx ihmt-memory and configures default_tools_approval_mode = "approve"; opencode, in the configuration file, adds "ihmt-memory" entry.
  • Usage instructions: you need to use the template templates/memory-instructions.md Instructions 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.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools