delimit_memory_index
Write flagged hot memory entries into Claude Code's MEMORY.md to load them automatically on session start. Only the marked section is replaced, preserving existing content.
Instructions
Project delimit_memory hot entries into Claude Code's MEMORY.md.
When to use: to surface hot delimit_memory entries (flagged
hot_load=True) into Claude Code's MEMORY.md so they load on
session start without making delimit_memory dependent on
Anthropic's auto-memory format.
When NOT to use: to add a new memory (use delimit_memory_store) or
search existing memories (delimit_memory_search,
delimit_memory_recent).
Sibling contrast: delimit_memory_store writes a new entry; delimit_memory_search queries; delimit_memory_recent returns the tail; this is the one-way projection into MEMORY.md.
Side effects: writes to target_path (default
~/.claude/projects/-root/memory/MEMORY.md). If the file already has
<!-- delimit:start --> / <!-- delimit:end --> markers, ONLY the
content between them is replaced; anything outside is preserved.
If markers are missing, the managed section is APPENDED to the end
of the file (existing content is never touched). If the file does
not exist, it is created with just the section. One-way projection
only — MEMORY.md is never read back into delimit_memory (Anthropic
owns the auto-memory format; format-drift risk).
LED-1165 Phase 2 #5 PR-B.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_path | No | file to write. Empty = default ~/.claude/projects/-root/memory/MEMORY.md. | |
| dry_run | No | True returns the rendered content size without writing. | |
| limit | No | cap on entries projected. Default 200. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||