#!/bin/bash # Sync key workspace files from local OpenClaw workspace to agent-claw S3 bucket. # Run this whenever MEMORY.md, SOUL.md, USER.md, or TOOLS.md are updated locally. # Called by: Nestle heartbeat, or manually after memory updates. BUCKET="agent-claw-workspace-495395224548" WORKSPACE="/Users/daniel/.openclaw/workspace" PROFILE="ai1" REGION="us-east-1" FILES=(MEMORY.md SOUL.md USER.md AGENTS.md IDENTITY.md TOOLS.md HEARTBEAT.md) for f in "${FILES[@]}"; do if [ -f "$WORKSPACE/$f" ]; then aws s3 cp "$WORKSPACE/$f" "s3://$BUCKET/$f" \ --region "$REGION" --profile "$PROFILE" --quiet && echo "[sync] $f" fi done echo "[sync] Done"