diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 000000000..a6f12cc54 --- /dev/null +++ b/.claude/settings.json @@ -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 + } + ] + } + ], + "UserPromptSubmit": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "entire hooks claude-code user-prompt-submit", + "timeout": 30, + "async": true + } + ] + } + ], + "Stop": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "entire hooks claude-code stop", + "timeout": 30, + "async": true + } + ] + } + ], + "PreToolUse": [ + { + "matcher": "Task", + "hooks": [ + { + "type": "command", + "command": "entire hooks claude-code pre-task", + "timeout": 30, + "async": true + } + ] + } + ], + "PostToolUse": [ + { + "matcher": "Task", + "hooks": [ + { + "type": "command", + "command": "entire hooks claude-code post-task", + "timeout": 30, + "async": true + } + ] + }, + { + "matcher": "TodoWrite", + "hooks": [ + { + "type": "command", + "command": "entire hooks claude-code post-todo", + "timeout": 30, + "async": true + } + ] + } + ] + }, + "env": { + "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-sonnet-4-6-1m", + "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-6-1m" + }, + "permissions": { + "deny": [ + "Read(./.entire/metadata/**)" + ] + } +} diff --git a/.gitignore b/.gitignore index 82fa9313c..06d96d7e5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # AI -.claude +.claude/* +!.claude/settings.json .pi .worktrees prompts.db diff --git a/config/claude/settings.json b/config/claude/settings.json index 4ed1acb29..ade585456 100644 --- a/config/claude/settings.json +++ b/config/claude/settings.json @@ -148,7 +148,8 @@ { "type": "command", "command": "git-ai checkpoint claude --hook-input stdin", - "timeout": 15 + "timeout": 15, + "async": true } ] } @@ -183,8 +184,7 @@ { "type": "command", "command": "command -v dcg >/dev/null 2>&1 && dcg", - "timeout": 5, - "async": true + "timeout": 5 }, { "type": "command", @@ -211,7 +211,8 @@ { "type": "command", "command": "git-ai checkpoint claude --hook-input stdin", - "timeout": 15 + "timeout": 15, + "async": true } ] }, @@ -220,7 +221,7 @@ "hooks": [ { "type": "command", - "command": "dcg", + "command": "command -v dcg >/dev/null 2>&1 && dcg", "timeout": 5 } ]