Release Claude lifecycle hooks 0.3.4 - #6
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoRelease Claude lifecycle hooks in plugin 0.3.4
AI Description
Diagram
High-Level Assessment
Files changed (15)
|
Code Review by Qodo
1.
|
| if [ -f .claude/settings.json ] && { | ||
| grep -Fq 'Tree Ring Memory managed lifecycle v2"' .claude/settings.json || | ||
| grep -Fq 'Tree Ring Memory managed lifecycle v3"' .claude/settings.json || | ||
| grep -Fq 'Tree Ring Memory managed lifecycle v4"' .claude/settings.json | ||
| }; then | ||
| exit 0 |
There was a problem hiding this comment.
2. Some projects lose automatic recall 🐞 Bug ☼ Reliability
claude-hook.sh treats any occurrence of a managed-lifecycle description substring anywhere in .claude/settings.json as proof that a managed hook is installed and exits before invoking the CLI. A project with that text in an unrelated setting but no managed lifecycle definition therefore loses all four marketplace lifecycle events, despite the documented ownership rule applying only after project activation installs that definition.
Agent Prompt
## Issue description
The duplicate-suppression check uses an unscoped text search over the whole Claude settings file, so unrelated data containing the marker disables the marketplace hook.
## Issue Context
Suppression should occur only when a project-managed lifecycle hook is actually installed, not when the marker appears in arbitrary settings content.
## Fix Focus Areas
- hooks/claude-hook.sh[13-18]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Ship Claude plugin 0.3.4 with native SessionStart/SubagentStart recall and Stop/SubagentStop capture checkpoints. These hooks use CLI 0.15.7 to recall project guidance and the agent's durable memories across sessions, and resolve the project-local runtime from nested working directories. Managed project hooks take precedence to prevent duplicate checkpoints.
Update the marketplace version, shared skill, privacy disclosures, and submission materials. CI uses the checksum-pinned 0.15.7 release.
Validation: package contract, all lifecycle event forwarders, duplicate suppression, and real CLI smoke pass. Claude Code 2.1.241 strict manifest validation passes.
High-level PR Summary
This PR ships version 0.3.4 of the Tree Ring Memory Claude Code plugin, introducing native lifecycle hooks for automatic session startup context recall and bounded stop-event memory checkpoints. The plugin now registers
SessionStart,SubagentStart,Stop, andSubagentStophooks that forward events to the Tree Ring Memory CLI (version 0.15.7), which handles project guidance recall and agent-mediated memory capture. The hooks implement duplicate suppression to prevent conflicts when project-level managed hooks are already installed. All documentation, validation scripts, privacy disclosures, security policies, and submission materials have been updated to reflect the new lifecycle integration pattern and clarify that hooks never persist transcripts or sensitive content directly.⏱️ Estimated Review Time: 30-90 minutes
💡 Review Order Suggestion
README.md.claude-plugin/plugin.json.claude-plugin/marketplace.jsonSUBMISSION.mdhooks/claude-hooks.jsonhooks/claude-hook.shcommands/tree-ring-capture.mdskills/tree-ring-memory/SKILL.mdPRIVACY.mdSECURITY.mdTERMS.mdscripts/validate-lifecycle.pyscripts/validate.pyscripts/smoke_v015.sh.github/workflows/validate.yml