Skip to main content

Lenscheck Semantic Reviewer

Git tells you what lines changed. Lenscheck tells you what those changes mean.

Lenscheck reads a Python web codebase and, for any pull request, turns a huge diff into a short, ranked list of what actually matters: new endpoints, new database writes, new external calls, and data that now leaves the system — with the exact file:line to read. It cuts through refactor noise and is honest about what it couldn't resolve. No LLM. Deterministic.

How it works — your source never leaves your machine

The lenscheck CLI is a thin client. It extracts an abstract facts graph from your code locally (Python's AST — it never runs your code) and sends only that graph — not your source — to the Lenscheck cloud, which ranks it and returns the review.

Install

pip install lenscheck-semantic-reviewer

Zero third-party dependencies. Needs Python 3.8+ and git.

Lenscheck is invite-only during the beta — you need an access key:

export LENSCHECK_API_KEY=sk_live_...     # request access below

Request beta access (free during the beta): email ankushsinghgandhi@gmail.com.

Commands

lenscheck review . --base main --pr 481   # semantic diff of a PR / range
lenscheck map .                           # every endpoint, worst-first
lenscheck usage                           # your plan + reviews used this month
lenscheck init                            # add the GitHub Action to this repo

Save outputs for CI: lenscheck review . --base main --out review.md --json review.json, then lenscheck post <pr> review.md --json review.json --inline --label.

What it detects (without running your code)

  • API routes (new / modified / removed) and their auth level
  • Database reads & writes — resolved to the real SQL table name
  • External API calls (Stripe, Twilio, …)
  • Async dispatches (Celery, threads, signals) · Cache reads/invalidations
  • PII egress — personal data leaving the system

Each fact is ✓ verified / ⚠ potential / ? unknown — it never reports "safe" for something it didn't actually trace.

GitHub Action

# .github/workflows/lenscheck.yml   (or: lenscheck init)
name: Lenscheck
on: { pull_request: {} }
permissions: { contents: read, pull-requests: write, issues: write }
jobs:
  lenscheck:
    runs-on: ubuntu-latest
    steps:
      - uses: AnkushSinghGandhi/lenscheck-semantic-reviewer@v2
        with:
          api_key: ${{ secrets.LENSCHECK_API_KEY }}

Inputs: api_key (required), api_url (self-hosting only), github_token, comment, inline, label. Full docs: GitHub repository.

License

Elastic License 2.0 — free to use, self-host, and modify; not to resell or offer as a hosted service.

Metadata

Release files for lenscheck-semantic-reviewer 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lenscheck-semantic-reviewer 2.1.0
File Size Uploaded Provenance
lenscheck_semantic_reviewer-2.1.0.tar.gz 53.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for lenscheck-semantic-reviewer 2.1.0
File Interpreter ABI Platform
lenscheck_semantic_reviewer-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 110.6 kB

Release files / lenscheck_semantic_reviewer-2.1.0.tar.gz

Download URL lenscheck_semantic_reviewer-2.1.0.tar.gz
Size 53.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d4a57d6913ac9d8c389652561ba0359afa0303ee9c26125a3acac148d3a94270
BLAKE2b-256 checksum
How to use checksums
6a63175ddc19c11c99717821e93cddf090bc72fd0ad1d385418da2c5d1926655
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

Release files / lenscheck_semantic_reviewer-2.1.0-py3-none-any.whl

Download URL lenscheck_semantic_reviewer-2.1.0-py3-none-any.whl
Size 56.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e12d7aea40faf9c2cea1e4e9781e34f3f38c70050621a818f3376f5bedf94a4f
BLAKE2b-256 checksum
How to use checksums
cd1a2b55912ba65186c9731cf4b934d2f9cf26951ab4895bcaa4bb737d5add61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

Security for lenscheck-semantic-reviewer 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lenscheck_semantic_reviewer-2.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page