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.2.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.2.0
File Size Uploaded Provenance
lenscheck_semantic_reviewer-2.2.0.tar.gz 105.5 kB With provenance Details

Built distribution (wheel)

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

Total release size: 215.9 kB

Release files / lenscheck_semantic_reviewer-2.2.0.tar.gz

Download URL lenscheck_semantic_reviewer-2.2.0.tar.gz
Size 105.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b902bb6e9808e980bf826ab9f6c1f07253cb62ad5f7f494e1240d05ce6ddc6ea
BLAKE2b-256 checksum
How to use checksums
1b39186da679abbb19ce23c3d4b03bb75bdeb4b92da29b3fdb043cfcb44db0dd
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 Oct 8, 2026.

Transparency log

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

Download URL lenscheck_semantic_reviewer-2.2.0-py3-none-any.whl
Size 110.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0b648477023d4926465bab8185c69448fcc58597128cc5385edc3349687a57e
BLAKE2b-256 checksum
How to use checksums
82659f082acaa76ac2460240843e4622705312ac4d5fd304b5a363b7b7f4738c
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 Oct 8, 2026.

Transparency log

Security for lenscheck-semantic-reviewer 2.2.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.2.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 Oct 8, 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