logoalt Hacker News

boron1006today at 12:49 AM1 replyview on HN

Codebook - https://github.com/0x007BA7/codebook

It’s a better code reader built on top of sem (treesitter). I’m getting a lot of massive PRs at work now, and this has helped a lot with reading them. It decomposes the changes into entities and sorts based on what has the most dependencies. This tends to put the most important functions first. Plus I can click through the dependencies for each function and mark things as reviewed as I’m reading them. It’s a big improvement over the GitHub review flow for me at least.


Replies

deanalyzertoday at 3:11 AM

this looks incredibly useful! I've also run into similar problems with code review and been building similar tooling with the same idea (reconstructing the changes into entities, and finding focal/important changes), but haven't gone as far as this.