Skip to main content

Generate a Commit Message

Use Reasoning to draft a commit message from the current Git repository changes shown by VS Code Source Control.

Generate the draft​

  1. Review the working tree and prepare the files that belong to the commit.
  2. Open Source Control.
  3. Select the AI Cockpit action beside the commit message field, or run AI Cockpit Reasoning: Generate Commit Message.
  4. Wait for the generated text to appear in the Source Control input.
  5. Review and edit the message before committing.

The command requires an active AI Cockpit session and a Git repository. It writes a draft to the input field; it does not create the commit.

Configure the result​

Open Settings → Commit Message to select the output language and configure the available prompt behavior. Repository rules can provide additional conventions when the project requires a particular format.

Confirm that the final message describes the actual change and does not claim tests, fixes, or behavior that the commit does not contain.