settings-override
Keep a Claude Code setting change across HQ updates by writing it to .claude/settings.local.json. Use when /update-hq reset a setting or a user wants one to stick.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 95
- Forks
- 18
01 前言 Front Matter
- name
- settings-override
- description
- Keep a Claude Code setting change across HQ updates by writing it to .claude/settings.local.json. Use when /update-hq reset a setting or a user wants one to stick.
- allowed-tools
- Read, Edit, Write, Bash, AskUserQuestion
02 资源文件 1
- 参考文档agents/openai.yaml135 B
03 SKILL.md 正文
Settings override
.claude/settings.json ships with HQ and /update-hq replaces it, so a user's edit there is lost on the next update. .claude/settings.local.json is personal: HQ never ships it and /update-hq keeps it. Most plain keys in it override the same key in .claude/settings.json. disableArtifact does not: Claude ignores the local value, so restore-hook-settings.sh (run by /update-hq) copies a boolean disableArtifact from local.json into .claude/settings.json. Lists such as permissions and hooks are added to the shipped ones, not swapped for them, so shipped deny rules and hooks still apply.
Steps
- Find out which setting the user wants and its value. If they edited
.claude/settings.jsonby hand, compare it with the shipped version (git diffin the HQ root if it is a git checkout) to find their changes. - Tell them in one or two sentences: edits to
.claude/settings.jsonare overwritten by HQ updates; the same key in.claude/settings.local.jsonis kept and wins. Ask with AskUserQuestion whether to move the change there. Do nothing without a yes. - On yes, read
.claude/settings.local.json(create it as{}if missing). Add or update only the requested keys. Keep every other key. For objects such aspermissions, merge entries instead of replacing the object. Validate the JSON after writing. - Do not hand-edit
.claude/settings.json. If the user had hand-edited it, say the next/update-hqwill restore it. FordisableArtifact, runbash core/scripts/restore-hook-settings.shfrom the HQ root after writing local.json so the healer copies the boolean into.claude/settings.jsonnow;/update-hqdoes the same after it replaces the shipped file. - Tell them to restart the Claude session so the change takes effect, and name the file and keys you changed.
Rules
- Never put secrets, tokens or API keys in a settings file. Use
/hq-secrets. - Never weaken a deny rule or a hook from the shipped settings without the user naming that exact change.
04 同仓库更多 Skills
job
Deprecated alias for /schedule — Outpost recurring agent jobs. Prefer /schedule.
import-claude
Deprecated alias for /import-context — bootstrap HQ from your prior AI footprint (Claude Code, Codex, Grok, claude.ai history plus on-disk artifacts).
hq-whoami
Show current HQ Cognito identity and session expiry.
hq-share
Share HQ vault paths through single-use links or direct ACL grants.
hq-secrets
Use HQ CLI secrets safely through env injection or one-off exec.
hq-logout
Sign out of HQ Cognito and clear local tokens.