Skip to content

feat(plugin): watch extra project paths in a dedicated collection#541

Open
talhaanwarch wants to merge 1 commit into
zilliztech:mainfrom
talhaanwarch:feat/superpowers-extra-watch
Open

feat(plugin): watch extra project paths in a dedicated collection#541
talhaanwarch wants to merge 1 commit into
zilliztech:mainfrom
talhaanwarch:feat/superpowers-extra-watch

Conversation

@talhaanwarch

Copy link
Copy Markdown

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/specs and docs/superpowers/plans at the project git root and, if present, launches a second watcher for them in a dedicated superpowers Milvus collection. No configuration or env vars needed — it just works if the paths exist.

  • New start_watch_superpowers() / stop_watch_superpowers() in common.sh, each with their own PID file (.watch-superpowers.pid) so they don't interfere with the main memory watcher
  • session-start.sh calls both watchers on startup and indexes superpowers paths in Lite mode
  • session-end.sh stops both watchers on cleanup

superpowers-recall skill

A new context: fork skill 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 as memory-recall but 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:

  • Session memory = ephemeral notes, decisions, debugging context from conversations
  • Superpowers = durable project knowledge: specs, plans, designs

Separate collections also means different recall skills can have precise, scoped prompts rather than a single noisy search across everything.

Testing

# Index existing docs manually (first time)
memsearch index docs/superpowers/specs docs/superpowers/plans --collection superpowers

# Verify
memsearch search "migration plan" --collection superpowers --top-k 3

# Session hooks are tested by restarting Claude Code in a project that has docs/superpowers/

🤖 Generated with Claude Code

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>
@talhaanwarch talhaanwarch marked this pull request as ready for review May 14, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant