r/ClaudeCode • u/EcstaticDog4946 • 9h ago
Built with Claude GitHub doesn't tell you which lines of a PR actually matter, so I built a tool that does.
When I review a PR on GitHub, every changed line looks equally important. A 600-line PR with one dangerous change and 580 lines of tests, docs and lockfile looks the same as 600 lines of risk. With AI writing more of the code, I'm reviewing more lines than I can actually read, and what I want is for the tool to tell me where to look.
So I built attn, an open-source Claude Code plugin. You run /attn:review <PR number> inside a repo and it gives you a page that says, for example, "Read 23 lines, not 479."
What it does
- Splits the PR into changes and sorts each one into critical, high, medium or low by blast radius: how much breaks, for how many people, and how hard it is to undo if the change is wrong.
- Some changes are marked low by plain code, with no AI involved: added tests, docs nothing reads, formatting-only JSON, lockfiles, generated files.
- The rest are judged by the model, which has to look up who calls the changed code, the file's history and its owners, and cite a path:line for every claim. A claim without a valid citation is dropped, and a missing citation can never lower a tier.
- Teams can set floors, like "anything under `src/auth/` is at least high". The model can't override them.
- The output is a local HTML page laid out like GitHub's "Files changed", riskiest first, with the reason above each diff. Low-risk changes are collapsed.
A real example
I ran it on a merged fastify PR (#7096, 479 changed lines across 11 files). It put 2 changes in high and 6 in medium, 23 lines in total. One of the highs was a 3-line `.npmrc` change that exempted a dependency from the repo's 7-day release-age guard, with a comment saying to remove it after a certain date. That is the kind of line I'd skim past in a PR that size.
What it is not
- It's early. I have not measured the tiers against real outcomes (reverts, hotfixes) yet. Treat it as "where to look first", not "safe to skip".
- It doesn't approve, merge or comment on anything. It only tells you where to spend attention.
- Generated files are labelled low without being read.
- It's local only for now: no GitHub Action or PR comment.
Everything runs on your machine in your own Claude session.
Repo: https://github.com/attn-dev/attn
I'd like to hear where it gets the tiers wrong on your PRs, and whether "blast radius" is the right thing to sort by.
•
u/AutoModerator 9h ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Ok_Breadfruit4201 7h ago
lgtm
1
u/MGTakeDown 4h ago
No one is doing code reviews with good agent harnesses these tools are basically useless. Meet the problem where it is before it even gets to a GitHub PR.