Repository navigation
No Comment: keep Claude-written PRs from being 20% comments (hook + PR check) #1884
sami-abdul
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
If your team reviews PRs written by Claude (via this action or locally), you have probably seen diffs where a big share of the lines are comments like
// Now uses the cache as requestedor// Changed from the previous approach. There is a 250+ 👍 issue about it: anthropics/claude-code#65961.No Comment handles it at two points:
PostToolUsehook (plugin:/plugin marketplace add swarm-t3/nocomment) blocks right after an Edit/Write when new comments narrate the chat or exceed a small budget, and Claude removes them in the same turn. For CI runs of claude-code-action, commit the hook into the repo withnpx github:swarm-t3/nocomment init. That writes.claude/settings.jsonand.claude/hooks/nocomment.js, which Claude Code picks up in the runner too.Example of the annotations on a PR: https://github.com/swarm-t3/nocomment/pull/2
Zero dependencies, MIT: https://github.com/swarm-t3/nocomment
All reactions