Skip to content

Add git-ai-commit script for AI-powered commit message generation#567

Open
greenc-FNAL wants to merge 1 commit intomainfrom
maintenance/git-ai-commit
Open

Add git-ai-commit script for AI-powered commit message generation#567
greenc-FNAL wants to merge 1 commit intomainfrom
maintenance/git-ai-commit

Conversation

@greenc-FNAL
Copy link
Copy Markdown
Contributor

Introduces a new utility script that analyzes staged changes and generates
detailed, contextual commit messages using language models. The tool supports
multiple backends (kilo/LiteLLM, GitHub Models, Copilot) and automatically
gathers context from repository instructions, tool-specific rules, and recent
commit history.

Key features:

  • Flexible backend selection with automatic token resolution
  • Comprehensive context gathering from AGENTS.md, CONTRIBUTING.md, tool-specific
    rule directories (.kiro/, .amazonq/, .gemini/), and git commit templates
  • Support for --amend, --dry-run, --edit, and interactive confirmation modes
  • Fallback from GitHub Models to Copilot API on auth failures
  • Stdin support for supplemental context and piped workflows
  • Respects user-level instructions at ~/.config/git-ai-commit/instructions.md

The script can be invoked as git-ai-commit or git ai-commit and integrates
seamlessly with existing git workflows.

Introduces a new utility script that analyzes staged changes and generates
detailed, contextual commit messages using language models. The tool supports
multiple backends (kilo/LiteLLM, GitHub Models, Copilot) and automatically
gathers context from repository instructions, tool-specific rules, and recent
commit history.

Key features:
- Flexible backend selection with automatic token resolution
- Comprehensive context gathering from AGENTS.md, CONTRIBUTING.md, tool-specific
  rule directories (.kiro/, .amazonq/, .gemini/), and git commit templates
- Support for --amend, --dry-run, --edit, and interactive confirmation modes
- Fallback from GitHub Models to Copilot API on auth failures
- Stdin support for supplemental context and piped workflows
- Respects user-level instructions at ~/.config/git-ai-commit/instructions.md

The script can be invoked as `git-ai-commit` or `git ai-commit` and integrates
seamlessly with existing git workflows.
@greenc-FNAL greenc-FNAL force-pushed the maintenance/git-ai-commit branch from 7842987 to 6f2cbc0 Compare May 6, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant