Install
openclaw plugins install openclaw-learning-memory@latestAlways-on memory for OpenClaw agents — a context engine that injects a curated MEMORY.md + USER.md into every turn (including group/channel sessions), so bots stop forgetting context and rules.
openclaw plugins install openclaw-learning-memory@latestAlways-on memory for OpenClaw agents.
A context engine that injects a
curated MEMORY.md + USER.md block into every agent turn — including group and
channel sessions, which OpenClaw's default memory recall excludes. This is why bots in
Zalo/Telegram groups "forget" context and rules over time; this plugin fixes that by
loading your curated memory on every run (an always-on prompt-memory layer).
systemPromptAddition.ownsCompaction:false).
Any read hiccup degrades to "no injection" for that turn; a hard error quarantines the
engine and the host falls back to the legacy engine — it can't brick an agent.It does not need a remote memory database. Your memory lives in local workspace files
that the agent already writes (MEMORY.md, USER.md).
clawhub package install tuanminhhole/openclaw-learning-memory
Then select it as the agent's context engine in openclaw.json:
{
"plugins": { "entries": { "learning-memory": { "enabled": true } } },
"agents": {
"defaults": {
"plugins": { "slots": { "contextEngine": "learning-memory" } }
}
}
}
Under plugins.entries.learning-memory.config:
| Field | Default | Meaning |
|---|---|---|
enabled | true | Toggle the injection. |
charBudget | 3500 | Max characters of memory injected per turn (older/overflow trimmed). |
files | ["MEMORY.md","USER.md"] | Workspace files injected every turn, in order. |
header | — | Optional heading above the injected block. |
The engine only loads memory; the agent curates it. Pair this with an agent
instruction to proactively write durable facts and rules into MEMORY.md (short,
distilled bullet points) and keep it tight. Because the file is now injected every turn,
what the agent writes actually comes back — so it compounds instead of evaporating.
MIT © tuanminhhole