cd /news/ai-tools/show-hn-perspica-a-semantic-diff-for… · home › topics › ai-tools › article
[ARTICLE · art-142807] src=github.com ↗ pub= topic=ai-tools verified=true sentiment=· neutral

Show HN: Perspica – A semantic diff for reviewing code

A developer released Perspica, a semantic diff tool for reviewing code, on Hacker News' Show HN. Perspica uses an LLM run to produce semantic groupings of code changes and why they were made, and can also run without an LLM using conservative tree-sitter parsing for mechanical groupings and viewing order. When a change originates from the user's own Claude Code or Codex session, Perspica reads the prompts and marks which changes the user requested versus which the agent decided on its own.

read2 min views1 publishedSep 30, 2026

I started using this a little over half a year ago to help me navigate through some large AI coded PRs people were submitting, because I felt like if I looked at the PR on Github I would just auto pass it through because I didn't want to deal with it. Thought I'd clean it up and share it in case this style of review was useful to anyone else.

Obviously it relies on an LLM run to get true semantic groupings of what changes were done, and why, but can also be used without an LLM to get more mechanical groupings/group names of changes made, along with the right order to view them in. The manual tree-sitter parsed analysis is deliberately conservative for now, but if people want to avoid the LLM analysis I can spend more time on that.

You can use it for other peoples PRs, or for your own when you've relied heavily on Claude Code or Codex for that particular PR. If the change came from your own Claude Code or Codex session, it reads your prompts and marks which changes you asked for and which the agent decided on its own as well to help you validate it before submitting for others to review.

Demo video done on some public project PRs is in the repo; for a look at what it looks like when it pulls in information about your own claude/codex sessions you'll have to use it yourself for now, but I'll work on getting an example of that up soon so people can take a look before spending time to get this to work locally for themselves.

I also added support for perforce style side by side diffing because I always kind of liked it, though it's not quite as slick yet.

Comments URL: [https://news.ycombinator.com/item?id=49914005](https://news.ycombinator.com/item?id=49914005)

Points: 1

── more in #ai-tools 4 stories · sorted by recency
── more on @perspica 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-perspica-a-s…] indexed:0 read:2min 2026-09-30 · —