← Reddit

Enforce code style on Claude Code with a hook, not a CLAUDE.md rule

Reddit · abemedia · August 29, 2026
Anything you put in CLAUDE.md is advice. The model follows it when it remembers to, and you pay for it in context every session either way. A Stop hook is not advice. It runs a command every time Claude finishes, and if that command exits with status 2 its

Detailed Analysis

Detailed analysis coming soon.

Read original article →