Skip to content

Commit 8ecd0a2

Browse files
messelinkclaude
andcommitted
fix: use mempalace CLI in hook scripts instead of python3 -m
Hook scripts used `python3 -m mempalace` which fails when mempalace is installed via pipx or uv. Using the `mempalace` CLI command directly works for all installation methods. Dev users running from source should use `pip install -e .` as documented in CONTRIBUTING.md. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent eed2e57 commit 8ecd0a2

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.claude-plugin/hooks/mempal-precompact-hook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# MemPalace PreCompact Hook — thin wrapper calling Python CLI
33
# All logic lives in mempalace.hooks_cli for cross-harness extensibility
44
INPUT=$(cat)
5-
echo "$INPUT" | python3 -m mempalace hook run --hook precompact --harness claude-code
5+
echo "$INPUT" | mempalace hook run --hook precompact --harness claude-code

.claude-plugin/hooks/mempal-stop-hook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# MemPalace Stop Hook — thin wrapper calling Python CLI
33
# All logic lives in mempalace.hooks_cli for cross-harness extensibility
44
INPUT=$(cat)
5-
echo "$INPUT" | python3 -m mempalace hook run --hook stop --harness claude-code
5+
echo "$INPUT" | mempalace hook run --hook stop --harness claude-code

.codex-plugin/hooks/mempal-hook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -euo pipefail
33
HOOK_NAME="${1:?Usage: mempal-hook.sh <hook-name>}"
44
INPUT_FILE=$(mktemp) || { echo "Failed to create temp file" >&2; exit 1; }
55
cat > "$INPUT_FILE"
6-
cat "$INPUT_FILE" | python3 -m mempalace hook run --hook "$HOOK_NAME" --harness codex
6+
cat "$INPUT_FILE" | mempalace hook run --hook "$HOOK_NAME" --harness codex
77
EXIT_CODE=$?
88
rm -f "$INPUT_FILE" 2>/dev/null
99
exit $EXIT_CODE

0 commit comments

Comments
 (0)