LeClap

Pull request evidence

Don't describe the change. Show it.

When a pull request changes the interface, an agent captures both sides and writes a LeClap template. LeClap renders a short before-and-after clip that plays right in the description. This repo does it on its own pull requests.

Agentic development · 0:50

Fifty seconds, start to finish: the agent implements the change, collects the evidence, LeClap renders the clip, and the pull request shows it.

One pull request

Scroll, and the description fills in

From a diff to a clip the reviewer watches before reading the code.

Open

Make add to cart obvious SHOP-123

feat/cart-button main

The diff touches the app

A visible change needs evidence. Without one, the description says why in one line.

demo-shop/index.html
<span class="tiny-add">add to cart</span><button class="add">Add to cart — €24</button>

Visible change: evidence required

Both sides are captured

The merge base and the branch: same screen, state, data and viewport.

Before: Add to cart is a small grey link under the product copyBefore
merge base
After: a primary Add to cart button, the cart drawer openAfter
branch

An agent writes the template

The ticket, the change in one line, where each run starts, the frame to freeze, the area to ring.

content.json
{  "ticket": "SHOP-123",  "summary": "Add to cart becomes a primary button that opens the cart",  "clipSeconds": 3.1,  "freeze": { "at": 1.7, "hold": 2.4 },  "intro": { "headline": "MAKE ADD TO CART OBVIOUS" },  "sides": [    { "side": "before", "trim": 1.2,      "highlight": { "x": 1140, "y": 18, "w": 84, "h": 32 } },    { "side": "after", "trim": 0.1,      "highlight": { "x": 906, "y": 24, "w": 348, "h": 292 } }  ]}

Description

LeClap renders the clip

Validated first, then rendered with a manifest and quality checks.

npx leclap render evidence-house --content content.json --preview --pr-block github

It plays in the description

Attached so it plays inline, committed with the scripts that remake it.

leclap-shop-123-evidence.mp412.3 sValidatedPlays inline

This pull request is the repo's runnable demo: a shop page where Add to cart becomes a button. Open the example

The reference

Rendered from configuration

One config file and LeClap's packaged evidence template: the demo shop's change, on a desktop and a phone in a single render.

  • Desktop and phone in one clip

    The same change on a desktop, then on a phone with its copy in a column beside it. One render also writes the looping preview and the description block. 18 seconds.

Why reviewers can rely on it

The same clip, every time

Explicit inputs, a validated template, a deterministic render.

  • The demo shop before the change: Add to cart is a faint grey link under the product copy
    Beforebefore.mp4sha256 54927de00343…9399
    The demo shop after the change: the cart drawer is open beside the product
    Afterafter.mp4sha256 9e35a077e93b…3328

    Real captures

    Both runs are recordings of the code under review. LeClap composes them; it never generates a frame.

  • Pane description 592 px2 of 2 lines

    1. Add to cart is small grey text under the product copy.482 px
    2. A click only bumps a quiet Cart (1) in the header.434 px

    A longer draft, refusedOverflow: before desc: 3 lines > 2 allowed

    Checked before it renders

    Every string is measured against its box and the resolved template is validated: copy that would overflow stops the build.

  • Digest in the manifest
    e72009281ca3eb1244695f864c9f108ee8e5a9ee13ca841d137327308e5fe3f0
    sha256 of leclap-evidence.mp4
    e72009281ca3eb1244695f864c9f108ee8e5a9ee13ca841d137327308e5fe3f0

    Same digest

    Same inputs, same video

    The render writes a digest manifest, and leclap verify proves a file is still that render, per platform.

  • Model tokens0

    Frames rendered369 / 369

    FFmpeg runs the JSON template. No model is called.

    Zero tokens per render

    The agent writes the template once. Rendering it again calls no model: it is FFmpeg running a JSON file.

LeClap renders the clip and returns its path. Attaching it to the pull request stays an explicit step of your workflow.

Put it on your own pull requests

The demo shop, the evidence template and the script that composes the clip are in the repo, ready to run.