All posts

Guides2 min read

AI actions on commits and the working tree

Right-click a commit, a range, or the uncommitted row and have your agent write a description, review, or custom prompt.

When you want something written about a change — a short description, a review, release notes, a test plan — you shouldn’t have to copy a diff into a chat. AI actions asks the agent you already configured to write from the commits (or uncommitted work) you have selected.

Set up an agent first in Settings → AI Agents if you haven’t. That’s the same list Draft uses; there is no extra API key.

Run an action

  1. Select a commit, shift/⌘-click a range, or click the uncommitted (WIP) row.
  2. Right-click and choose AI actions…, or press ⌘⇧A (Ctrl+Shift+A on Windows and Linux).
  3. Pick what you want: a short or full description, an implementation comment, release notes, a review, a test plan, or a one-shot custom prompt.
  4. Watch the banner while it runs. Stop ends the agent, not just the banner.
  5. Copy the result, edit it, or post it to the open pull request.

Review all and the working-changes view open the same popup, so there’s one place that answers “write something about this diff.”

Right-clicking the uncommitted row stays on the working tree; right-clicking a commit outside your selection doesn’t drag the WIP in with it.

Shape the prompts

Open Settings → Prompts. That’s one list: disable a built-in to hide it from the menu, drag to reorder, or add your own title and prompt. The commit-message prompt is a pinned row in the same list.

Good to know

The agent can’t wander off while it writes for you: file writes are never auto-approved, and a shell call has to be a read-only git command.

If a range looks short in the file tally, check you selected every commit you meant — the prompt is for the whole range.

Shipped in GitLane v2.1.1.

Installers: Download GitLane.