From 41e8a3f2b26edd34ca6a6ced74911dd2a877e5c8 Mon Sep 17 00:00:00 2001 From: George Hotz Date: Tue, 16 Dec 2025 12:30:00 -0400 Subject: [PATCH] update CLAUDE.md: add pre-commit and no-amend rules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 858e5e9204..eb262afc0f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -95,6 +95,8 @@ VIZ=1 python -c "from tinygrad import Tensor; Tensor.ones(10).sum().realize()" ## Workflow Rules - **NEVER commit without explicit user approval** - always show the diff and wait for approval +- **NEVER amend commits** - always create a new commit instead +- Run `pre-commit run --all-files` before committing to catch linting/type errors - Run tests before proposing commits - Test with `SPEC=2` when modifying UOp-related code