From e0f15aa02e46a688ad9aa0cd1b09b5f80c87db37 Mon Sep 17 00:00:00 2001 From: Spencer Date: Thu, 26 Mar 2026 20:27:34 -0500 Subject: [PATCH] chore: sync memory 2026-03-26 --- .claude/settings.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.claude/settings.json b/.claude/settings.json index ccc0aa1..37b0fc5 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -12,8 +12,37 @@ "Bash(git add*)", "Bash(git commit*)", "Bash(git push*)", + "Bash(git pull*)", + "Bash(git fetch*)", + "Bash(git rebase*)", + "Bash(git remote*)", + "Bash(git branch*)", "Bash(mkdir*)", "Bash(ls*)" ] + }, + "hooks": { + "SessionStart": [ + { + "hooks": [ + { + "type": "command", + "command": "git -C /home/artanis/.cog pull --rebase --autostash 2>/dev/null || true", + "statusMessage": "Syncing memory from remote..." + } + ] + } + ], + "Stop": [ + { + "hooks": [ + { + "type": "command", + "command": "cd /home/artanis/.cog && git diff --quiet && git diff --staged --quiet || (git add -A && git commit -m \"chore: sync memory $(date +%Y-%m-%d)\" && git push origin main) 2>/dev/null || true", + "statusMessage": "Syncing memory to remote..." + } + ] + } + ] } }