Claude keeps committing your rejections to git history, so this dev built a hook to stop it
chufan_shi · reddit · 2026-09-15
Developer chufanshi noticed Claude keeps leaving conversational residue in code: rejected features show up as "without backoff" in commit messages, test names like testparserwithoutregex, and comments like "// iterative, as you asked". His diagnosis: it's not a negation problem — many residues contain no "no" at all — it's that Claude writes for the person in the chat, not the future reader of the file.
His fix, the open-source ship-the-result project, ships three pieces:
- A SKILL.md with the rule and a test — would this line make sense a year from now with no chat access? — plus guidance on distinguishing real requirements (e.g. "Allow login without password for SSO users") from residue.
- A scanner script flagging six kinds of residue.
- A PreToolUse hook that runs the scanner on git commit and gh pr create, covering staged comments, test names and new filenames; on a hit it blocks and explains why. Re-running the same command and passing confirms a real requirement. He made it a hook because prompt rules fade after 40 turns, but regex doesn't. Installable with a one-line curl command.
More from coding & agent
- GMI launches MCP server exposing 150+ multimodal models to Claude, ChatGPT and Cursor — _jaydeepkarale · 2026-09-16
- Lovable rewrites Vite dev server in Rust: 2x faster cold starts, 4x less memory; Evan You responds — cnakazawa · 2026-09-16
- Codex CLI Users Angry: Two Unwanted Features Added in Quick Succession, One Wastes Tokens — ssh4net · 2026-09-16
- Google's Gary Illyes: keep important content in HTML as LLMs crawl the web — lilyraynyc · 2026-09-16
- PenEcho: open-source canvas turns AI chats into shared visual workspaces via MCP — abhishek__AI · 2026-09-16
- Solo dev's automated agent sales pipeline nets $23k this week, $2k/month on tokens — Specialist_Call_1257 · 2026-09-16