Stats
Actions
Tags
Help us improve
Share bugs, ideas, or general feedback.
From nowledge-mem
Runs dependency checks on session start, a cleanup script on stop, and a conditional hook on each user prompt to validate the Carta environment. Executes bash scripts.
3 events · 4 hooks
npx claudepluginhub joshuarweaver/cascade-code-general-misc-2 --plugin nowledge-co-communityWhere this hook configuration is defined
Defined in hooks/hooks.json
Event handlers and matchers — expand Raw Configuration for the full JSON
command -v nmem >/dev/null 2>&1 || { command -v nmem.cmd >/dev/null 2>&1 && nmem(){ local q=''; for a in "$@"; do q="$q \"$a\""; done; cmd.exe /s /c "\"nmem.cmd\"$q"; }; }; nmem t save --from claude-code --truncate 2>/dev/null || truestartup|resume|clearcommand -v nmem >/dev/null 2>&1 || { command -v nmem.cmd >/dev/null 2>&1 && nmem(){ local q=''; for a in "$@"; do q="$q \"$a\""; done; cmd.exe /s /c "\"nmem.cmd\"$q"; }; }; nmem --json wm read 2>/dev/null | python3 -c "import sys,json;d=json.load(sys.stdin);c=d.get('content','');print(c) if c else sys.exit(1)" 2>/dev/null || cat ~/ai-now/memory.md 2>/dev/null || truecompactcommand -v nmem >/dev/null 2>&1 || { command -v nmem.cmd >/dev/null 2>&1 && nmem(){ local q=''; for a in "$@"; do q="$q \"$a\""; done; cmd.exe /s /c "\"nmem.cmd\"$q"; }; }; { nmem --json wm read 2>/dev/null | python3 -c "import sys,json;d=json.load(sys.stdin);c=d.get('content','');print(c) if c else sys.exit(1)" 2>/dev/null || cat ~/ai-now/memory.md 2>/dev/null || true; } && printf '\n---\nContext was compacted. If you discovered important insights, save them before continuing:\n nmem m add "<insight>" --title "<short title>" --importance 0.8\n'command -v nmem >/dev/null 2>&1 || { command -v nmem.cmd >/dev/null 2>&1 && nmem(){ local q=''; for a in "$@"; do q="$q \"$a\""; done; cmd.exe /s /c "\"nmem.cmd\"$q"; }; }; command -v nmem >/dev/null 2>&1 && printf '[Nowledge Mem] Search past knowledge: nmem --json m search "query". Save insights: nmem m add "content" -t "Title" -i 0.8' || trueShare bugs, ideas, or general feedback.