autoco
v1.0.0
Published
AI-powered automatic commit message generation using OpenAI GPT-4o or Anthropic Claude
Maintainers
Readme
autoco
AI-powered automatic commit message generation using OpenAI GPT-4o or Anthropic Claude.
Installation
npm install -g autocoUsage
# Generate and commit changes automatically
autoco
# Skip confirmation prompt
autoco --forceConfiguration
Project-specific (recommended)
Create .env in your project root:
# Required: Choose one provider
ACO_OPENAI_API_KEY=your_openai_key
ACO_ANTHROPIC_API_KEY=your_anthropic_key
# Optional settings
ACO_PROVIDER=openai # or "anthropic" (default: openai)
ACO_GITMOJI=true # Use gitmoji in commits (default: false)Global configuration
Create ~/.autocommit:
ACO_OPENAI_API_KEY=your_openai_key
ACO_PROVIDER=openai
ACO_GITMOJI=falseProject .env files override global settings.
Features
- Smart staging: Handles modified, deleted, and renamed files
- Lock file filtering: Commits lock files but excludes from AI analysis
- Multiple commits: Generates logical commit groups for complex changes
- Dual AI support: OpenAI GPT-4o or Anthropic Claude Sonnet
- Quality validation: Ensures meaningful commit messages
Development
Setup
git clone <repo>
bun install
bun run buildTesting
bun test # Run all tests
bun test --timeout 30000 # With longer timeout for LLM callsTests include real LLM integration and git scenario validation.
