Reviewing code with the help of AI

I want to use Claude to help me understand what the code is doing and I am trying to review and understand PR 468.

Stupid question ahead:

Do I download the Knots code and the PR and paste it all into Claude?

Feel like an idiot here…I apologize.

I would have claude help you set up the tools it needs on your system so that it can interact with Github. Then you can point it to a repo or PR or whatever and have it do analysis, suggest improvements, and so-on.

2 Likes

Thank you sir. Excellent!

Setting the tooling up so it can read the repo directly is a much better workflow than pasting everything, since a PR diff on its own rarely shows enough surrounding context. If you do go the copy-paste route instead, focus on the files the PR actually touches plus their callers, rather than the whole codebase. I’d also treat its explanations as a starting point and verify against the code yourself, especially around anything subtle in the logic.