What
Mirror the Claude Code SessionEnd hook integration (shipped in #32) for Cowork. When a Cowork session ends — including /clear, logout, or normal exit — auto-capture a snapshot to palinode-api.
Context
#32 landed palinode init which scaffolds .claude/CLAUDE.md, .claude/settings.json, .claude/hooks/palinode-session-end.sh, and .mcp.json in a project. Claude Code has a documented hook surface with a SessionEnd event and matcher: \"clear\" value that fires on /clear, so the integration is straightforward.
Cowork's hook model is different and, as of 2026-04, not fully documented:
Scope
Depends on
What
Mirror the Claude Code SessionEnd hook integration (shipped in #32) for Cowork. When a Cowork session ends — including
/clear, logout, or normal exit — auto-capture a snapshot to palinode-api.Context
#32 landed
palinode initwhich scaffolds.claude/CLAUDE.md,.claude/settings.json,.claude/hooks/palinode-session-end.sh, and.mcp.jsonin a project. Claude Code has a documented hook surface with aSessionEndevent andmatcher: \"clear\"value that fires on/clear, so the integration is straightforward.Cowork's hook model is different and, as of 2026-04, not fully documented:
Scope
Depends on