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 <virgil@lethean.io>
This commit is contained in:
Snider 2026-03-17 18:23:39 +00:00
parent e677d15bdd
commit 317be4c53f
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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