Session lifecycle hooks — original session-start / session-end scripts? #1313
Unanswered
the7Pillars
asked this question in
Q&A
Replies: 1 comment
-
|
I just found the actual session hook scripts in the ZIP, not just the Cursor adapters. Nathan |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @affaanmustafa — big fan of this repo and your Longform guide. The session persistence pattern you described — session-start.sh, pre-compact.sh, session-end.sh — is exactly what I need to solve cold-start context loss between sessions.
I noticed the hooks folder was recently restructured (the shell script implementations seem to have moved or been removed in the latest commit). The hooks.json currently in the repo is heavily developer-workflow focused (TypeScript checks, git hooks, console.log detection), which makes it harder to extract just the session lifecycle piece.
Would you be willing to share the original session persistence scripts, or point me to where they ended up? Even a minimal version of the three-script loop (save state on Stop, load on SessionStart, preserve before PreCompact) would be incredibly useful for non-developer Claude Code workflows. My use case is a personal knowledge + content system — no code base, no git — but the session continuity problem is identical.
Thanks for publishing all of this. The continuous-learning v2 / Homunculus spec is also really interesting — any chance that lands in the repo eventually?
Nathan
Beta Was this translation helpful? Give feedback.
All reactions