Files
ein-ai-proxy/sync-context.sh
William Stuckey 38c1b78e68 Add Roo Code context sync: .clinerules symlink and sync script
- Add .clinerules symlink → CLAUDE.md so Roo Code reads same project context
- Add sync-context.sh: copies global context to ~/.claude/ for Claude Code
  and prints content for manual paste into Roo Code Custom Instructions
- Update CLAUDE.md: note .clinerules symlink, add sync-context.sh to file list
- Update CONTEXT.md: add AI context file mapping table, update file structure
- Update README.md: rewrite AI Context Files section to cover both tools,
  document symlink strategy and sync workflow
2026-03-26 18:56:01 -05:00

43 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
# =============================================================
# Sync global AI context to Claude Code and Roo Code
#
# Source of truth: global-claude-md/CLAUDE.md
#
# This script:
# 1. Copies to ~/.claude/CLAUDE.md (Claude Code CLI reads this)
# 2. Prints content for manual paste into Roo Code Custom Instructions
# =============================================================
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
SOURCE="$SCRIPT_DIR/global-claude-md/CLAUDE.md"
if [ ! -f "$SOURCE" ]; then
echo "[!] Source file not found: $SOURCE"
exit 1
fi
# --- Claude Code CLI ---
CLAUDE_DIR="$HOME/.claude"
CLAUDE_TARGET="$CLAUDE_DIR/CLAUDE.md"
mkdir -p "$CLAUDE_DIR"
cp "$SOURCE" "$CLAUDE_TARGET"
echo "[✓] Claude Code: copied to $CLAUDE_TARGET"
# --- Roo Code (VS Code) ---
echo ""
echo "============================================"
echo " Roo Code: Manual Step Required"
echo "============================================"
echo ""
echo "Copy the text between the lines below, then paste it into:"
echo " Roo Code sidebar → Settings (gear icon) → Custom Instructions"
echo ""
echo "────────────────────────────────────────────"
cat "$SOURCE"
echo "────────────────────────────────────────────"
echo ""
echo "Done. Both tools are now in sync."