AI Auto-Fix

Client asks for a change.
AI makes the edit and opens a PR.

When a client highlights text or clicks an element on your site, Pensl can automatically find the right file in your GitHub repo, write the code change, and open a pull request — with a before/after diff ready for you to review.

What it looks like

From feedback to pull request in seconds

Pensl — AI Auto-Fix
Text changeAI ready

Client said:

“Change ‘Get in touch’ to ‘Book a free call’”

BeforeGet in touch
AfterBook a free call
Filecomponents/Hero.tsx
Pull request opened92% confidence

# pensl/fix-hero-cta-text

- “Get in touch”

+ “Book a free call”

1 file changed, 1 insertion(+), 1 deletion(-)

Waiting for your review in GitHub

This happens automatically — no copy-pasting, no manual edits.

How it works

Five steps. You only have to do the last one.

1

Client leaves feedback on your site

They highlight text and type a replacement, or click an element and describe what should change. The widget records exactly what was clicked and what the client wants. No screenshots to interpret, no vague emails.

Works with: text highlight mode and element click mode only. Pin/comment mode does not support AI fix.

2

Pensl reads the structured feedback

The feedback arrives in your dashboard with the exact text strings (before and after), the CSS selector of the element, and the surrounding HTML. This gives the AI everything it needs — no guesswork.

3

AI searches your GitHub repo for the right file

You connect your GitHub repo once. Pensl indexes the files. When AI fix runs, it searches for the exact string (or element) in your codebase and finds the right file — usually in under ten seconds.

4

AI writes the smallest possible change

For text changes: a precise find-and-replace. For element changes: it updates the matching component. Nothing else is touched. Every fix gets a confidence score from 0 to 100%.

Text changes work most reliably. Element changes work well for most frameworks.

5

A pull request opens with a before/after diff

Pensl creates a branch, commits the change, and opens a PR in GitHub. You can review it there, or see the diff right in the Pensl dashboard. Approve or reject with one click.

Optional: enable auto-merge for high-confidence fixes. Low-confidence fixes always go to review.

Compatibility

AI fix works with two feedback modes

Not every type of feedback can be fixed automatically. Here's what works and what doesn't.

Text highlight

★★★★★ Best results

Client selects text and types the replacement. AI does a precise find-and-replace. Works on any stack — Next.js, Nuxt, Astro, WordPress, plain HTML.

Element click

★★★★☆ Works well

Client clicks a button, image, or div and describes the change. AI reads the HTML structure and modifies the component. Works best with React, Vue, and Svelte.

Pin / comment

Not supported

General comments dropped on the page don't give the AI enough structure to find the right code. These stay in the review queue for you to handle manually.

Confidence score

Every fix gets a score.
You decide what happens.

Pensl scores every AI fix from 0 to 100%. You set the threshold. Above it: a pull request opens automatically. Below it: the fix waits in your review queue. Nothing gets merged without your say-so unless you turn on auto-merge.

  • High confidence → pull request opens in GitHub
  • Low confidence → goes to your review queue first
  • You set the confidence threshold per project
  • Auto-merge mode available for high-trust projects
  • Every PR shows the confidence score in the description

Recent AI fixes

Hero CTA text changePR opened
94%
Button label updatePR opened
81%
Pricing card layoutReview queue
38%

AI provider

Bring your own AI key

Pensl does not mark up AI costs. You connect your own API key and pay the AI provider directly. Works with all major providers.

Anthropic ClaudeOpenAIGroqMistralOpenRouter

One-time setup per organisation. Connect GitHub, add your AI key, and auto-fix is live.

Stop spending an hour making text changes clients could describe in ten seconds.

Start free. Connect GitHub. Let AI handle the next round of client revisions.

Start free — no credit card