All docs

Draft commit messages with AI

Connect an AI provider, request a draft from staged changes, and review what it says before committing.

Configure a provider

Open Settings → AI and select a supported provider. Enter the endpoint, model, and credentials the selected form requests. Use a provider allowed for your project. Its pricing and data handling apply.

Draft from the changes you intend to commit

  1. Stage the changes for this commit and review the staged diff.
  2. Request a draft in the commit composer. This sends staged change context to the configured provider. See what the request contains.
  3. Read the editable summary and description. If the draft says “Add search” but your patch fixes only the empty state, revise it to “Fix empty search results.”
  4. Confirm the intended files and commit when the message matches the patch.

You can enter a message directly whenever you prefer.

Commit composer with Describe with AI beside an empty commit message
Open the draft action from the commit composer. Open full-size image
Commit composer with a generated summary in the editable message field
Edit the generated text as needed and commit when it describes the staged changes. Open full-size image

Review, stage, and commit changes · See supported AI providers

More docs