From 6902b887d76cc4aea5abbcca03cf7286481e69b3 Mon Sep 17 00:00:00 2001 From: NotBigGhost Date: Sun, 6 Sep 2026 20:19:55 +0300 Subject: [PATCH] =?UTF-8?q?CLAUDE.md:=20=D0=BE=D0=BF=D0=B8=D1=81=D0=B0?= =?UTF-8?q?=D0=BD=20=D1=81=D1=82=D0=BE=D1=80=D0=BE=D0=B6=20=D1=80=D0=B0?= =?UTF-8?q?=D1=81=D1=85=D0=BE=D0=B6=D0=B4=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=81?= =?UTF-8?q?=20=D0=B2=D0=B5=D1=82=D0=BA=D0=BE=D0=B9=20notes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit В раздел «Read this first» добавлен абзац про PostToolUse-хук: чем он занят, где лежит он сам и его настройка, и почему обе части исключены через .git/info/exclude, а не .gitignore. Без этого файл описывал порядок публикации, умалчивая, что он теперь автоматический. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01B9Gcr11JJJyf8NnWsXjDzZ --- CLAUDE.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 265929a..81e1f27 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -33,6 +33,13 @@ git push CFDManager notes `git clean -xfd` deletes the working copy, since it is untracked — restore it with the first command above. +Drift is guarded automatically: a `PostToolUse` hook +(`.claude/hooks/notes_guard.py`, wired in `.claude/settings.local.json`) compares +this file against `notes` after every edit and demands a described commit when the +two diverge — necessary because an untracked file never shows up in `git status`. +Both live outside git, excluded through `.git/info/exclude` rather than +`.gitignore`, so no branch has to carry them. + The consequence to keep in mind: **this file describes the whole project, but no single branch contains all of it.** Before assuming a directory exists, check `git branch --show-current` against the map below — `rust/` and