Claude Code Settings & Permissions Builder
Build a settings.json for Claude Code: decide which commands run without asking, which are blocked, add hooks that run automatically, and set environment variables โ no JSON hand-editing.
1. Where will this file live?
.claude/settings.json โ Checked into git and shared with your whole team.
2. Permissions
Quick-add rule packs (click again to remove):
Rule: Bash
allow 0
Runs without askingNo rules yet.
ask 0
Always asks for confirmationNo rules yet.
deny 0
Blocked entirely (wins over allow)No rules yet.
3. Hooks
Hooks are shell commands Claude Code runs at lifecycle events. They receive the event as JSON on stdin (e.g. .tool_input.file_path). In PreToolUse, exit code 2 blocks the tool call and sends stderr back to Claude.
Recipes:
No hooks yet โ pick a recipe above.
4. Environment & other settings
Import existing settings.json
.claude/settings.json
โ No issues found.
{
"$schema": "https://json.schemastore.org/claude-code-settings.json"
}Precedence: managed policy โ command-line flags โ local project โ shared project โ user settings. Check what is active with /permissions and /hooks inside Claude Code.
