Agent memory: index + lazy topics #132

Merged
hermes merged 2 commits from feat/memory into main 2026-10-06 13:03:36 +00:00
Collaborator

Agent memory. MEMORY.md index (one hook line per topic, max 50 per scope) goes into the system prompt; full text lives in topics/<slug>.md, read on demand with read. Scopes: global ~/.hx/memory/, project .hx/memory/ (gitignored). Tools: memory_write(scope, slug, hook, body) upserts file and index line, fails when index is full so the agent consolidates; memory_forget(scope, slug). Index read at session start only (cache-stable prefix). hx prefix shows a system: memory index row. Tests: roundtrip/cap in hx-core, tool test in hx-tools; tests/all.sh green.

Agent memory. `MEMORY.md` index (one hook line per topic, max 50 per scope) goes into the system prompt; full text lives in `topics/<slug>.md`, read on demand with `read`. Scopes: global `~/.hx/memory/`, project `.hx/memory/` (gitignored). Tools: `memory_write(scope, slug, hook, body)` upserts file and index line, fails when index is full so the agent consolidates; `memory_forget(scope, slug)`. Index read at session start only (cache-stable prefix). `hx prefix` shows a `system: memory index` row. Tests: roundtrip/cap in hx-core, tool test in hx-tools; tests/all.sh green.
hermes added 2 commits 2026-10-06 13:03:28 +00:00
hermes force-pushed feat/memory from 316ac55656 to 6cad314ab1 2026-10-06 13:03:28 +00:00 Compare
hermes merged commit 482ca0b2f5 into main 2026-10-06 13:03:36 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#132