Skip to content

Commit 83e41d4

Browse files
wey-guclaude
andcommitted
release: OpenClaw 0.6.14, Bub 0.2.0
OpenClaw 0.6.14: - maxThreadMessageChars config (200-20000, default 800) by @blessonism - CLAUDE.md config table updated Bub 0.2.0: - Prefix-cache fix: memory context moved from system_prompt to build_prompt by @frostming — system prompt is now static, preserving LLM KV cache - Stale hook references fixed in README, plugin.py docstring, debug log Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent cdcea3e commit 83e41d4

8 files changed

Lines changed: 21 additions & 7 deletions

File tree

nowledge-mem-bub-plugin/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 0.2.0 (2026-03-17)
4+
5+
- Fixed: memory context (Working Memory + recalled knowledge) no longer injected into system prompt, which was breaking LLM prefix cache and causing full KV recomputation every turn. Context now injected via `build_prompt` hook into user prompt space. System prompt stays static and cacheable. Contributed by @frostming.
6+
- Changed: `system_prompt` hook now returns only static behavioral guidance (identical every turn), preserving prefix cache.
7+
- Changed: memory loading moved from `load_state` hook to private `_load_memory` method called from `build_prompt`.
8+
- Changed: skill directory renamed from `bub_skills/` to `skills/` for consistency.
9+
310
## 0.1.2 (2026-03-12)
411

512
- Fixed: nmem cli argument issue by @ferstar via https://github.com/nowledge-co/community/pull/118

nowledge-mem-bub-plugin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ nmem status # verify connection
2020
## Verify
2121

2222
```bash
23-
uv run bub hooks # should list nowledge_mem for system_prompt, load_state, save_state
23+
uv run bub hooks # should list nowledge_mem for system_prompt, build_prompt, save_state
2424
uv run bub run "what was I working on this week?"
2525
```
2626

nowledge-mem-bub-plugin/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "nowledge-mem-bub"
3-
version = "0.1.2"
3+
version = "0.2.0"
44
description = "Nowledge Mem plugin for Bub — cross-ai context for your agent."
55
readme = "README.md"
66
license = "Apache-2.0"

nowledge-mem-bub-plugin/src/nowledge_mem_bub/plugin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""Bub hook implementations for Nowledge Mem.
22
33
Hooks:
4-
system_prompt — behavioural guidance (~50 tokens) + optional WM / recall
5-
load_state — fetch Working Memory and (if session_context) recalled memories
4+
system_prompt — static behavioural guidance (~50 tokens), identical every turn
5+
build_prompt — when session_context is on, inject WM + recalled memories
66
save_state — capture each turn to a Nowledge Mem thread (incremental)
77
"""
88

@@ -138,7 +138,7 @@ async def _load_memory(self, message) -> tuple[str, list[dict[str, Any]]]:
138138
# mem.context or mem.search on demand.
139139
return "", []
140140
if not self.client.is_available():
141-
logger.debug("nmem not in PATH, skipping load_state")
141+
logger.debug("nmem not in PATH, skipping memory load")
142142
return "", []
143143

144144
# Session context mode: fetch WM + recalled memories

nowledge-mem-openclaw-plugin/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to the Nowledge Mem OpenClaw plugin will be documented in this file.
44

5+
## [0.6.14] - 2026-03-17
6+
7+
### Added
8+
9+
- **Configurable thread message truncation.** New `maxThreadMessageChars` setting (200-20000, default 800) controls how many characters are preserved per captured thread message. Higher values keep more context in long conversations. Configurable via dashboard, config file, or `NMEM_MAX_THREAD_MESSAGE_CHARS` env var. Contributed by @blessonism.
10+
511
## [0.6.13] - 2026-03-17
612

713
### Fixed

nowledge-mem-openclaw-plugin/CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ Optional config file at `~/.nowledge-mem/openclaw.json`. Falls through to OpenCl
101101
| `digestMinInterval` | integer 0-86400 | `300` | `NMEM_DIGEST_MIN_INTERVAL` | Minimum seconds between session digests |
102102
| `maxContextResults` | integer 1-20 | `5` | `NMEM_MAX_CONTEXT_RESULTS` | How many memories to inject at prompt time |
103103
| `recallMinScore` | integer 0-100 | `0` | `NMEM_RECALL_MIN_SCORE` | Min relevance score (%) to include in auto-recall |
104+
| `maxThreadMessageChars` | integer 200-20000 | `800` | `NMEM_MAX_THREAD_MESSAGE_CHARS` | Max chars per captured thread message before truncation |
104105
| `apiUrl` | string | `""` | `NMEM_API_URL` | Remote server URL. Empty = local (127.0.0.1:14242) |
105106
| `apiKey` | string | `""` | `NMEM_API_KEY` | API key. Never logged. |
106107

nowledge-mem-openclaw-plugin/openclaw.plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "openclaw-nowledge-mem",
3-
"version": "0.6.13",
3+
"version": "0.6.14",
44
"kind": "memory",
55
"skills": ["skills/memory-guide"],
66
"uiHints": {

nowledge-mem-openclaw-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nowledge/openclaw-nowledge-mem",
3-
"version": "0.6.13",
3+
"version": "0.6.14",
44
"type": "module",
55
"description": "Nowledge Mem memory plugin for OpenClaw, local-first personal knowledge base",
66
"author": {

0 commit comments

Comments
 (0)