Code review that gets your code.

Jargons reads every pull request, catches real issues, and leaves thoughtful feedback. It also scans existing codebases for bugs, vulnerabilities, and structural problems.

free for public repositories · setup in under 2 minutes

feat: improve session validation

acme/web-app · pull request #248

src/lib/auth/session.ts+12 −4
38export async function validateSession(token: string) {
39 const session = await db.session.findUnique({
40 where: { token },
41 })
42 if (!session) return null
42+ if (!session || session.expiresAt < new Date()) {
43+ await db.session.delete({ where: { token } })
44+ return null
45+ }
46 const user = await db.user.findUnique({
47 where: { id: session.userId },
48 include: { roles: true },
49 })
50 if (!user || user.disabledAt) {
51 await revokeSession(session.id)
52 return null
53 }
54 return { session, user, roles: user.roles }
55}
jargons/review
2 findings

Race condition

high

Two requests can pass this check before the expired session is deleted. Use a transaction to make the read and delete atomic.

Nice improvement

Cleaning up expired sessions here keeps downstream authorization checks simpler.

8 files · 42 seconds

A second set of eyes that understands the system.

Review pull requests and scan existing codebases for bugs, vulnerabilities, dependency risks, and structural issues.

analysis.pipeline03 signals

auth.ts

critical

api.ts

clear

cache.ts

warning

tracing dependencies
01 / risk detection

Find what could break.

Jargons follows the changed code through its dependencies to surface logic errors, security gaps, and risky edge cases.

review.context
jargons

This bypasses the rate limiter when the forwarded host header is missing.

why it matterssuggested fix
02 / useful context

Comments worth reading.

Every finding explains the impact and gives your team a practical next step—not a vague warning or style nitpick.

review.runlive
5

files

08

findings

02

elapsed

00:42

03 / fast feedback

Review without the wait.

Get prioritized feedback while the pull request is still fresh, so human review starts with the important questions.

repository.scan1,248 files

api/

4 risks

auth/

2 risks

core/

structure

worker/

clear

04 / codebase scan

Understand the existing system.

Scan an existing codebase for bugs, vulnerabilities, dependency risks, and structural problems before they become expensive.

From pull request to better code.

01

event received

Connect GitHub

Choose which repositories Jargons should watch.

02

analysis running

Open a pull request

The review starts automatically on every new diff.

03

ready to merge

Resolve and merge

Work through focused findings and ship cleaner code.

Give your next pull request a sharper review.

Connect a repository and get your first Jargons review in minutes. No credit card required.

Install the GitHub app
terminal

$ jargons connect acme/web-app

repository connected

pull request events enabled

ready for first review_