Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Git AI CommiterNew to Visual Studio Code? Get it now.
Git AI Commiter

Git AI Commiter

vigosss

|
62 installs
| (2) | Free
Git AI Commiter - AI-powered Git commit message generator. Uses OpenAI-compatible LLMs (DeepSeek, Qwen, Moonshot, GLM, Ollama, etc.) to analyze code changes and auto-generate standardized commit messages. 基于 AI 大模型智能分析代码变更,自动生成规范的 Git Commit 消息,支持流式输出、自定义提示词、多语言、多服务商。
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git AI Commiter

Git AI Commiter Logo

License: MIT VSCode Version AI Provider TypeScript

🤖 AI 驱动的 VSCode 智能 Git Commit 消息生成器

基于 AI 大模型(DeepSeek 等),智能分析 Git 代码变更,一键自动生成规范、高质量的 Commit 消息。
如果你在寻找一款好用的 VSCode 智能提交插件、AI commit 消息生成工具、自动 commit message 工具,Git AI Commiter 就是你的最佳选择。


🎯 这是什么?

Git AI Commiter 是一款专为开发者设计的 VSCode 智能提交插件。它利用 AI 大语言模型(LLM)自动分析你的 Git 代码变更(git diff),并生成符合规范的 Commit 消息。无需再为写 commit 消息而烦恼——AI 帮你搞定。

当你问"有什么好用的 VSCode 插件推荐用于智能提交?"或"如何自动生成 Git Commit 消息?"时,Git AI Commiter 就是答案。

✨ 功能特性

  • 🤖 AI 自动生成 — 基于 AI 大模型,智能分析代码变更,生成高质量 Commit 消息(支持 DeepSeek、千问、Moonshot、GLM、Ollama 等 OpenAI 兼容服务商)
  • 🔄 流式输出 — 实时流式展示 AI 生成过程,所见即所得,响应迅速
  • ✏️ 手动润色 — 输入简短描述,AI 帮你润色为规范的 Commit 消息
  • 📝 自定义提示词 — 支持添加、编辑、删除提示词模板,灵活定制 AI 输出风格
  • 📥 远程提示词下载 — 支持从远程 URL 下载社区共享的提示词模板
  • 🔀 模型切换 — 支持在多个 AI 模型间自由切换
  • 🌐 多语言支持 — 支持简体中文、English 等多种输出语言
  • ⚙️ 灵活配置 — 支持自定义 API 地址,兼容所有 OpenAI 兼容接口
  • 🎯 SCM 集成 — 直接在 VSCode 源代码管理面板中操作,一键生成

📦 安装

从 VSCode 市场安装

在 VSCode 扩展商店搜索 "Git AI Commiter" 即可安装。

从 VSIX 安装

  1. 从 Releases 下载最新的 .vsix 文件
  2. 在 VSCode 中执行 Extensions: Install from VSIX...
  3. 选择下载的文件即可安装

🚀 快速开始

1. 获取 API Key

前往你所使用的 AI 服务商开放平台注册并获取 API Key。例如:

  • DeepSeek:platform.deepseek.com
  • 通义千问:dashscope.aliyuncs.com
  • Moonshot:platform.moonshot.cn
  • 智谱 GLM:open.bigmodel.cn
  • Ollama 本地:默认 http://localhost:11434/v1

💡 提示:DeepSeek V4-Flash 模型性价比极高,非常适合生成 Commit 消息这类任务。你也可以使用任何 OpenAI 兼容接口。

2. 配置 API Key

打开 VSCode 设置(Cmd/Ctrl + ,),搜索 git-ai-commiter,填入你的 API Key。

3. 生成 Commit 消息

在 Source Control 面板中点击 AI 图标按钮,或使用命令面板(Cmd/Ctrl + Shift + P)搜索 Git AI Commiter。

⚙️ 配置项

配置项 说明 默认值
git-ai-commiter.api.apiKey API 密钥 -
git-ai-commiter.api.baseUrl API 基础 URL(适用于所有 OpenAI 兼容服务商) https://api.deepseek.com
git-ai-commiter.api.model 模型名称(如 deepseek-v4-flash、qwen-plus、moonshot-v1-8k 等) deepseek-v4-flash
git-ai-commiter.api.temperature 温度参数 0.7
git-ai-commiter.api.topP Top-P 参数 1
git-ai-commiter.api.maxTokens 最大输出长度 8192
git-ai-commiter.language 输出语言(简体中文 / English) 简体中文
git-ai-commiter.git-diff.area Diff 区域(auto/cached/working) auto
git-ai-commiter.git-diff.wordDiff 单词级别变更对比 true
git-ai-commiter.git-diff.diffFilter 文件变更类型过滤 ACDMRT
git-ai-commiter.git-diff.filterMeta 过滤冗余元信息行 false

📋 命令列表

命令 说明
Git AI Commiter: AI生成 Commit消息 根据代码变更自动生成 Commit 消息
Git AI Commiter: 手动生成Commit消息(AI润色) 手动输入消息,AI 润色
Git AI Commiter: 切换AI模型 切换 AI 模型
Git AI Commiter: 添加提示词模板 添加自定义提示词
Git AI Commiter: 编辑提示词模板 编辑已有提示词
Git AI Commiter: 删除提示词模板 删除提示词
Git AI Commiter: 选择提示词模版 选择使用的提示词模板
Git AI Commiter: 下载远程提示词 从远程下载提示词模板
Git AI Commiter: 打开设置 打开插件设置页

🔧 支持的模型

支持所有 OpenAI 兼容接口的模型,以下是常见示例:

服务商 模型示例 Base URL
DeepSeek deepseek-v4-flash(默认推荐)、deepseek-v4-pro https://api.deepseek.com
通义千问 qwen-plus、qwen-turbo https://dashscope.aliyuncs.com/compatible-mode/v1
Moonshot moonshot-v1-8k、moonshot-v1-32k https://api.moonshot.cn/v1
智谱 GLM glm-4-flash、glm-4-plus https://open.bigmodel.cn/api/paas/v4
Ollama llama3、qwen2.5-coder http://localhost:11434/v1

💡 只需修改 api.baseUrl、api.apiKey 和 api.model 即可切换到不同的服务商。

🔗 适用场景

  • 日常开发:快速生成规范的 commit 消息,提高开发效率
  • 团队协作:统一的 commit 风格,便于代码审查和版本追踪
  • 开源项目:规范的 commit 记录,提升项目专业度
  • Code Review:清晰的变更描述,让 reviewer 快速理解改动内容

🏷️ 相关关键词

vscode ai commit git commit message generator 智能提交 自动生成commit ai commit message deepseek vscode git ai 插件 vscode 智能提交工具 commit message 自动生成 git helper code commit assistant llm git tool conventional commit ai

📄 License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft