From 660d5b2d73df72e47957213c3e98b2b0f7382155 Mon Sep 17 00:00:00 2001 From: Chris Meireles Date: Thu, 24 Sep 2026 13:46:33 -0400 Subject: [PATCH] CLAUDE.md: pull at session start, remind to commit and push Adds an 'Every session' section: git pull --ff-only before the first request, and a one-line reminder when work is left uncommitted or unpushed. Moves the Gitea details into that section. --- CLAUDE.md | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index dfa4492..4a63777 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,5 +1,29 @@ # CLAUDE.md +## Every session: stay in sync with Gitea + +This repo is backed up to `http://10.3.8.90:3000/chris/AV-Watch` (private, branch +`main`). The Git login is in Windows Credential Manager, not in this repo. + +1. **Pull at the start.** Before starting on the first request of every session, + pull in the repo root (`C:\Users\Live Stream\Desktop\Claude\avwatch`): + + ```powershell + # 'never' makes a bad token fail fast instead of opening a login window + $env:GCM_INTERACTIVE = 'never'; git pull --ff-only + ``` + + Report the result in one line, then carry on with the request. If the pull + fails (server unreachable, local changes in the way, history diverged), say + why in that line and carry on. Don't stash, reset, rebase or merge to get past + it unless asked. If `git` isn't found, use `C:\Program Files\Git\cmd\git.exe`. + +2. **Remind before finishing.** When you finish a piece of work and `git status` + shows uncommitted changes or unpushed commits, end your reply with a one-line + reminder of what isn't on Gitea yet and offer to commit and push. Do the same + when the user says they're wrapping up. Only commit or push when asked, and + don't repeat the reminder if nothing has changed since the last one. + ## What this is **AVWatch** is a Python CLI that monitors firmware/software updates across the @@ -80,8 +104,3 @@ python -m avwatch scan --no-llm # no API spend 4. Confirm the scheduled tasks are registered and the Monday digest mails correctly (`python -m avwatch digest --dry-run`). 5. Decide whether `data/avwatch.sqlite3` needs a backup. - -## Repository - -Backed up to Gitea: `http://10.3.8.90:3000/chris/AV-Watch` (private, branch `main`). -Git credentials are in Windows Credential Manager, not in this repo.