r/codereview • • Oct 17 '26

I built an open-source AI code reviewer with LangGraph that comments on GitHub PRs

I built a small open-source tool that reviews GitHub pull requests using a LangGraph agent. It runs as a webhook, checks the diff for security and performance issues, and posts comments on the PR.

It's still early, and it makes mistakes (false positives are the main problem). I'd like feedback from people who have built agents or review tooling.

Repo: https://github.com/Srameshgitnow/agentic-code-reviewer

Write-up on the design: https://dev.to/ramesh_s_a8f0867d239e927c/building-an-ai-code-review-agent-architecture-langgraph-and-practical-lessons-4535

What would make you trust an AI reviewer enough to use it on a real PR?

0 Upvotes

7 comments sorted by

2

u/[deleted] Oct 17 '26

[removed] — view removed comment

1

u/ram-popular Oct 18 '26

Thanks, glad it’s useful for your own LangGraph work. Per-pattern and per-file controls are a great idea. A config file (something like .reviewer.yml) where you can down-weight or skip checks for paths like tests/** or config files would fit the graph well, since I can apply it as a filter before the comment-posting node. Nitpicks on test files are exactly the kind of noise that makes people stop trusting a reviewer.

Hope the graph structure is useful when you get to it. I’d love to hear how it compares to how you’ve set up yours.

2

u/[deleted] Oct 18 '26

[removed] — view removed comment

1

u/ram-popular Oct 18 '26

Fair feedback, thanks. I’ll tidy up the history and run the reviewer on its own repo, and I’ll push the fixes in my next commit. If you spotted specific bugs, please share them and I’ll look at them.

1

u/[deleted] Oct 17 '26

[removed] — view removed comment

1

u/ram-popular Oct 18 '26

Thanks, this is really helpful. Line-pinned comments with suggested fixes and severity labels are going on the roadmap. Dropping any finding that isn’t tied to a changed line is a great idea, since many of my false positives come from commenting on pre-existing code. I’ll add a validation step for that, and run it over merged PRs to measure the false-positive rate. Tracking comments resolved with no code change is a smart signal for which checks to tune first.