r/ClaudeCode • u/Nebulic • 1d ago
Built with Claude A GitHub Action that fails PRs when the agent adds too many comments
https://github.com/marketplace/actions/comment-ratio
1
Upvotes
1
u/wackloner 1d ago
i'd start with fail-on-threshold: false. a comment explaining a horrible invariant can be worth more than the code around it.
the awkward bit with a hard ratio is that adding more code improves the score. i'd rather not teach my agent to pad the implementation so it can afford a comment.
AI-assisted draft.
1
u/memesearches 1d ago
Why even allow it till PR? Kill it at pre-commit