DiffLens: Using LangGraph to verify line-range coordinates in LLM code reviews

wwyb1 pts0 comments

GitHub - ywu593412-afk/difflens: Automated code review workflow using LangGraph to fix line-number hallucinations. · GitHub

/" data-turbo-transient="true" />

Skip to content

Search or jump to...

Search code, repositories, users, issues, pull requests...

-->

Search

Clear

Search syntax tips

Provide feedback

--><br>We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Cancel

Submit feedback

Saved searches

Use saved searches to filter your results more quickly

-->

Name

Query

To see all available qualifiers, see our documentation.

Cancel

Create saved search

Sign in

/;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up

Appearance settings

Resetting focus

You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

ywu593412-afk

difflens

Public

Notifications<br>You must be signed in to change notification settings

Fork

Star

main

BranchesTags

Go to file

CodeOpen more actions menu

Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit

History<br>22 Commits<br>22 Commits

.github/workflows

.github/workflows

examples

examples

reviewflow

reviewflow

tests

tests

.gitignore

.gitignore

LICENSE

LICENSE

README.md

README.md

package.json

package.json

tsconfig.json

tsconfig.json

View all files

Repository files navigation

DiffLens

A lightweight TypeScript tool built with LangGraph for reviewing Git diffs, with additional verification steps designed to isolate and filter out-of-bounds line hallucinations.

Note: This project started as an experiment to move beyond single-prompt review scripts and see if a structured pipeline can stop broken coordinate references before displaying the final output.

Status: Core engine fully functional and verified via automated CI pipeline.

Architecture

B[Parser Node: Extract Line Range]<br>B --> C[LLM Generation Node: Review Comments]<br>C --> D[Verifier Node: Coordinate Check]<br>D -- Line Out of Bounds --> E[Conditional Router: Error Feedback]<br>E --> C<br>D -- Valid Coordinates --> F[Final Approved Report]<br>" dir="auto">

graph TD<br>A[Git Diff Input] --> B[Parser Node: Extract Line Range]<br>B --> C[LLM Generation Node: Review Comments]<br>C --> D[Verifier Node: Coordinate Check]<br>D -- Line Out of Bounds --> E[Conditional Router: Error Feedback]<br>E --> C<br>D -- Valid Coordinates --> F[Final Approved Report]

Loading

About

Automated code review workflow using LangGraph to fix line-number hallucinations.

Resources

Readme

License

MIT license

Uh oh!

There was an error while loading. Please reload this page.

Activity

Stars

star

Watchers

watching

Forks

forks

Report repository

Releases

v1.0.0 - Core Engine Release

Latest

May 31, 2026

Packages

Uh oh!

There was an error while loading. Please reload this page.

Contributors

Uh oh!

There was an error while loading. Please reload this page.

Languages

TypeScript<br>95.1%

JavaScript<br>4.9%

You can’t perform that action at this time.

line reload node review search feedback

Related Articles