IHMT Memory
v1.4.0Long-term memory for AI coding agents, stored as a tree of plain local files.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_memory
Search the user's long-term memory (IHMT): decisions, setup, preferences, people, earlier sessions. Use several distinctive words, not a bare name. Returns the best memory with its date (plus one line per other match). AMBIGUOUS means several memories fit equally: ask the user or call again with `clue` (a place, date, project). Always relay OUTDATED notices. Args: query: What to look for, in any language. clue: Distinguishing detail, only after an AMBIGUOUS reply. detail: "compact" (default) or "full" (adds ids, tree paths and excerpts). also:…
| Parameter | Type | Description |
|---|---|---|
query * | string | |
also | ||
clue | ||
detail | string | |
project | string | |
scope | string | |
since | string |
save_memory
Store durable knowledge in the user's long-term memory (IHMT). Save decisions and why, setup, preferences, people and projects, procedures. Not transient chat, not secrets. Write it to make sense months later, and start with the date ("2026-02-03: ...") when it belongs to one. Reports how it was filed and any contradiction with an earlier memory — relay that notice. Args: content: The text to remember, self-contained. domain: Leave "general" to let IHMT classify it, or e.g. "software.java". content_type: "auto" (recommended), "code", "narrative",…
| Parameter | Type | Description |
|---|---|---|
content * | string | |
content_type | string | |
domain | string | |
replaces | string |
mark_outdated
Flag one memory as corrected by another, after save_memory listed candidates. The old memory is kept (it was true on its date) but carries an OUTDATED notice, and searches answer with the new one first. Use the ids save_memory or a full search printed. Args: old_id: Id of the memory that is no longer current. new_id: Id of the memory that replaces it.
| Parameter | Type | Description |
|---|---|---|
new_id * | string | |
old_id * | string |
project_map
Compact map of a codebase: files with their size in tokens, optionally their symbols and line ranges. Call it before exploring a project instead of listing directories and opening files. Indexes the project on first use and resyncs changed files by checksum on every call. The map fits a token budget: on a large project it says which directories to zoom into. Args: path: Project root directory (absolute). detail: "files" (cheapest) or "symbols" (adds methods/classes with first-last line). subpath: Restrict to a directory inside the project, e.g. "src/ma…
| Parameter | Type | Description |
|---|---|---|
path * | string | |
detail | string | |
scope | string | |
subpath | string |
find_code
Find the method or class that answers a question about a codebase; returns only that symbol. Output: "file:first-last Symbol" and its code, instead of whole files. Name the class or method if you know it ("PedidoJpaMapper aDominio"). AMBIGUOUS lists candidates in different files: refine the query or pass `clue`. The index resyncs by checksum, so code is never stale. Args: query: What you are looking for: identifiers plus a few words. path: Project root directory (absolute). scope: "main" (skip tests, default), "test" or "all". subpath: Restric…
| Parameter | Type | Description |
|---|---|---|
path * | string | |
query * | string | |
clue | ||
max_tokens | integer | |
scope | string | |
subpath | string |
read_file
Read a text file, remembering what you were given this session. Reading it again returns "UNCHANGED" (a few tokens) or only a unified diff against your earlier copy. Prefer it over re-reading a file you already read in this session. Pass force=true if the earlier copy is no longer in your context (e.g. after a context compaction). With start_line/end_line (e.g. a range from project_map) only those lines are returned. Args: path: Absolute path of the file. force: Return the full content even if it has not changed. start_line: First line to return (1…
| Parameter | Type | Description |
|---|---|---|
path * | string | |
end_line | integer | |
force | boolean | |
start_line | integer |
note
Keep something you learned in this session (where a thing lives, what a method does, a result). Session notes are cheap to recall later and survive a context compaction; they vanish when the session ends. Include file:line when relevant. Durable facts belong in save_memory instead.
| Parameter | Type | Description |
|---|---|---|
text * | string |
recall
Search what you kept earlier in this session with note or digest_output (not long-term memory). Cheaper than re-reading files or re-running commands to remember what you already found out.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
clue |
digest_output
Condense a long command output (build log, test report) and keep the full text for recall. Returns the first lines, every line that mentions errors, failures, warnings or test totals, and the last lines. The whole output stays queryable with recall("<label> ...") this session. Args: text: The raw output. label: A short name to recall it by, e.g. "maven-build".
| Parameter | Type | Description |
|---|---|---|
text * | string | |
label | string |