From 317be4c53fa87a94c5d737dc92c08e239723299f Mon Sep 17 00:00:00 2001 From: Snider Date: Tue, 17 Mar 2026 18:23:39 +0000 Subject: [PATCH] fix: use CORE_WORKSPACE env var in shell scripts, fallback to ~/Code/.core Scripts now use ${CORE_WORKSPACE:-$HOME/Code/.core} instead of hardcoded host-uk path. Works on both Cladius and Charon. Co-Authored-By: Virgil --- claude/core/scripts/check-completions.sh | 4 ++-- claude/core/scripts/check-inbox.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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