feat(plugin): watch extra project paths in a dedicated collection#541
Open
talhaanwarch wants to merge 1 commit into
Open
feat(plugin): watch extra project paths in a dedicated collection#541talhaanwarch wants to merge 1 commit into
talhaanwarch wants to merge 1 commit into
Conversation
Adds support for automatically watching additional markdown directories (e.g. docs/superpowers/specs and plans) in a dedicated Milvus collection alongside the main session memory, plus a superpowers-recall skill to query it. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Why this is needed
The Claude Code plugin currently only watches
.memsearch/memory/— a single directory for session notes. For teams (or individual developers) working in larger repos with structured knowledge bases like specs, plans, and design docs, this is too narrow. Important context lives in those docs but is never indexed or searchable through the memory system.What this adds
Automatic extra-path watching (
docs/superpowers/)The plugin now detects
docs/superpowers/specsanddocs/superpowers/plansat the project git root and, if present, launches a second watcher for them in a dedicatedsuperpowersMilvus collection. No configuration or env vars needed — it just works if the paths exist.start_watch_superpowers()/stop_watch_superpowers()incommon.sh, each with their own PID file (.watch-superpowers.pid) so they don't interfere with the main memory watchersession-start.shcalls both watchers on startup and indexes superpowers paths in Lite modesession-end.shstops both watchers on cleanupsuperpowers-recallskillA new
context: forkskill that searches--collection superpowers. It triggers automatically when the user asks about implementation plans, technical specs, migration stages, or architectural decisions. Follows the same L1 search → L2 expand pattern asmemory-recallbut targets the superpowers collection.Why a separate collection
Keeping superpowers docs in their own collection (
superpowers) rather than the main session memory collection keeps the two concerns clean:Separate collections also means different recall skills can have precise, scoped prompts rather than a single noisy search across everything.
Testing
🤖 Generated with Claude Code