- refresh.sh: idempotent script, auto-discovers repos, updates symlinks + copies docs/workflows - launchd plist: scheduled daily at 11 PM + on login - /refresh-chat-history workflow for on-demand Cascade runs - README updated with auto-refresh docs and full data inventory - Repo docs and workflows refreshed from all 4 repos
1.5 KiB
1.5 KiB
| description |
|---|
| Refresh the Windsurf chat history archive (re-scan all repos, update symlinks, copy docs/workflows) |
Refresh Windsurf Chat History Archive
Refreshes the centralized Windsurf chat history archive at __LOCAL_LLMs/AI_IDE_CHAT_HISTORY/WINDSURF/.
Auto-discovers new repos, updates symlinks, and re-copies docs + workflows.
Steps
// turbo
- Run the refresh script:
/Users/sd9235/code/mygh/learning_ai_common_plat/__LOCAL_LLMs/AI_IDE_CHAT_HISTORY/WINDSURF/refresh.sh
- Check the refresh log:
cat /Users/sd9235/code/mygh/learning_ai_common_plat/__LOCAL_LLMs/AI_IDE_CHAT_HISTORY/WINDSURF/.last-refresh.log
- Verify symlinks are valid:
ls -la /Users/sd9235/code/mygh/learning_ai_common_plat/__LOCAL_LLMs/AI_IDE_CHAT_HISTORY/WINDSURF/ | grep "^l"
Notes
- The script is idempotent — safe to run any number of times.
- It auto-discovers repos under
/Users/sd9235/code/mygh/that havedocs/WINDSURF/or.windsurf/workflows/. - A launchd job runs this daily at 11 PM:
~/Library/LaunchAgents/com.sd9235.windsurf-archive-refresh.plist. - Logs:
.last-refresh.log(stats),.launchd-stdout.log/.launchd-stderr.log(scheduled run output).
Manage the scheduled job
# Check if running
launchctl list | grep windsurf-archive
# Stop
launchctl unload ~/Library/LaunchAgents/com.sd9235.windsurf-archive-refresh.plist
# Start
launchctl load ~/Library/LaunchAgents/com.sd9235.windsurf-archive-refresh.plist
# Force run now
launchctl start com.sd9235.windsurf-archive-refresh