Answer architecture round 1: 1 🔴, 2 🟡; split the filter's pure core out of main, stage settings.json before Update's move, read the stored settings in a repo check

This commit is contained in:
2026-10-21 21:38:50 +02:00
parent 7c3800337a
commit 7665087e1e
6 changed files with 54 additions and 27 deletions
+3 -2
View File
@@ -60,16 +60,17 @@ Have git store `settings.json` without `"model"`, so a model you pick with `/mod
git config filter.settings.clean bin/settings_filter.py
```
After a pick, `git status` may still list `settings.json`, and `git pull` refuses to update it. `git add settings.json` clears that, with nothing to commit.
After a pick, `git status` may still list `settings.json`, and `git pull` refuses to update it. `git add settings.json` clears that, with nothing to commit. A pull that changes `settings.json` then drops the model; pick it again with `/model`.
Link `loop-claude` onto `PATH`: `ln -s ~/.claude/bin/loop-claude ~/.local/bin/loop-claude`. Run `loop-claude` only in a sandbox with no direct access to a production environment, such as a dedicated VM: every claude it starts, the interactive ones included, skips every permission prompt.
## Update
Move a machine that takes tagged releases to the latest tag. The move discards every uncommitted change to a file the latest tag tracks, such as a hook Claude Code wrote into `settings.json`. Where the tag changes `settings.json`, the move also drops this machine's model; pick it again with `/model`. List the uncommitted changes to files the checkout tracks, and the tag it is on:
Move a machine that takes tagged releases to the latest tag. The move discards every uncommitted change to a file the latest tag tracks, such as a hook Claude Code wrote into `settings.json`. Git counts a model pick as such a change until `git add settings.json`, so stage it first. Where the tag changes `settings.json`, the move still drops this machine's model; pick it again with `/model`. List the uncommitted changes to files the checkout tracks, and the tag it is on:
```sh
cd ~/.claude
git add settings.json
git fetch --tags origin
git status
```