Skip to main content

diffdesk

diffdesk is a local, file-based review desk for commits made by coding agents or by people. You read the reasons for each commit next to its diff in your browser, then accept, reject or ask for a change.

AI coding agents wrote the code and the docs. A person set the goals and made the design decisions.

Install

uv tool install diffdesk     # install the command with uv
pipx install diffdesk        # or with pipx
uvx diffdesk serve review    # or run it without installing

To install the newest code from GitHub instead:

uv tool install git+https://github.com/ysBach/diffdesk

diffdesk needs Python 3.11 or newer. It has no runtime dependencies.

Quick start

  1. You create a review folder. The agent commits a change and writes a subject: one JSON file with the commit (or commit range) and the reasons for it.

    cd my-project
    diffdesk init review          # creates review/ with diffdesk.toml, subjects/, edits/, .gitignore
    diffdesk add review --id FIX-1 --title "Fix the pager"   # subject for the last commit
    diffdesk validate review      # checks every subject file
    
  2. You review the subjects in the browser. Accept, reject or ask for a change. You can also write a comment, comment on single lines, or edit the new version of a file.

    diffdesk serve review --open  # opens http://127.0.0.1:8765/
    
  3. The agent reads your verdicts, comments, line comments and edits back.

    diffdesk reviews review       # verdicts, comments, line comments and edits as JSON
    diffdesk reviews review --waiting   # only the subjects that wait for the agent
    

Verdicts and edits are plain files in the review folder. For subject fields, settings, commands and the HTTP API, read docs/settings.md.

Hand the review to an agent

diffdesk only saves your verdicts and comments. The agent reads them in one of 3 ways:

  1. Tell the agent "use diffdesk". It reads the subjects that wait for it with diffdesk reviews --waiting (MCP tool: list_reviews).

  2. Click "Copy for agent" on a subject (key y), or "Copy all waiting" at the top of the page, and paste the text into the agent chat.

  3. Click "Run agent". After you confirm the folder and the command, this starts a new agent run with the same text. It is off until you start diffdesk with an agent command, for example (then open the link that diffdesk prints):

    diffdesk serve review --agent-command "claude -p --model sonnet --effort low --no-session-persistence"
    

Each subject shows whether it waits for the agent, was sent to it, or was answered. The agent answers a subject with diffdesk add --answers PACKAGE/ID. For the rules and the tested agent commands, read docs/settings.md.

Connect an AI tool

In your project, run diffdesk setup with the names of your AI tools:

diffdesk setup claude-code codex   # tools: claude-code, codex, gemini, cursor, opencode, vscode, devin, grok
diffdesk setup vscode --dry-run    # print the changes, write nothing

For each tool, setup adds diffdesk to the project MCP config file of the tool and copies the diffdesk skill file (SKILL.md) to the skills folder of the tool. The skill file tells the agent what to do when you say "use diffdesk". If the project has no review folder yet, setup also creates review/.

Some tools need one more step from you. setup prints it at the end:

  • Claude Code: start claude in the project and approve the project server diffdesk.
  • Codex CLI: mark the project as trusted in Codex.
  • Gemini CLI: trust the project folder in Gemini CLI.
  • Cursor CLI: run agent mcp enable diffdesk.

Then tell your agent: "use diffdesk".

For a tool that setup does not know, add the MCP server by hand. The file name and format differ per tool. If diffdesk is not installed, use "command": "uvx", "args": ["diffdesk", "mcp"].

{ "mcpServers": { "diffdesk": { "command": "diffdesk", "args": ["mcp"] } } }

For an agent without MCP, add this line to its instruction file (AGENTS.md, CLAUDE.md or GEMINI.md):

For every change you commit, follow the steps that `diffdesk guide` prints.

Setup for each tool. "Tested" means a test run, described in Tested with:

Tested with

On 2026-11-29, each tool worked in a small git repository with one bug and one failing test. The code was diffdesk 0.2.0 at commit c307a37, before the version number change. Only diffdesk setup <tool> wrote the tool config. The one-time step of the person (approve the server in Claude Code, trust the project in Codex) was simulated.

  1. Round 1 prompt: "Fix the failing test. use diffdesk."
  2. A person gave the verdict "change", with a comment and one line comment.
  3. Round 2 prompt: "use diffdesk".
Tool Version Model Setup Result
Claude Code 2.1.308 claude-opus-5-5 diffdesk setup claude-code Both rounds passed. The agent read the skill, then used the MCP tools (MCP revision 2026-07-28).
Codex CLI 0.162.1 gpt-6-luna diffdesk setup codex Both rounds passed with the MCP tools (MCP revision 2025-06-18).
Claude Code, MCP only 2.1.308 claude-opus-5-5 diffdesk setup vscode, then the skill file and the review folder removed Both rounds passed. Claude Code connected with the VS Code entry in .mcp.json, and the agent called init_review.

Older tests with diffdesk 0.1.0 on 2026-11-25, in the same kind of repository. Between the rounds, a person wrote a comment and an edit of the fixed file.

Tool Version Model Result
A Gemini model through shell commands (not Gemini CLI) - not recorded Both rounds passed with diffdesk commands, without MCP.
opencode 1.19.4 none The MCP server connected (MCP revision 2025-11-25). Model runs did not finish because of model service errors.

License

MIT AND OFL-1.1: diffdesk is MIT (LICENSE), and the bundled KaTeX fonts are SIL Open Font License 1.1 (src/diffdesk/static/vendor/fonts/OFL.txt). The bundled CodeMirror, marked and KaTeX code keep their own license texts in src/diffdesk/static/vendor/LICENSES.txt.

Metadata

Release files for diffdesk 0.3.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 diffdesk 0.3.0
File Size Uploaded Provenance Actions
diffdesk-0.3.0.tar.gz 718.4 kB With provenance Details for diffdesk-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.4 MB

Release files / diffdesk-0.3.0.tar.gz

Download URL diffdesk-0.3.0.tar.gz
Size 718.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b74ecd31edb9dfc4ec0a70cb56e38565e0de6801bd6ca74df87149c9156b68d7
BLAKE2b-256 checksum
How to use checksums
92ca72e19895d2aa8df961e165dd3713ab0814ac356a59888589c25f1704c277
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / diffdesk-0.3.0-py3-none-any.whl

Download URL diffdesk-0.3.0-py3-none-any.whl
Size 692.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
695a2b528b1156dacaa0a4bd397a3ff2ab20f97f262cb3d3ad30134a179f0827
BLAKE2b-256 checksum
How to use checksums
da31c7fcb79b14eb139b31907638cb5f2f2cc5539ba10715ae03cb526928e510
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for diffdesk 0.3.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for diffdesk-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

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