Skip to content

Commit f030823

Browse files
author
Hooman Mehr
committed
Update to use env vars for root
1 parent ab8d518 commit f030823

4 files changed

Lines changed: 13 additions & 3 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ releases/*.pdf
2020

2121
# Chat → Code staging area (transient content, consumed and deleted by Code)
2222
staging/
23+
24+
# Environment
25+
.env

docs/CLAUDE_CHAT_INSTRUCTIONS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,8 @@ Claude-to-Claude coordination protocol instead of zip files or manual file drops
451451
The ITP repository is the single source of truth. Access it in priority order:
452452

453453
1. **Filesystem tools available** (Desktop Commander, Filesystem MCP):
454-
Read and write directly at `~/Developer/Repositories/framework/`.
454+
Read and write directly at `$ITP_ROOT/framework/` (ITP_ROOT is the
455+
project root containing framework/, loom/, and baft/).
455456
This is the canonical local clone path (stable across machines).
456457
2. **No filesystem access** (web, mobile, or MCP not connected):
457458
Use `project_knowledge_search` to find repo files synced via GitHub.

scripts/install_watcher.sh

100755100644
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313
set -euo pipefail
1414

15-
REPO_ROOT="$HOME/Developer/Repositories/framework"
15+
# ITP_ROOT must point to the project root containing framework/, loom/, baft/
16+
ITP_ROOT="${ITP_ROOT:-$(cd "$(dirname "$0")/.." && cd .. && pwd)}"
17+
REPO_ROOT="$ITP_ROOT/framework"
1618
PLIST_LABEL="org.irantransitionproject.session-watcher"
1719
PLIST_PATH="$HOME/Library/LaunchAgents/$PLIST_LABEL.plist"
1820
WATCH_SCRIPT="$REPO_ROOT/scripts/watch_session_log.sh"
@@ -60,6 +62,8 @@ cat > "$PLIST_PATH" <<EOF
6062
<string>$LAUNCHD_PATH</string>
6163
<key>HOME</key>
6264
<string>$HOME</string>
65+
<key>ITP_ROOT</key>
66+
<string>$ITP_ROOT</string>
6367
</dict>
6468
6569
<!-- Trigger on session log file changes (native kqueue, no fswatch needed) -->

scripts/watch_session_log.sh

100755100644
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222

2323
set -euo pipefail
2424

25-
REPO_ROOT="$HOME/Developer/Repositories/framework"
25+
# ITP_ROOT must point to the project root containing framework/, loom/, baft/
26+
ITP_ROOT="${ITP_ROOT:-$(cd "$(dirname "$0")/.." && cd .. && pwd)}"
27+
REPO_ROOT="$ITP_ROOT/framework"
2628
LOG_FILE="$REPO_ROOT/CLAUDE_SESSION_LOG.md"
2729
STATE_DIR="$REPO_ROOT/.claude"
2830
STATE_FILE="$STATE_DIR/watcher_state"

0 commit comments

Comments
 (0)