Skip to main content

A web-based git diff viewer and review tool with MCP server integration

Project description

Backloop

A web-based git diff viewer and review tool that enables AI-assisted code reviews with Claude.

Overview

Backloop provides a streamlined workflow for reviewing code changes with AI assistance. It works by:

  1. Capturing git diffs - Monitors your repository for changes (uncommitted, specific commits, or commit ranges)
  2. Presenting a review interface - Opens a web UI showing the diff with an inline commenting system
  3. AI integration - Claude can see your comments through MCP tools and address them iteratively
  4. Resolution tracking - Comments are marked as resolved as Claude fixes issues, continuing until you approve

This creates a collaborative review loop where you mark issues in the UI and Claude automatically sees and addresses them.

MCP Server Setup

To add the MCP server to Claude Code, run:

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

Standalone Usage

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

uv run server

This starts the web server which you can use to view and comment on diffs manually.

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 uncommitted changes (default)
  • commit='abc123' - Review a specific commit
  • range='main..feature' - Review a range of commits

Examples:

  • Review before committing: startreview(since='HEAD')
  • Review after committing: startreview(since='HEAD~1')
  • Review 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.

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

backloop-0.1.0.tar.gz (124.6 kB view details)

Uploaded Source

Built Distribution

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

backloop-0.1.0-py3-none-any.whl (61.6 kB view details)

Uploaded Python 3

File details

Details for the file backloop-0.1.0.tar.gz.

File metadata

  • Download URL: backloop-0.1.0.tar.gz
  • Upload date:
  • Size: 124.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for backloop-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d442d6a0608d7d99c154ca0dac09058aff334fdcc189cc76c28f54c7d751f942
MD5 2f6731cbbb95ff55148702981e18a7cc
BLAKE2b-256 f4f19376f260b0a33624217f81cb9bc13aab2ce5f77338b0c8ad7f07d17b21e1

See more details on using hashes here.

File details

Details for the file backloop-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: backloop-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 61.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for backloop-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1f67a86b7a79fd2d95729b74888f623ea7aff73e4dbf48d607de0978bbb3d53
MD5 888e574c28951b95dc2c0e988aaeb7bf
BLAKE2b-256 4ba2552e5a09252794bd473129b4bf0df52aa5a9f216ded7a164b21d60245847

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