Skip to main content

Prism Semantic Reviewer

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

Prism reads a Python web codebase and, for any pull request, turns a huge diff into a short, ranked list of the things that actually matter: new endpoints, new database writes, new external calls, and data that now leaves the system. It cuts through the noise of refactors and points you to the exact lines that matter.

Install

pip install prism-semantic-reviewer

Quick Start

1. Review a Pull Request, Branch, or Commit

Run a semantic review on a local repository or directly via a GitHub URL. You can compare specific branches, commits, or just point it at a PR number:

# Compare a local branch against master
prism review /path/to/repo --base master --head feature-branch

# Compare two specific commits
prism review /path/to/repo --base 9cca6d24 --head 34e8237b

# Review a GitHub PR directly
prism review https://github.com/owner/repo --pr 123

Note: The CLI outputs a Markdown (.md) file by default. This is specifically designed for GitHub Actions so that Prism can automatically post the semantic review as a formatted comment directly in your GitHub Pull Request UI.

2. Start the Interactive Web UI

If you are reviewing code locally, you can skip the markdown and use the built-in web server. It provides an interactive node-link graph visualization of your code changes.

prism serve --port 8765
# Open http://localhost:8765

3. Discover Invariants

Automatically discover and baseline properties of your codebase from its git history.

prism invariants /path/to/repo --snapshots 10

What it detects

Prism tracks cross-boundary flows without needing to run your code:

  • API Routes (new, modified, removed)
  • External API Calls (e.g. Stripe, Twilio)
  • Database Writes
  • Async Task Dispatches (e.g. Celery)
  • Authentication Level (e.g. AllowAny vs Authenticated)
  • PII Egress (Personal data leaving the system)

For full documentation, architecture details, and instructions on deploying Prism as a GitHub Action, please visit the Official GitHub Repository.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prism_semantic_reviewer-0.1.3.tar.gz (38.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prism_semantic_reviewer-0.1.3-py3-none-any.whl (37.9 kB view details)

Uploaded Python 3

File details

Details for the file prism_semantic_reviewer-0.1.3.tar.gz.

File metadata

  • Download URL: prism_semantic_reviewer-0.1.3.tar.gz
  • Upload date:
  • Size: 38.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.12

File hashes

Hashes for prism_semantic_reviewer-0.1.3.tar.gz
Algorithm Hash digest
SHA256 112b3f6e7f06fbc068bbb25fc13a21b888d9430e83a593c078dfcd557287c8d3
MD5 b14b8f44c6c96dfc354d45d030e6f26c
BLAKE2b-256 2c48c0f2317409007b4b49bd7a45bc3574410166d8dc2c7df322041921ca0e39

See more details on using hashes here.

File details

Details for the file prism_semantic_reviewer-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for prism_semantic_reviewer-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b2e257c8375e8082b61a244dce2024304abb50fb80861458ff5c17189653dd49
MD5 97e3d601f01389eead4168c3f9bf8afe
BLAKE2b-256 93faa13856b08c483b0350b7eaab3bd33d11a762107b4d2e99e06b5a488110dd

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.1

2 files

0.3.0

2 files

0.1.5

2 files

0.1.4

2 files

This release

0.1.3 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

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