Skip to content

chore: rebuild .claude config from scratch#2103

Merged
KRRT7 merged 2 commits into
mainfrom
chore/rebuild-claude-config
Apr 23, 2026
Merged

chore: rebuild .claude config from scratch#2103
KRRT7 merged 2 commits into
mainfrom
chore/rebuild-claude-config

Conversation

@KRRT7
Copy link
Copy Markdown
Contributor

@KRRT7 KRRT7 commented Apr 23, 2026

Summary

  • 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), require-read + track-read (enforces Read-before-Write/Edit), post-compact (injects git state into compaction), post-edit-lint (kept), status-line
  • Rules (10, up from 8): new sessions/debugging/github rules; rewrote code-style (absorbed source-code), git (added sizing/hygiene); removed source-code.md
  • Settings: permissions allowlist, attribution, includeCoAuthoredBy: false, full hook wiring, status line, enableAllProjectMcpServers
  • .gitignore: whitelist .claude/skills/ for tracking

Test plan

  • Start a new Claude Code session in the repo — verify status line shows user/branch
  • Try cat / grep / find in Bash — verify bash-guard blocks them
  • Try Write on a file without Read — verify require-read blocks it
  • Edit a Python file — verify post-edit-lint runs prek
  • Trigger compaction — verify post-compact injects state

KRRT7 added 2 commits April 23, 2026 04:31
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.
- Add mypy as a local pre-commit hook via prek (ruff-check + ruff-format
  + mypy now all run at commit time)
- Add Setup section to CLAUDE.md with uv sync and prek install steps
@KRRT7 KRRT7 merged commit 91f603f into main Apr 23, 2026
13 of 15 checks passed
@KRRT7 KRRT7 deleted the chore/rebuild-claude-config branch April 23, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant