You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 11, 2026. It is now read-only.
"positives": ["At least one positive observation"]
102
+
}
103
+
```
104
+
105
+
The consensus algorithm uses severity to weight disagreements: a `Critical` finding from any model blocks SHIP regardless of the other model's verdict. `Suggestion`-only findings do not block.
67
106
68
107
### ReviewVerdict
69
108
-**SHIP**: Code is ready
70
-
-**NEEDS_WORK**: Code needs fixes
109
+
-**NEEDS_WORK**: Code needs fixes (at least one Critical or multiple Important findings)
71
110
-**ABSTAIN**: Model cannot determine (excluded from consensus)
Every finding MUST carry a severity prefix. Use exactly these four levels:
77
+
78
+
-**`Critical:`** — Blocks ship. Could cause outage, data loss, security breach, or correctness failure.
79
+
-**`Important:`** — Must fix before or shortly after ship. Significant quality, readability, or architecture issue.
80
+
-**`Nit:`** — Optional improvement. Style, naming, minor simplification.
81
+
-**`FYI`** — Informational. Context for the author, no action required.
82
+
83
+
Every review MUST include a "What's Good" section with at least one positive observation. Acknowledge patterns followed, good design decisions, thorough error handling, or clean naming.
Annotation-based code protection for Claude Code. Mark code blocks with `simplify-ignore-start` / `simplify-ignore-end` annotations and the hook replaces them with `BLOCK_<hash>` placeholders before the model sees them. On edit or write, placeholders are expanded back to the original code. On session stop, all files are fully restored.
4
+
5
+
## Setup
6
+
7
+
Add to your project's `.claude/settings.json` (NOT `hooks/hooks.json` -- this is opt-in per project):
Block hashes are 8 hex chars from `shasum`/`sha1sum` of the block content, making round-trips unambiguous.
67
+
68
+
## Crash recovery
69
+
70
+
If Claude Code exits without triggering the Stop hook, files may still have `BLOCK_<hash>` placeholders. Restore manually:
71
+
72
+
```bash
73
+
echo'{}'| bash hooks/simplify-ignore.sh
74
+
```
75
+
76
+
Backups are in `.claude/.simplify-ignore-cache/` within your project directory.
77
+
78
+
## Known limitations
79
+
80
+
-**Single-line blocks hide the entire line.** Use dedicated lines for annotations.
81
+
-**Suffix detection covers `*/` and `-->` only.** Non-standard template comment closers (ERB, Blade) may not work; use `#` or `//` instead.
82
+
-**Fuzzy fallback on altered placeholders.** If the model changes a placeholder's reason text, the hook tries a hash-only match which may leave cosmetic debris.
83
+
-**File renaming leaves placeholders.** Renamed files retain placeholders; originals are saved as `.recovered` on stop.
0 commit comments