This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

Commit Message Drafter

Developer Tools · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — try it free, no account needed.
CategoryDeveloper Tools
PlatformAll
Pricing $4.99/mo
Installs0
Free 7-day trial, no card. Or hold 25,000 BOT instead.
Get BotSurf — free
The browser these apps run in. Free on every platform, no account needed to try an app.

About this app

WHAT IT DOES

AI-powered commit message drafter that creates clear, conventional commit messages from code changes and commit context. The script reads code changes, diff, or commit context from the current page—file changes, added/removed lines, PR description, and issue references—and generates a draft commit message. The AI produces a well-structured message following best practices (Conventional Commits format) that summarizes the changes and their purpose. You can customize the message format (conventional/conventional-extended/simple), toggle inclusion of scope, body, and footer, and set the maximum subject length. The user reviews the output before copying or using it.

WHERE IT RUNS

Works on all code change and diff pages (match pattern *://*/*), including GitHub PRs and commit pages, GitLab merge requests, Bitbucket PRs, code review platforms, and any page containing code diffs or commit context.

HOW TO USE

Install the script and navigate to any page showing code changes, a PR, or a diff. The Commit Message Drafter appears in the panel. Configure your preferred message format, toggle inclusion of scope, body, and footer, and set the max subject length using the settings controls. Click "Draft Message" to analyze the current page. The AI extracts code change context and generates a conventional commit message. Review the output in the panel. Click "Copy to Clipboard" to copy the message for use in your commit. Adjust the settings and regenerate if you want a different format or level of detail.

REAL MECHANISM: DOM CONTENT EXTRACTION WITH AI COMMIT MESSAGE DRAFTING AND REVIEW GATE

This script uses a hybrid extraction approach that prioritizes structured content when available. First, it checks for WebMCP (navigator.modelContext), a W3C proposal that exposes structured tools on the page. If available, it calls getContent() to obtain structured commit data. If WebMCP is not present—the common case today—it falls back to DOM scraping using targeted selectors for diff and commit sections (diff-content, file-diff, commit-diff, changes, file-changes, diff-table, code-diff, pr-description, and pull-request-description). It also extracts file header information and code blocks with diff markers (+/-). The extracted text is sent to an AI backend via GM_xmlhttpRequest, which processes it with a system prompt that includes the user's format preference, inclusion preferences, and max length. The AI returns a draft commit message following Conventional Commits format (or the selected format) with a subject line under the specified length. The response is displayed in a monospace container for review before copying. Copy-to-clipboard uses GM_setClipboard. All settings (format, includeScope, includeBody, includeFooter, maxLength) are persisted via GM_setValue. The script enforces a review-before-use pattern: the user must read and approve the AI output before copying it.

THE PANEL

Drag the panel anywhere on screen by clicking and holding the header. It snaps to screen edges when released. Collapse it to a small bubble by clicking the minimize button, and expand it back by clicking the bubble. Resize the panel from any corner. Press Escape to close the configuration panel. Your position and size preferences are saved automatically per site.

PLEASE NOTE

This script requires the free BotGentz browser extension and an active AI subscription for the drafting service. AI-generated commit messages should be reviewed for accuracy before using—the AI may misinterpret code changes or suggest an inappropriate type. The script reads the current page content and sends it to the AI backend for processing; no data is stored or logged. Websites change frequently; if the script stops detecting diff content, check for updates to the extraction selectors.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.