#21003: feat(memory): add durable memory_write + memory_upsert tools
docs
channel: bluebubbles
gateway
extensions: memory-core
docker
agents
size: M
Cluster:
ContextMemory Enhancements
## Summary
- add new durable memory tools: `memory_write` (append) and `memory_upsert` (keyed update/insert)
- wire new tools through runtime + memory-core extension + tool-policy groups
- update prompt/tool metadata and docs for new memory tool capabilities
- add/extend tests for memory tool behavior and policy handling
- serialize same-process concurrent writes with a per-file in-process mutex
## Why
This enables explicit, structured durable-memory writes when users ask the assistant to remember or update long-term context, while keeping tool-policy controls explicit.
## Validation
- `pnpm vitest run --config vitest.e2e.config.ts src/agents/tools/memory-tool.e2e.test.ts src/agents/pi-tools.policy.e2e.test.ts`
## Follow-up split
Cross-process file-lock hardening was split into a stacked follow-up PR (per review request):
- https://github.com/SmithLabsLLC/openclaw/pull/1
Most Similar PRs
#22432: feat(memory): harden writes with cross-process file locking
by SmithLabsLLC · 2026-02-21
70.1%
#7480: feat: Add CoreMemories hierarchical memory system
by Itslouisbaby · 2026-02-02
68.0%
#16669: feat(memory-lancedb): add memory_search/memory_get compatibility re...
by ciberponk · 2026-02-15
66.7%
#7894: Memory improvements: Give OpenClaw better memory + REM sleep
by bornio · 2026-02-03
65.8%
#17345: feat: Memory kernel rebuild with token budgeting, summary sidecar, ...
by markmusson · 2026-02-15
64.4%
#9818: coremem-tools: add coremem_recent/coremem_find agent tools
by Itslouisbaby · 2026-02-05
64.0%
#21217: fix: memory prune command to prevent unbounded MEMORY.md growth
by theognis1002 · 2026-02-19
63.1%
#21242: fix(memory): add token budget limits for memory tools (#21187)
by Asm3r96 · 2026-02-19
62.6%
#9415: Artifact-first memory: externalize tool outputs + deterministic recall
by jroth1111 · 2026-02-05
62.2%
#16657: feat(memory-lancedb): add memory CLI command alias
by ciberponk · 2026-02-15
62.0%