Skip to content

feat: two-layer memory (jsclaw#79 1b) - #13

Merged
melvincarvalho merged 1 commit into
gh-pagesfrom
issue-79-1b-memory
Jun 12, 2026
Merged

melvincarvalho merged 1 commit into
gh-pagesfrom
issue-79-1b-memory

Conversation

@melvincarvalho

Copy link
Copy Markdown
Contributor

openclaw's memory model: MEMORY.md curated and always loaded; memory/*.md surfaced as an on-demand index (filename + hint), read with file tools. Extracted to a tested src/memory.js. Companion: jsclaw default runner. Verified live: a curated fact answered from the prompt; a codeword living only in memory/codewords.md required (and got) a read_file — proving bodies stay out of the prompt while recall is complete. Tests 24/24 (3 new).

…(jsclaw#79 1b)

Extracts loadMemory into a tested src/memory.js: MEMORY.md loaded in
full (curated always-on layer), memory/*.md surfaced as an index
(filename + first-line hint, newest dated first) and read on demand
with file tools — not dumped. Keeps the prompt small without losing
recall. Replaces the flat char-budget dump.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant