Skip to main content
Logo

Backloop Code Review

A fully local code review platform with a built-in feedback loop, to make iterating on agentic code output efficient and fun.

Overview

Coding assistants do great on many tasks, but they are still lacking when working on big, established code bases. In particular, getting code from a working prototype to review-grade version that meets all coding standards often requires a significant amount of manual polishing, that can easily eat up the initial efficiency gains.

Backloop provides a streamlined workflow for reviewing code changes with AI assistance, providing live feedback and an instant feedback loop.

Review Loop

It works by spinning up an ad-hoc web server that hosts a GitHub-like code review UI that's linked to the current coding session.

For the assistant, the workflow looks like this:

  1. Start a review by calling startreview() and give the returned URL to the user
  2. Call await_comments(), and ...
  3. ... if receiving a comment, work on it and call receive_comment()
  4. ... if receiving REVIEW APPROVED, done.

For the user, the workflow looks like this:

  1. Open the link to the review
  2. Leave comments with feedback, or edit small touch-ups directly
  3. When satisfied with the code, approve the review.

A review will have a url like http://127.0.0.1:52267/review/c0837b48/view?since=HEAD~1&live=true, you can adjust the query parameters to get a different view on the repository. See the reference section below to learn which parameters exist.

When in "live" mode, that is when the live parameter is set to true, the review willl also show untracked files and non-staged changes in the current working directory, and include an "edit directly" button to make small changes directly, without waiting for a round of thinking.

Installation

To add the MCP server to Claude Code use

claude mcp add local-review -- uvx --from backloop backloop-mcp

or run the equivalent command for the agent of your choice.

Then, use a prompt like this to start the review:

> Open a local review for the changes you made and wait for approval, then commit and push the changes.

Standalone Usage

You can also use Backloop without an agent, as a standalone local diff viewer:

uvx --from backloop server

This starts the web server which you can use to view diffs and add comments. (though no one will see the comments in that case)

MCP Tools Reference

Once configured, Claude has access to these MCP tools:

startreview()

Starts a new review session. Exactly one parameter must be specified:

  • since='HEAD' - Review changes since a given commit, including uncommited changes
  • commit='abc123' - Review a specific commit
  • range='main..feature' - Review a range of commits
  • title='foo' - Optional review title

Examples:

  • Review changes before committing: startreview(since='HEAD')
  • Review changes after committing: startreview(since='HEAD~1')
  • Review changes to a PR branch: startreview(range='origin/main..HEAD')

await_comments()

Blocks until either a comment is posted or the review is approved. Returns comment details (including the originating review_id) or "REVIEW APPROVED".

resolve_comment()

Marks a specific comment as resolved by its ID.

Metadata

Release files for backloop 0.4.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 backloop 0.4.0
File Size Uploaded Provenance
backloop-0.4.0.tar.gz 789.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for backloop 0.4.0
File Interpreter ABI Platform
backloop-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 874.6 kB

Release files / backloop-0.4.0.tar.gz

Download URL backloop-0.4.0.tar.gz
Size 789.4 kB
Tags Source
SHA-256 checksum
How to use checksums
425aef6ffb8d5553c4e0299c7eab279ce311ae4067df561f9d61134f9854fa12
BLAKE2b-256 checksum
How to use checksums
cfdd566c7340848a9689a6653103cf98926593f2b7f89e1b19428e65992e12bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release files / backloop-0.4.0-py3-none-any.whl

Download URL backloop-0.4.0-py3-none-any.whl
Size 85.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
274bdca712b13f08acbd4c21277b1f2c73858efde0615b7b89392e209989de16
BLAKE2b-256 checksum
How to use checksums
2e96221ef30360521c0fc8dc0e5ed0d547f95b16652abc6a9f1781de6c85bfd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Security for backloop 0.4.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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