Answer stability round 1: 1 🔴, 3 🟡 (0 misread); keep the global rules generic, and say in one always-loaded rule of this repo where AGENTS.md's parts went
This commit is contained in:
@@ -77,12 +77,10 @@ Move `~/.claude` to the newest release:
|
||||
~/code/claude-config/bin/deploy-release
|
||||
```
|
||||
|
||||
It refuses while a file `~/.claude` tracks has an uncommitted change, such as a hook Claude Code wrote into `settings.json`. Merge that into `~/code/claude-config` on a branch of its own, through a PR, then cut a release. A model picked with `/model` is no such change.
|
||||
|
||||
For `~/.claude/settings.json`, which Claude Code writes from any session, read the diff first: `git -C ~/.claude diff HEAD -- settings.json`. An empty diff means only the model or the key order changed, which `deploy-release` takes as no change. When the diff holds a credential, such as a token in `env` or `mcpServers`, move it out of the file, and commit only once it is gone: a token in `env` moves to the shell profile, and a server in `mcpServers` moves to `~/.claude.json` with `claude mcp add --scope user`.
|
||||
|
||||
It prints `CHANGELOG.md`'s section for each version it moved past: do what each asks, such as a new step under Install. `deploy-release --help` says what else it checks.
|
||||
|
||||
It refuses while a file `~/.claude` tracks has an uncommitted change, such as a hook Claude Code wrote into `settings.json`; a model picked with `/model` is no such change. Read the change first, as in `git -C ~/.claude diff HEAD -- settings.json`. When it holds a credential, such as a token in `env` or `mcpServers`, move that out of the file: a token in `env` to the shell profile, a server in `mcpServers` to `~/.claude.json` with `claude mcp add --scope user`. Then carry the change into `~/code/claude-config` on a branch of its own, merge it through a PR, and cut a release.
|
||||
|
||||
## Release
|
||||
|
||||
Once the next release holds no item in `todo.md` and its release review has landed, cut it from `~/code/claude-config`:
|
||||
|
||||
Reference in New Issue
Block a user