AI提交消息生成器 是 AI Skill Hub 本期精选Agent工作流之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
AI提交消息生成器 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
AI提交消息生成器 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:cargo install(推荐) cargo install llm-git # 方式二:从源码编译 git clone https://github.com/can1357/llm-git cd llm-git cargo build --release # 二进制在 ./target/release/llm-git
# 查看帮助 llm-git --help # 基本运行 llm-git [options] <input> # 详细使用说明请查阅文档 # https://github.com/can1357/llm-git
# llm-git 配置说明 # 查看配置选项 llm-git --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export LLM_GIT_CONFIG="/path/to/config.yml"
<p align="center"> <img src="https://raw.githubusercontent.com/can1357/llm-git/main/assets/banner.png" alt="lgit"> </p>
<p align="center"> <strong>LLM-powered git commit message generator</strong> </p>
<p align="center"> <a href="https://github.com/can1357/llm-git/actions"><img src="https://img.shields.io/github/actions/workflow/status/can1357/llm-git/ci.yml?style=flat&colorA=222222&colorB=3FB950" alt="CI"></a> <a href="https://pypi.org/project/lgit-cli/"><img src="https://img.shields.io/pypi/v/lgit-cli?style=flat&colorA=222222&colorB=3FB950" alt="PyPI"></a> <a href="https://github.com/can1357/llm-git/blob/main/LICENSE"><img src="https://img.shields.io/github/license/can1357/llm-git?style=flat&colorA=222222&colorB=58A6FF" alt="License"></a> <a href="https://www.python.org"><img src="https://img.shields.io/badge/Python-3.14%2B-3FB950?style=flat&colorA=222222&logo=python&logoColor=white" alt="Python"></a> </p>
<p align="center"> Generates <a href="https://www.conventionalcommits.org">conventional commits</a> from git diffs using Claude AI or any OpenAI-compatible API.<br> Automatic changelog maintenance, multi-commit composition, and full history rewriting. </p>
---
CHANGELOG.md following Keep a Changelog format with monorepo supportchangelog_enabled = true auto_fast_threshold_lines = 200 # Auto-use fast mode for small diffs; 0 disables map_reduce_enabled = true # Parallel analysis for large commits disable_git_background_features = true # Disables fsmonitor/untrackedCache for lgit subprocesses
uv tool install lgit-cli
```bash
Anthropic Direct:
api_base_url = "https://api.anthropic.com/v1"
api_key = "sk-ant-..."
OpenRouter:
api_base_url = "https://openrouter.ai/api/v1"
api_key = "sk-or-..."
analysis_model = "anthropic/claude-sonnet-4.5"
summary_model = "anthropic/claude-haiku-4-5"
OpenAI:
api_base_url = "https://api.openai.com/v1"
api_key = "sk-..."
analysis_model = "gpt-4o"
summary_model = "gpt-4o-mini"
The client asks all providers for markdown/plain-text responses and parses the same response format across OpenRouter, LiteLLM, Anthropic, and OpenAI endpoints.
export LLM_GIT_API_KEY=your_anthropic_key # Direct Anthropic export LLM_GIT_API_URL=https://openrouter.ai/api/v1 # OpenRouter litellm --port 4000 # Local proxy (default)
Create ~/.config/llm-git/config.toml:
```toml
| Variable | Description | Default |
|---|---|---|
LLM_GIT_API_URL | API endpoint | http://localhost:4000 |
LLM_GIT_API_KEY | API key | none |
LLM_GIT_CONFIG | Config file path | ~/.config/llm-git/config.toml |
LLM_GIT_VERBOSE | Debug output | false |
LLM_GIT_TRACE_FILE | JSONL profiling trace output path | none |
api_base_url = "http://localhost:4000" # Default: LiteLLM proxy api_key = "sk-..." # Or use LLM_GIT_API_KEY env var
LLM-Git 是一个使用 LLM 运算的 Git 提交信息生成器,旨在为开发者提供高效的提交信息管理体验。
LLM-Git 支持以下功能: - 传统提交:生成格式化的提交信息,包括类型、范围和过去式摘要(≤72 个字符) - 自动更改日志:维护 CHANGELOG.md 文件,遵循 Keep a Changelog 格式,支持多仓库 - 组合模式:将大型 staged 变更分解为多个逻辑原子提交 - 重写模式:将整个 Git 历史转换为更改日志
LLM-Git 需要以下环境依赖和系统要求: - Rust nightly 工具链 - Git - API 访问权限(Anthropic、OpenAI、OpenRouter 或本地 LiteLLM 代理)
要安装 LLM-Git,请使用以下命令: cargo install llm-git
使用 LLM-Git 的快速入门如下: ```bash llm-git [选项]... ``` 提供的示例包括 Anthropic 直接、OpenRouter 和 OpenAI。
要配置 LLM-Git,请选择以下选项之一: export LLM_GIT_API_KEY=你的 Anthropic 密钥 export LLM_GIT_API_URL=https://openrouter.ai/api/v1 litellm --port 4000 创建 ~/.config/llm-git/config.toml 文件: ```toml [api] api_base_url = "http://localhost:4000" api_key = "sk-..." [env] LLM_GIT_API_URL = https://openrouter.ai/api/v1 LLM_GIT_API_KEY = 你的 Anthropic 密钥 [debug] verbose = true trace_file = "path/to/trace.json" ```
LLM-Git 的 API 基础 URL 默认为 LiteLLM 代理,API 密钥可以通过环境变量 LLM_GIT_API_KEY 或配置文件中的 api_key 设置。
高效的自动化提交消息生成工具,提高开发效率
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,AI提交消息生成器 在Agent工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | llm-git |
| 原始描述 | 开源AI工作流:AI commit message generator. Conventional commits, compose mode, and history rew。⭐35 · Rust |
| Topics | AI自动化Rust命令行工具 |
| GitHub | https://github.com/can1357/llm-git |
| License | MIT |
| 语言 | Rust |
收录时间:2026-06-04 · 更新时间:2026-06-05 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端