849 B
849 B
name, description, metadata
| name | description | metadata | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| session-memory-cus | Save full session context on /new or /reset with slugged filenames in user timezone |
|
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.
This hook avoids overwriting existing files by choosing a unique filename
when a collision occurs (it appends -1, -2, etc. to the base name).
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