LXReview
Independent AI review loops for Claude Code development on your CERN VM or LXPLUS.
ChatGPT reviews the actual GitHub PR or GitLab merge request, Claude evaluates and fixes useful findings, and LXReview sends the updated PR through another independent review. The run continues in the background until no accepted substantial issues remain or the pass limit is reached.
Why LXReview?
- Independent review — ChatGPT reads the PR on GitHub or the MR on GitLab rather than relying on Claude's description of its work.
- Automatic fix/review loop — accepted findings can be fixed, checked, committed, pushed and reviewed again.
- Persistent runs — reviews keep running after you close the Claude chat.
- Visible decisions — follow findings, accept/reject reasons, edits, checks, commits and subsequent passes.
- Uses existing subscriptions — sign into ChatGPT normally; no OpenAI API key or API credits are required.
See it in action
In Claude Code, /review-loop starts the run with the chosen reviewer and worker models, then relays each step as it happens: the review's findings, which ones Claude accepts or rejects, the fix, and the final result. The run itself continues in the background, so closing the chat does not stop it.
For the full detail, run lxreview watch <run-id> in any terminal on the same host. It shows each review pass, every finding with Claude's decision and reason, the commands and checks Claude runs, and the commit it pushes before the next pass. Ctrl-C only stops watching.
Meanwhile, in the background, ChatGPT runs in LXReview's own Chrome. Each pass opens a fresh Temporary Chat, sends the review request and waits for the complete answer, which must end with a verdict. You never need to watch this, but you can: run lxreview desktop connect on the host and follow the printed SSH tunnel and VNC viewer steps on your workstation (in local-browser mode, the Chrome window is on your workstation already).
How it works
flowchart LR
PR[PR on GitHub / MR on GitLab] --> Review[ChatGPT reviews]
Review --> Evaluate[Claude evaluates findings]
Evaluate --> Fix[Accepted fixes + checks + push]
Fix --> Review
The loop finishes when no accepted substantial issues remain, with at most one extra pass of non-blocking fixes. The final pass reports remaining issues without making edits that would go unreviewed; errors stop the run rather than count as success.
Quick start
Prerequisites
- A CERN Linux host (your own VM, or LXPLUS) and a Git checkout of the project you want reviewed.
- A public repository: ChatGPT reads the PR or MR without signing in, which it cannot do for private or internal projects. GitHub PRs also need the GitHub CLI (
gh) authenticated withgh auth login; GitLab merge requests on gitlab.com and gitlab.cern.ch need no extra login. - A ChatGPT account that can access the PR or MR, and a workstation with SSH and a VNC viewer for the initial browser login.
- About 700 MB free in your home directory for the Python environment and the pinned Chrome (in an AFS home, check with
fs listquota ~).
The host also needs the desktop and sandbox tools checked by doctor; see host requirements.
If you do not have uv and Claude Code yet, install both into ~/.local/bin, then start claude once to sign in:
curl -LsSf https://astral.sh/uv/install.sh | sh
curl -fsSL https://claude.ai/install.sh | bash
export PATH="$HOME/.local/bin:$PATH" # add this line to ~/.bashrc to keep it in new shells
claude
Install and log in
Run these on the host where you will work. We recommend your own CERN VM; an LXPLUS node also works:
uv tool install --managed-python --no-cache --link-mode=copy lxreview
lxreview setup --mode lxplus-browser
lxreview login
lxreview doctor
--no-cache and --link-mode=copy are only needed in an AFS home (small quota, no hard links). To install from a checkout, pass its path instead of lxreview. If lxreview is not found, run uv tool update-shell. setup installs the pinned Chrome and the Claude Code integration under ~/.lxreview; login walks you through the remote desktop and the ChatGPT sign-in.
To view the browser again later, run lxreview desktop connect on the same host. It prints the SSH tunnel and VNC viewer instructions to follow on your workstation; see reconnecting to the desktop.
Start your first review
Open a new Claude Code conversation in the project you want reviewed, with its PR or MR branch checked out and the working tree clean. Replace the example URL with your PR or MR:
/review-loop https://github.com/owner/repository/pull/123
/review-loop https://gitlab.cern.ch/group/project/-/merge_requests/123
Or, for GitHub, let LXReview find the current branch's PR:
/review-loop
The branch must be pushed to its upstream and have an open PR or MR that ChatGPT can open, because it reads the code on GitHub or GitLab. The command returns a run ID and follows progress in the same chat.
What happens during a review?
- ChatGPT independently reviews the current PR in a fresh Temporary Chat.
- Claude evaluates substantial findings and eligible non-blocking findings against the code and PR discussion, including decisions already settled there.
- Claude runs the project's relevant checks on the unchanged code, implements accepted fixes, then checks again.
- Claude commits the fixes; LXReview pushes them and asks ChatGPT to review the updated PR.
New check failures block publication. Pre-existing failures and checks that cannot run are reported. See review decisions and verification for the detailed policy.
Following and controlling a run
Closing the Claude chat does not stop the review run. Watch it again from another conversation on the same host, or use the terminal. Ctrl-C in a terminal watch also stops only the watching.
Replace <run-id> with the ID returned at startup; lxreview runs lists IDs and hosts.
| Task | Claude Code | Terminal |
|---|---|---|
| Follow | /review-watch <run-id> |
lxreview watch <run-id> |
| Check status | /review-status <run-id> |
lxreview status <run-id> |
| Inspect pass 1 | /review-show <run-id> 1 |
lxreview show <run-id> --pass 1 |
| Stop | /review-stop <run-id> |
lxreview stop <run-id> |
| Resume | /review-resume <run-id> |
lxreview resume <run-id> |
Resume is for failed, cancelled or interrupted runs and requires a clean, pushed checkpoint. Runs survive ordinary disconnection, subject to host policy, but not node reboot or drain.
One run at a time
LXReview reviews one run at a time per host, even across repositories: a run keeps the ChatGPT browser for its whole duration, including while Claude evaluates and fixes. While a run is active, run and resume refuse and name it. Wait for it to finish, or stop it with lxreview stop <run-id>. doctor also reports the browser as busy until the run ends.
Choosing models
Defaults work without configuration. Override model and effort for one run:
/review-loop --chatgpt sol:high --claude opus:xhigh
lxreview options lists available choices. See Configuration for persistent defaults, pass limits and custom verification environments.
Browser modes
Use lxplus-browser for normal use and persistent runs. It runs the browser on the host where you installed LXReview, whether that is your VM or LXPLUS.
| Mode | Best for | Main trade-off |
|---|---|---|
lxplus-browser |
Runs independent of your workstation | Browser runs on the host |
local-browser |
Keeping the browser on your workstation | Workstation must stay online, awake and connected |
For the alternative mode, run lxreview setup --mode local-browser --role host on the host, then follow the workstation setup and pairing steps.
Common commands
| Command | Purpose |
|---|---|
lxreview doctor |
Check setup and perform a ChatGPT smoke test |
lxreview runs |
Find runs and their host |
lxreview options |
List model and effort choices |
lxreview update |
Upgrade LXReview to the latest release, set it up again and restart its services |
lxreview uninstall |
Remove integration and archive the installation |
Run controls are listed above. See Operations for upgrade options, reports and recovery.
Troubleshooting
- Run
lxreview doctor; use--no-smoketo avoid consuming a ChatGPT turn. - Check
gh auth statusand ensure your clean, pushed branch matches the PR. - On AFS,
runandresumerequire at least two hours of token lifetime; renew withkinitfollowed byaklog. - After setup changes, open a fresh Claude Code conversation to load the integration.
More help: Operations and troubleshooting.
More documentation
Browser automation is not an official OpenAI, Anthropic or CERN integration. UI changes can break it; each user logs in normally, with no CAPTCHA or MFA bypass.
Metadata
Release files for lxreview 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lxreview-0.1.2.tar.gz | 256.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lxreview-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 353.4 kB
Release files / lxreview-0.1.2.tar.gz
| Download URL | lxreview-0.1.2.tar.gz |
|---|---|
| Size | 256.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ceb89f043e3806749e9995d5edf8b70c3d1735affb0adae6c8943f994663ecb6
|
|
BLAKE2b-256 checksum How to use checksums |
ef047b26780dee905c0e945e22435ef8ee452cd8919f974a411c34a61699c564
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / lxreview-0.1.2-py3-none-any.whl
| Download URL | lxreview-0.1.2-py3-none-any.whl |
|---|---|
| Size | 96.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b5dddc31fd52c3c77c1fadf33279941630ac09850c2ce3b95d24bbe4ac5786b
|
|
BLAKE2b-256 checksum How to use checksums |
06685d7692978e9bdad1cdf52ffffc2c0d66e3edf5d92a3a707875b7fa214b25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|