-
Notifications
You must be signed in to change notification settings - Fork 0
Claude settings json #1262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Claude settings json #1262
Changes from all commits
4dc7992
3a951e3
c114144
54f68cd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,102 @@ | ||||||||||
| { | ||||||||||
| "hooks": { | ||||||||||
| "SessionStart": [ | ||||||||||
| { | ||||||||||
| "matcher": "", | ||||||||||
| "hooks": [ | ||||||||||
| { | ||||||||||
| "type": "command", | ||||||||||
| "command": "entire hooks claude-code session-start", | ||||||||||
| "timeout": 30, | ||||||||||
| "async": true | ||||||||||
| } | ||||||||||
| ] | ||||||||||
| } | ||||||||||
| ], | ||||||||||
| "SessionEnd": [ | ||||||||||
| { | ||||||||||
| "matcher": "", | ||||||||||
| "hooks": [ | ||||||||||
| { | ||||||||||
| "type": "command", | ||||||||||
| "command": "entire hooks claude-code session-end", | ||||||||||
| "timeout": 30, | ||||||||||
| "async": true | ||||||||||
| } | ||||||||||
|
Comment on lines
+20
to
+25
|
||||||||||
| ] | ||||||||||
| } | ||||||||||
| ], | ||||||||||
| "UserPromptSubmit": [ | ||||||||||
| { | ||||||||||
| "matcher": "", | ||||||||||
| "hooks": [ | ||||||||||
| { | ||||||||||
| "type": "command", | ||||||||||
| "command": "entire hooks claude-code user-prompt-submit", | ||||||||||
| "timeout": 30, | ||||||||||
| "async": true | ||||||||||
| } | ||||||||||
|
Comment on lines
+33
to
+38
|
||||||||||
| ] | ||||||||||
| } | ||||||||||
| ], | ||||||||||
| "Stop": [ | ||||||||||
| { | ||||||||||
| "matcher": "", | ||||||||||
| "hooks": [ | ||||||||||
| { | ||||||||||
| "type": "command", | ||||||||||
| "command": "entire hooks claude-code stop", | ||||||||||
| "timeout": 30, | ||||||||||
| "async": true | ||||||||||
| } | ||||||||||
|
Comment on lines
+46
to
+51
|
||||||||||
| ] | ||||||||||
| } | ||||||||||
| ], | ||||||||||
| "PreToolUse": [ | ||||||||||
| { | ||||||||||
| "matcher": "Task", | ||||||||||
| "hooks": [ | ||||||||||
| { | ||||||||||
| "type": "command", | ||||||||||
| "command": "entire hooks claude-code pre-task", | ||||||||||
| "timeout": 30, | ||||||||||
| "async": true | ||||||||||
| } | ||||||||||
|
Comment on lines
+59
to
+64
|
||||||||||
| ] | ||||||||||
| } | ||||||||||
| ], | ||||||||||
| "PostToolUse": [ | ||||||||||
| { | ||||||||||
| "matcher": "Task", | ||||||||||
| "hooks": [ | ||||||||||
| { | ||||||||||
| "type": "command", | ||||||||||
| "command": "entire hooks claude-code post-task", | ||||||||||
| "timeout": 30, | ||||||||||
| "async": true | ||||||||||
| } | ||||||||||
|
Comment on lines
+72
to
+77
|
||||||||||
| ] | ||||||||||
| }, | ||||||||||
| { | ||||||||||
| "matcher": "TodoWrite", | ||||||||||
| "hooks": [ | ||||||||||
| { | ||||||||||
| "type": "command", | ||||||||||
| "command": "entire hooks claude-code post-todo", | ||||||||||
| "timeout": 30, | ||||||||||
| "async": true | ||||||||||
| } | ||||||||||
|
Comment on lines
+83
to
+88
|
||||||||||
| ] | ||||||||||
| } | ||||||||||
| ] | ||||||||||
| }, | ||||||||||
| "env": { | ||||||||||
| "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-sonnet-4-6-1m", | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||||||||||
| "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-6-1m" | ||||||||||
|
Comment on lines
+94
to
+95
|
||||||||||
| "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-sonnet-4-6-1m", | |
| "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-6-1m" | |
| "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-4-5-20251001", | |
| "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-6" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Model version mismatch between project and user configs.
This project-scoped config sets models to claude-sonnet-4-6-1m, while the user-scoped config/claude/settings.json sets them to claude-sonnet-4-6. Project-scoped settings typically take precedence, so this repository will use different models than defined in the user config.
If this is intentional (e.g., 1m context for this specific project), consider adding a comment. Otherwise, align the model versions.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In @.claude/settings.json around lines 93 - 96, The project-level env keys
ANTHROPIC_DEFAULT_HAIKU_MODEL and ANTHROPIC_DEFAULT_SONNET_MODEL are set to
"claude-sonnet-4-6-1m" which conflicts with the user-level config that uses
"claude-sonnet-4-6"; either change these two values to match the user config
(claude-sonnet-4-6) or, if the 1m context is intentional for this repo, add a
concise comment next to these env entries explaining the deliberate override so
maintainers know why the project-level models differ.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| # AI | ||
| .claude | ||
| .claude/* | ||
| !.claude/settings.json | ||
| .pi | ||
| .worktrees | ||
| prompts.db | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hook command relies on the
entirebinary, but this repo doesn’t appear to installentirecross-platform (it’s only listed in the Darwin Homebrew bundle). As-is, contributors withoutentirewill get failing hooks. Consider guarding the command (e.g., checkcommand -v entirefirst) or routing through a repo-managed script that no-ops when unavailable.