Workspace file watcher (optional)

June 30, 2026 ยท View on GitHub

The poller lives in the same native binary as the Claude hooks (no Python). Git/marketplace installs and release plugin zips include this binary under hooks/bin/. Run make build-claude-hook from the repository root only when refreshing the binary from hook source changes.

From the plugin root. POWERMEM_BASE_URL defaults to http://localhost:8848 if unset (optional POWERMEM_API_KEY):

sh hooks/run-hook.sh poll

Or invoke the binary for your OS directly, e.g. hooks/bin/powermem-hook-linux-amd64 poll.

Environment variables match the former Python script: POWERMEM_WATCH_ROOT, POWERMEM_POLL_INTERVAL, POWERMEM_WATCH_SUFFIXES, POWERMEM_WATCH_IGNORE_DIRS.

On Windows (PowerShell):

.\hooks\bin\powermem-hook-windows-amd64.exe poll

(Use arm64 on ARM64 Windows if you build that target.)