letmediff CLI
letmediff is an MCP server that lets an agent share its current code diff for review and receive feedback from the reviewer without leaving the coding session.
It snapshots the repository where it is started, tracks named checkpoints, uploads the checkpoint diffs to the letmediff web app, and waits for feedback over server-sent events.
Install
From the published package:
From this workspace:
pnpm --filter letmediff exec letmediff
MCP Usage
Configure your MCP client to run letmediff in the repository you want reviewed.
Example command:
For local app development, point the CLI at the local SvelteKit server:
URL=http://localhost:5173 letmediff
If URL is not set, the CLI posts diffs to https://letmediff.com.
The server exposes four MCP tools.
create_checkpoint: stores the diff since the previous snapshot under a reviewer-friendly name.
reset_review: clears all checkpoints and restarts the review from the current working tree. Destructive.
get_url: uploads the collected checkpoints and returns the shareable /diff/[id] URL.
wait_for_feedback: waits for feedback submitted from the web app and returns it to the agent.
Review Flow
- Start the MCP server from the repository being edited.
- Ask the agent to create checkpoints when a change should appear as a separate review section.
- Ask the agent for the review URL.
- Open the URL, review the rendered diff, and submit feedback.
- The agent receives the feedback through
wait_for_feedback and can continue working.
Development
Install dependencies from the repo root:
Run tests:
pnpm --filter letmediff test
The CLI entry point is src/index.js. Git snapshotting and checkpoint diff generation live in src/git.js.
Environment
URL: base URL of the letmediff app. Defaults to https://letmediff.com.
Notes
- The server uses stdio transport, so normal stdout is reserved for MCP communication.
- It snapshots the current working directory at startup, excluding
.git.
- Checkpoints are kept in memory for the life of the MCP process.