From c626c73e40c0122e079e2098f3ef2acb07302cb8 Mon Sep 17 00:00:00 2001 From: Luna Date: Wed, 8 Apr 2026 19:24:02 +0200 Subject: [PATCH] Add session-memory-cus README --- README.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..4d488c7 --- /dev/null +++ b/README.md @@ -0,0 +1,44 @@ +# session-memory-cus + +Custom OpenClaw session-memory hook. + +## Requirements + +- Clone this repo to **exactly** `~/.openclaw/hooks/session-memory-cus` +- The bundled `session-memory` hook must stay **off** +- Only the **npm install** method of OpenClaw is supported here + +## What it does + +- Triggers on `command:new` and `command:reset` +- Saves the **full** user/assistant session context into `workspace/memory/` +- Uses `agents.defaults.userTimezone` for date/time formatting +- Uses a slugged filename, with slug generation based on a small excerpt + +## Disable the bundled hook + +If you still have the default hook enabled, turn it off: + +```bash +openclaw hooks disable session-memory +``` + +Or set it false in config: + +```json +{ + "hooks": { + "internal": { + "entries": { + "session-memory": { + "enabled": false + } + } + } + } +} +``` + +## Notes + +This repo is intentionally lightweight, it exists so the custom hook can live in the managed hooks directory and stay separate from the bundled one.