Skip to main content

MagicReview: a local-first, self-hostable AI code review platform.

Project description

MagicReview

Review code like magic.

MagicReview is a local-first, self-hostable AI code review platform for CLI, Docker, Dashboard, MCP tools, and GitHub App workflows.

MagicReview defaults are intentionally conservative and offline by default:

  • Runs local static analysis by default.
  • Does not call real LLM providers by default.
  • Does not upload source code unless network access is explicitly enabled.
  • Uses MGREVIEW_ environment variables and .magicreview/ data by default.

Quick Start

pip install magicreview
mgreview --help
mgreview project examples/multi_agent_project --agents --format terminal

From source:

git clone https://github.com/KrisMagical/review-agent.git
cd review-agent
pip install -e ".[all,dev]"
mgreview --help

CLI

mgreview --help
mgreview --version
mgreview file app/main.py
mgreview diff
mgreview project .
mgreview project examples/multi_agent_project --agents --format json
mgreview dashboard init-db
mgreview dashboard serve
mgreview mcp
mgreview github-app serve

Optional standalone entry points are also packaged for service runners:

mgreview-mcp
mgreview-dashboard
mgreview-github-app

Docker

docker build -t magicreview .
docker run --rm magicreview mgreview --help
docker run --rm -v "$PWD:/workspace" magicreview mgreview project /workspace --format json
docker compose up dashboard
docker compose up github-app

Docker Compose persists SQLite data in ./.magicreview.

Configuration

MagicReview uses MGREVIEW_ as its environment variable prefix:

MGREVIEW_DB_PATH=.magicreview/magicreview.db
MGREVIEW_LLM_PROVIDER=none
MGREVIEW_NETWORK_ENABLED=false
MGREVIEW_ALLOW_LLM=false
MGREVIEW_CODE_SHARING_MODE=none
MGREVIEW_AUTH_ENABLED=false

Default data lookup order:

  1. MGREVIEW_DB_PATH
  2. .magicreview/magicreview.db

GitHub App

MagicReview supports diff_only and full_project review modes. The generated pull request summary ends with:

Generated by MagicReview.

License

MagicReview is released under the MIT License. See LICENSE.

Project details


Download files

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

Source Distribution

magicreview-0.1.3.tar.gz (171.8 kB view details)

Uploaded Source

Built Distribution

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

magicreview-0.1.3-py3-none-any.whl (155.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: magicreview-0.1.3.tar.gz
  • Upload date:
  • Size: 171.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for magicreview-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a3e47a8871ff6749179e084710887f6b2785e0893eda20761b5ebfb4a11213c5
MD5 8ba5d0cb5f71e691e6d88ae755073494
BLAKE2b-256 c94c4b0befae79cd8127cfdc095328af4a8267715371a7067fac1042825153cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: magicreview-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 155.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for magicreview-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 168600ea9bf2c16941c6b4cdd5f5ac4cc37844e3e69b198e4c9682be2d9b5373
MD5 dbe6709d03d2c92983e435be59654c18
BLAKE2b-256 8bc75f84c1043b7496e9669483e5bd4b803c489d873549b3db4b5f7074b78f9c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page