2026-03-27 13:25:36 +00:00
|
|
|
{
|
chore: rebuild .claude config from scratch
Delete all existing .claude/ tracked files and recreate from scratch,
adapting patterns from codeflash-agent.
Hooks (6, up from 1):
- bash-guard: blocks grep/find/cat in Bash, redirects to dedicated tools
- require-read + track-read: enforces Read-before-Write/Edit
- post-compact: injects git state + project conventions into compaction
- post-edit-lint: runs prek on edited Python files (kept)
- status-line: shows user, area, branch, dirty state
Rules (10, up from 8):
- New: sessions, debugging, github (from codeflash-agent)
- Rewrote: code-style (absorbed source-code), git (added sizing/hygiene)
- Removed: source-code (folded into code-style)
Settings: permissions allowlist, attribution, includeCoAuthoredBy, full
hook wiring, status line, enableAllProjectMcpServers.
.gitignore: whitelist .claude/skills/ for tracking.
2026-04-23 09:31:04 +00:00
|
|
|
"attribution": {
|
|
|
|
|
"commit": "",
|
|
|
|
|
"pr": ""
|
|
|
|
|
},
|
|
|
|
|
"includeCoAuthoredBy": false,
|
|
|
|
|
"permissions": {
|
|
|
|
|
"allow": [
|
|
|
|
|
"Bash(git status*)",
|
|
|
|
|
"Bash(git diff*)",
|
|
|
|
|
"Bash(git log*)",
|
|
|
|
|
"Bash(git branch*)",
|
|
|
|
|
"Bash(git show*)",
|
|
|
|
|
"Bash(git fetch*)",
|
|
|
|
|
"Bash(git checkout*)",
|
|
|
|
|
"Bash(uv run*)",
|
|
|
|
|
"Bash(uv sync*)",
|
|
|
|
|
"Bash(uv pip*)",
|
|
|
|
|
"Bash(prek*)",
|
|
|
|
|
"Bash(make*)",
|
|
|
|
|
"Bash(gh *)"
|
|
|
|
|
]
|
|
|
|
|
},
|
2026-03-27 13:25:36 +00:00
|
|
|
"hooks": {
|
chore: rebuild .claude config from scratch
Delete all existing .claude/ tracked files and recreate from scratch,
adapting patterns from codeflash-agent.
Hooks (6, up from 1):
- bash-guard: blocks grep/find/cat in Bash, redirects to dedicated tools
- require-read + track-read: enforces Read-before-Write/Edit
- post-compact: injects git state + project conventions into compaction
- post-edit-lint: runs prek on edited Python files (kept)
- status-line: shows user, area, branch, dirty state
Rules (10, up from 8):
- New: sessions, debugging, github (from codeflash-agent)
- Rewrote: code-style (absorbed source-code), git (added sizing/hygiene)
- Removed: source-code (folded into code-style)
Settings: permissions allowlist, attribution, includeCoAuthoredBy, full
hook wiring, status line, enableAllProjectMcpServers.
.gitignore: whitelist .claude/skills/ for tracking.
2026-04-23 09:31:04 +00:00
|
|
|
"PreToolUse": [
|
|
|
|
|
{
|
|
|
|
|
"matcher": "Bash",
|
|
|
|
|
"hooks": [
|
|
|
|
|
{
|
|
|
|
|
"type": "command",
|
|
|
|
|
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/bash-guard.sh",
|
|
|
|
|
"timeout": 5
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"matcher": "Write",
|
|
|
|
|
"hooks": [
|
|
|
|
|
{
|
|
|
|
|
"type": "command",
|
|
|
|
|
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/require-read.sh",
|
|
|
|
|
"timeout": 5
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
2026-03-27 13:25:36 +00:00
|
|
|
"PostToolUse": [
|
chore: rebuild .claude config from scratch
Delete all existing .claude/ tracked files and recreate from scratch,
adapting patterns from codeflash-agent.
Hooks (6, up from 1):
- bash-guard: blocks grep/find/cat in Bash, redirects to dedicated tools
- require-read + track-read: enforces Read-before-Write/Edit
- post-compact: injects git state + project conventions into compaction
- post-edit-lint: runs prek on edited Python files (kept)
- status-line: shows user, area, branch, dirty state
Rules (10, up from 8):
- New: sessions, debugging, github (from codeflash-agent)
- Rewrote: code-style (absorbed source-code), git (added sizing/hygiene)
- Removed: source-code (folded into code-style)
Settings: permissions allowlist, attribution, includeCoAuthoredBy, full
hook wiring, status line, enableAllProjectMcpServers.
.gitignore: whitelist .claude/skills/ for tracking.
2026-04-23 09:31:04 +00:00
|
|
|
{
|
|
|
|
|
"matcher": "Read",
|
|
|
|
|
"hooks": [
|
|
|
|
|
{
|
|
|
|
|
"type": "command",
|
|
|
|
|
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/track-read.sh",
|
|
|
|
|
"timeout": 5
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
2026-03-27 13:25:36 +00:00
|
|
|
{
|
|
|
|
|
"matcher": "Edit|Write",
|
|
|
|
|
"hooks": [
|
|
|
|
|
{
|
|
|
|
|
"type": "command",
|
chore: rebuild .claude config from scratch
Delete all existing .claude/ tracked files and recreate from scratch,
adapting patterns from codeflash-agent.
Hooks (6, up from 1):
- bash-guard: blocks grep/find/cat in Bash, redirects to dedicated tools
- require-read + track-read: enforces Read-before-Write/Edit
- post-compact: injects git state + project conventions into compaction
- post-edit-lint: runs prek on edited Python files (kept)
- status-line: shows user, area, branch, dirty state
Rules (10, up from 8):
- New: sessions, debugging, github (from codeflash-agent)
- Rewrote: code-style (absorbed source-code), git (added sizing/hygiene)
- Removed: source-code (folded into code-style)
Settings: permissions allowlist, attribution, includeCoAuthoredBy, full
hook wiring, status line, enableAllProjectMcpServers.
.gitignore: whitelist .claude/skills/ for tracking.
2026-04-23 09:31:04 +00:00
|
|
|
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/post-edit-lint.sh",
|
2026-03-27 13:25:36 +00:00
|
|
|
"timeout": 30
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
chore: rebuild .claude config from scratch
Delete all existing .claude/ tracked files and recreate from scratch,
adapting patterns from codeflash-agent.
Hooks (6, up from 1):
- bash-guard: blocks grep/find/cat in Bash, redirects to dedicated tools
- require-read + track-read: enforces Read-before-Write/Edit
- post-compact: injects git state + project conventions into compaction
- post-edit-lint: runs prek on edited Python files (kept)
- status-line: shows user, area, branch, dirty state
Rules (10, up from 8):
- New: sessions, debugging, github (from codeflash-agent)
- Rewrote: code-style (absorbed source-code), git (added sizing/hygiene)
- Removed: source-code (folded into code-style)
Settings: permissions allowlist, attribution, includeCoAuthoredBy, full
hook wiring, status line, enableAllProjectMcpServers.
.gitignore: whitelist .claude/skills/ for tracking.
2026-04-23 09:31:04 +00:00
|
|
|
],
|
|
|
|
|
"PreCompact": [
|
|
|
|
|
{
|
|
|
|
|
"hooks": [
|
|
|
|
|
{
|
|
|
|
|
"type": "command",
|
|
|
|
|
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/post-compact.sh",
|
|
|
|
|
"timeout": 10
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
2026-03-27 13:25:36 +00:00
|
|
|
]
|
chore: rebuild .claude config from scratch
Delete all existing .claude/ tracked files and recreate from scratch,
adapting patterns from codeflash-agent.
Hooks (6, up from 1):
- bash-guard: blocks grep/find/cat in Bash, redirects to dedicated tools
- require-read + track-read: enforces Read-before-Write/Edit
- post-compact: injects git state + project conventions into compaction
- post-edit-lint: runs prek on edited Python files (kept)
- status-line: shows user, area, branch, dirty state
Rules (10, up from 8):
- New: sessions, debugging, github (from codeflash-agent)
- Rewrote: code-style (absorbed source-code), git (added sizing/hygiene)
- Removed: source-code (folded into code-style)
Settings: permissions allowlist, attribution, includeCoAuthoredBy, full
hook wiring, status line, enableAllProjectMcpServers.
.gitignore: whitelist .claude/skills/ for tracking.
2026-04-23 09:31:04 +00:00
|
|
|
},
|
|
|
|
|
"statusLine": {
|
|
|
|
|
"type": "command",
|
|
|
|
|
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/status-line.sh"
|
|
|
|
|
},
|
2026-04-23 10:08:37 +00:00
|
|
|
"enableAllProjectMcpServers": true,
|
|
|
|
|
"env": {
|
|
|
|
|
"ENABLE_LSP_TOOL": "1"
|
|
|
|
|
}
|
2026-03-27 13:25:36 +00:00
|
|
|
}
|