first commit

This commit is contained in:
2026-04-08 19:20:51 +02:00
commit 49e21fb19c
2 changed files with 326 additions and 0 deletions

24
HOOK.md Normal file
View File

@@ -0,0 +1,24 @@
---
name: session-memory-cus
description: "Save full session context on /new or /reset with slugged filenames in user timezone"
metadata:
{
"openclaw":
{
"emoji": "🧠",
"events": ["command:new", "command:reset"],
"requires": { "config": ["workspace.dir"] },
},
}
---
# Session Memory Custom Hook
Writes full user/assistant transcript context from the previous session into
`<workspace>/memory/YYYY-MM-DD-slug.md` when `/new` or `/reset` runs.
Differences from bundled session-memory:
- Uses full session context in output file
- Uses `agents.defaults.userTimezone` (fallback host timezone) for date/time
- Uses reduced excerpt only for slug generation