Repository navigation
Ignore claude-mem observer sessions - #6
Merged
cloudstudio merged 1 commit intoAug 7, 2026
Merged
Conversation
The claude-mem plugin compresses conversations into its memory store by running headless observer Claude sessions in the background. They write real transcripts and fire real hooks, so every feed surfaced them as phantom agents that woke whenever a real session did. All observers run from ~/.claude-mem/observer-sessions, which stamps both the hook event's cwd and the transcript's munged project directory. A shared predicate now drops them at every entry point: the hook exits before contacting the app, the transcript scan skips their project directory entirely, event ingestion guards against anything that slips past, and persisted observer sessions are discarded on snapshot load. Co-Authored-By: Octupus Technologies S.L.
cloudstudio
approved these changes
Aug 7, 2026
cloudstudio
left a comment
Owner
There was a problem hiding this comment.
Approved for integration via #7, which preserves this contribution and includes the review hardening: exact home-bound observer path matching, exact transcript project-directory matching, Claude-only gating, and regression coverage for lookalike paths/projects and non-Claude agents. The corrected integration head passed SwiftLint, build, and the full test suite on macOS/Xcode 16.4.
cloudstudio
added a commit
that referenced
this pull request
Aug 7, 2026
Preserve PR #6 and tighten observer matching to the exact per-user claude-mem observer paths, with regression coverage for lookalikes and non-Claude agents.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The claude-mem plugin compresses conversations into its memory store by running headless "observer" Claude sessions in the background. They write real transcripts under
~/.claude/projectsand fire real hooks, so every NotchFlow feed surfaced them as phantom agents — one lighting up the notch every time a real session did any work.All observers run from
~/.claude-mem/observer-sessions, which stamps both the hook event'scwdand the munged project directory the transcript lands in. Those two signals become a shared predicate (MemoryObserverSessionsin NotchFlowCore), applied at every entry point:notchflow-hook): exits before contacting the app, so Claude Code proceeds as if no hook were installed.ClaudeTranscriptMonitor): skips the observer project directory entirely — no parse cost for the memory system's chatter.AppModel.applyOne): last-line guard for anything that slips past (e.g. an older hook binary still installed).A checkout of the plugin itself (a project directory literally named
claude-mem) is not filtered — only the hidden.claude-memdata directory matches, and there's a test pinning that.Testing
MemoryObserverSessionsTests(cwd match, transcript match, project-directory match, and the negative cases).…/projects/-Users-…--claude-mem-observer-sessions/withcwd~/.claude-mem/observer-sessions, and no longer appear in the notch.