# Dynmem (keyword index)

Keyword-index memory for Ulpi: a small resident index of 'keyword keyword -\> file.md' routing lines stays in the system prompt while verbose topic files stay on disk.

- Type: Plugin
- Version: 1.12.1
- Updated: 22 Nov 2026
- Publisher: ockentap
- Category: Tools

[Contact us](https://www.ulpi.io/en/support#contact)

## What it does

Keyword-index memory for Ulpi: a small resident index of 'keyword keyword -\> file.md' routing lines stays in the system prompt while verbose topic files stay on disk and are read only when the conversation touches their keywords. Retrieval is done by the model reading a literal index — no embeddings, no vector store, no retrieval service.

Disclosure — a pre_tool_call hook and a tool_execution middleware refuse a non-memory tool's write to the memory index across the recognised write vectors (write_file, patch, shell redirects, tee, sed -i; best-effort against arbitrary shell indirection) and refuse malformed index lines with a fix message rather than fixing them silently (including the keyword count: an entry outside the documented 5-20 keywords is refused, and the ASCII arrow is refused on every code path), while read-only commands and reads through a pipe always pass so the agent can audit the file it maintains; the same guard refuses any memory-tool remove, replace or patch whose old_text lands inside the index header, because on the stock store the whole preamble is a single §-joined entry and such an edit would rewrite or delete every header line at once; a documented escape hatch lets a scripted rewrite proceed when the sentinel file $ULPI_HOME/state/.dynmem_rewrite_approved exists or DYNMEM_ALLOW_REWRITE=1 is set. Beyond $ULPI_HOME/memories/, the guard reads one thing: when a shell command invokes python3 on a script file, it opens that script (and the execute_code payload is already in args) to check whether the code would write the index; no file content is retained or sent anywhere.

The repo also ships an optional core patch (scripts/patches/0001-flat-memory-separator.patch, changes tools/memory_tool_store.py) that the plugin does not need and never applies; a user who applies it by hand must re-apply it after every Ulpi update. No network calls, no subprocesses, nothing spawned in the background.

The pre-1.8 MEMORY_SHAPER\_\* variable names and the

## Review notes

What an owner reads and accepts before the install is approved.

- Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve

## More in Tools

- [Dyscalculia.io](https://www.ulpi.io/en/marketplace/plugins/dyscalculia-io): Cited dyscalculia statistics from dyscalculia.io.
- [Dyslexia Steps](https://www.ulpi.io/en/marketplace/plugins/dyslexia-steps): Phonics and sight word lists by grade from dyslexiasteps.com.
- [each::labs](https://www.ulpi.io/en/marketplace/plugins/each-labs): Every tool call goes to each::labs' MCP server at mcp.eachlabs.ai, signed in as the user.

[All listings →](https://www.ulpi.io/en/marketplace) · [Publisher's guide →](https://www.ulpi.io/en/docs) · [Report a problem →](https://www.ulpi.io/en/security#report)
