diff --git a/claude/core/scripts/check-completions.sh b/claude/core/scripts/check-completions.sh index 3b567df..1863c82 100755 --- a/claude/core/scripts/check-completions.sh +++ b/claude/core/scripts/check-completions.sh @@ -2,8 +2,8 @@ # Check for agent completion events since last check. # Called by plugin hooks to notify the orchestrating agent. -EVENTS_FILE="$HOME/Code/host-uk/core/.core/workspace/events.jsonl" -MARKER_FILE="$HOME/Code/host-uk/core/.core/workspace/.events-read" +EVENTS_FILE="${CORE_WORKSPACE:-$HOME/Code/.core}/workspace/events.jsonl" +MARKER_FILE="${CORE_WORKSPACE:-$HOME/Code/.core}/workspace/.events-read" if [ ! -f "$EVENTS_FILE" ]; then exit 0 diff --git a/claude/core/scripts/check-inbox.sh b/claude/core/scripts/check-inbox.sh index ab3da87..4118875 100755 --- a/claude/core/scripts/check-inbox.sh +++ b/claude/core/scripts/check-inbox.sh @@ -2,7 +2,7 @@ # Check for new inbox messages since last check. # Silent if no new messages. Only outputs when there's something new. -MARKER_FILE="$HOME/Code/host-uk/core/.core/workspace/.inbox-last-id" +MARKER_FILE="${CORE_WORKSPACE:-$HOME/Code/.core}/workspace/.inbox-last-id" BRAIN_KEY=$(cat "$HOME/.claude/brain.key" 2>/dev/null | tr -d '\n') if [ -z "$BRAIN_KEY" ]; then