Show HN: Semantic-diff – understanding intent, risk and impact behind Git diffs
github.com
Show HN: Semantic-diff – understanding intent, risk and impact behind Git diffs
1–7 of 7 posts
Re: Show HN: Semantic-diff – understanding intent, risk and impact behind Git diffs
#2https://github.com/tkenaz/semantic_diff/blob/main/semantic_d...
The Intent in this report just paraphrases the well-written commit message. But what about things not written? Funnily the tool catches up the drifts:
2. Why was 196 lines of CLAUDE_NOTES.md removed? Was this intentional cleanup or accidental deletion of important project context?
The diff shows massive content reduction in project documentation with no explanation in the commit message. This could represent loss of architectural decisions, bug tracking, or development history.
So... why? No answer is given because not possible. 6. Why skip dependabot PRs specifically? Shouldn't dependabot updates also be semantically analyzed to catch breaking changes in dependencies?
Dependabot PRs could introduce security vulnerabilities or breaking API changes that semantic analysis would catch. Skipping them entirely might miss important issues.
Good question. But, again, no answer.Also maybe have an option on analysis extend, sections to see, and perhaps prompt to lessen the redundant information. E.g. in previous report, the "CLAUDE_NOTES.md massive content reduction" appears in Impact Map, Risk Assessment, Review Questions. Plus the entire sentence "Massive reduction in file size (212 lines removed, 16 added) suggests project documentation/status was significantly refactored or cleaned up" simply states what is obvious from the deleted lines in Files Changed. Some may like this, other (incl. me) won't. Personally will've preferred overall report be shorter.
The indirect impacts section seems interesting. There're cases that one may want to see modules impacted by a change, e.g. a function changing the result, making another function fail. But this is probably doable heuristically rather requiring an LLM to read the codebase.
Re: Show HN: Semantic-diff – understanding intent, risk and impact behind Git diffs
#3That's commit review not semantic diff, and "why" some changes happened should be in the commit body (some will argue should be in code comments too) rather try figure it out after the fact, which won't even work. E.g. https://github.com/tkenaz/semantic_diff/blob/main/semantic_d... The Intent in this report just paraphrases the well-written commit message. But what about things not written? Funnily the tool catches u…
Re: Show HN: Semantic-diff – understanding intent, risk and impact behind Git diffs
#4That's commit review not semantic diff, and "why" some changes happened should be in the commit body (some will argue should be in code comments too) rather try figure it out after the fact, which won't even work. E.g. https://github.com/tkenaz/semantic_diff/blob/main/semantic_d... The Intent in this report just paraphrases the well-written commit message. But what about things not written? Funnily the tool catches u…
Fair points :). The naming is 'evolutionary' — started as 'semantic diff' because it analyzes meaning not just lines, but 'commit review' is more accurate for what it does now. You're right about the redundancy — same issue appearing in 3 sections is noise. Adding output config (sections to include, verbosity level) is on the list. The 'why was this deleted' questions — yeah, the tool can't answer, but surfacing the…
Re: Show HN: Semantic-diff – understanding intent, risk and impact behind Git diffs
#5That's commit review not semantic diff, and "why" some changes happened should be in the commit body (some will argue should be in code comments too) rather try figure it out after the fact, which won't even work. E.g. https://github.com/tkenaz/semantic_diff/blob/main/semantic_d... The Intent in this report just paraphrases the well-written commit message. But what about things not written? Funnily the tool catches u…
Fair points :). The naming is 'evolutionary' — started as 'semantic diff' because it analyzes meaning not just lines, but 'commit review' is more accurate for what it does now. You're right about the redundancy — same issue appearing in 3 sections is noise. Adding output config (sections to include, verbosity level) is on the list. The 'why was this deleted' questions — yeah, the tool can't answer, but surfacing the…
That's true. Could even expand on this and make it have a --check-msg mode that returns 0/1 (good/bad) if commit messages lack the reasoning for the changes they're doing. Although, linting commit messages is last thing I want to do.
Re: Show HN: Semantic-diff – understanding intent, risk and impact behind Git diffs
#6Earlier quoted context omitted.
Fair points :). The naming is 'evolutionary' — started as 'semantic diff' because it analyzes meaning not just lines, but 'commit review' is more accurate for what it does now. You're right about the redundancy — same issue appearing in 3 sections is noise. Adding output config (sections to include, verbosity level) is on the list. The 'why was this deleted' questions — yeah, the tool can't answer, but surfacing the…
>the tool can't answer, but surfacing the question for the reviewer has value That's true. Could even expand on this and make it have a --check-msg mode that returns 0/1 (good/bad) if commit messages lack the reasoning for the changes they're doing. Although, linting commit messages is last thing I want to do.
Re: Show HN: Semantic-diff – understanding intent, risk and impact behind Git diffs
#7I’d love to hear your thoughts on combining semantic analysis with automated impact and risk detection it could be a powerful combo for reviewers.