
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@sbeeredd04/auto-git
Advanced tools
AI-powered Git automation with intelligent commit decisions using Gemini function calling, smart diff optimization, push control, and enhanced interactive terminal session with persistent command history
AI-powered Git automation with intelligent commit decisions using Gemini function calling, smart diff optimization, push control, and enhanced interactive terminal session
Auto-Git is a cross-platform CLI tool that intelligently analyzes your code changes and automatically generates meaningful commit messages using Google's Gemini AI. Version 3.9.0 introduces revolutionary intelligent commit mode with function calling, smart API optimization, and flexible push control.
Option 1: Use npx (No Installation Required)
npx @sbeeredd04/auto-git setup
Option 2: Global Installation
npm install -g @sbeeredd04/auto-git
export GEMINI_API_KEY="your-api-key-here"
# Get beautiful help interface
auto-git --help
# One-time commit with AI message
auto-git commit
# Simple file watching (periodic mode)
auto-git watch
# Intelligent commit mode with AI decisions
auto-git watch --mode intelligent
# Interactive terminal session
auto-git interactive
npm install -g @sbeeredd04/auto-git
npx @sbeeredd04/auto-git [command]
git clone https://github.com/sbeeredd04/auto-git.git
cd auto-git
npm install
npm link
Traditional time-based commits after file changes:
auto-git watch # Start periodic mode
auto-git watch --no-push # Commit without pushing
AI analyzes changes and decides when to commit:
auto-git watch --mode intelligent # Start intelligent mode
auto-git watch --mode intelligent --no-push # Intelligent mode, no push
Intelligent Mode Features:
auto-git commit (or auto-git c)Generate AI commit message for current changes:
auto-git commit # Commit and push
auto-git commit --no-push # Commit only
auto-git commit --verbose # Detailed logging
auto-git watchWatch files and auto-commit with AI messages:
auto-git watch # Periodic mode
auto-git watch --mode intelligent # Intelligent mode
auto-git watch --no-push # No push mode
auto-git watch --paths src/ docs/ # Custom paths
auto-git interactiveEnhanced terminal session with AI assistance:
auto-git interactive
Interactive Features:
auto-git reset <count>Undo commits with safety checks:
auto-git reset 1 # Reset last commit (mixed)
auto-git reset 2 --soft # Reset 2 commits (soft)
auto-git reset 1 --hard # Reset 1 commit (hard)
auto-git configShow current configuration:
auto-git config # Display all settings
auto-git debugRun system diagnostics:
auto-git debug # Health check and recommendations
auto-git setupInteractive setup guide:
auto-git setup # First-time setup
The enhanced interactive session provides a powerful terminal environment:
auto-git interactive
Features:
export GEMINI_API_KEY="your-api-key"
export AUTO_GIT_COMMIT_MODE="intelligent" # or "periodic"
export AUTO_GIT_NO_PUSH="true" # Disable pushing
export AUTO_GIT_MAX_CALLS_PER_MINUTE="15" # Rate limit
export AUTO_GIT_BUFFER_TIME_SECONDS="30" # Cancellation buffer
export AUTO_GIT_DEBOUNCE_MS="30000" # File change delay
~/.auto-gitrc.json){
"apiKey": "your-gemini-api-key",
"commitMode": "intelligent",
"noPush": false,
"debounceMs": 30000,
"rateLimiting": {
"maxCallsPerMinute": 15,
"bufferTimeSeconds": 30
},
"watchPaths": ["src/**", "docs/**"],
"watchOptions": {
"ignored": ["node_modules/**", "*.log", "dist/**"]
}
}
# Commit modes
auto-git watch --mode periodic
auto-git watch --mode intelligent
# Push control
auto-git watch --no-push
auto-git commit --no-push
# Verbose output
auto-git watch --verbose
auto-git commit --verbose
# Custom paths
auto-git watch --paths src/ docs/
$ auto-git watch --mode intelligent --no-push
📝 File changed: src/auth.js
📝 New changes detected, analyzing...
🤖 Analyzing changes for commit decision...
✅ AI analysis completed
📊 Change Analysis:
Significance: HIGH
Decision: ✅ COMMIT
Reason: Added complete user authentication feature with validation
⏰ Commit Buffer Period (30 seconds to cancel)
💬 feat(auth): add user login validation
Press 'c' to cancel this commit within 30 seconds...
⏳ Committing in 29 seconds... (Press 'c' to cancel)
✅ Committed successfully (push disabled)
📝 Commit: feat(auth): add user login validation
# Later, same file saved with no actual changes
📝 File changed: src/auth.js
🔄 Diff unchanged since last analysis, skipping Gemini call
The AI will skip commits for:
# Setup and first commit
auto-git setup
auto-git commit
# Start watching with intelligent mode
auto-git watch --mode intelligent
# Local development workflow
auto-git watch --mode intelligent --no-push
# ... make changes ...
# ... commits happen automatically when significant ...
git push origin main # Push when ready
# Custom environment setup
export AUTO_GIT_COMMIT_MODE=intelligent
export AUTO_GIT_NO_PUSH=true
export AUTO_GIT_BUFFER_TIME_SECONDS=45
# Start with custom settings
auto-git watch --verbose
# Interactive session for manual control
auto-git interactive
Auto-Git generates conventional commit messages:
feat(auth): add user login validationfix(api): resolve null pointer exceptiondocs(readme): update installation stepsrefactor(utils): simplify date formattingchore(deps): update package dependencies"GEMINI_API_KEY not found"
# Set your API key
export GEMINI_API_KEY="your-key"
# Or use setup guide
auto-git setup
"Not a git repository"
# Initialize Git repository
git init
git remote add origin <url>
auto-git watch
"Rate limit exceeded"
# The optimization should prevent this, but if it occurs:
# Wait for rate limit to reset (shows countdown)
# Or reduce file change frequency
"Push failed"
# Check remote configuration
git remote -v
# Set upstream branch
git push --set-upstream origin main
# Or use no-push mode
auto-git watch --no-push
# Get system diagnostics
auto-git debug
# Enable verbose logging
auto-git watch --verbose
auto-git commit --verbose
# Check configuration
auto-git config
Too many API calls:
--verbose to see when calls are skippedSlow response:
export AUTO_GIT_DEBOUNCE_MS=60000auto-git/
├── bin/auto-git.js # CLI entrypoint
├── lib/
│ ├── config.js # Configuration management
│ ├── gemini.js # Gemini API with function calling
│ ├── git.js # Git operations
│ ├── watcher.js # File watching with optimization
│ ├── repl.js # Interactive session
│ ├── rateLimiter.js # Rate limiting system
│ └── errorHandler.js # Error recovery
├── utils/
│ └── logger.js # Centralized logging
├── example-config.json # Configuration example
└── package.json
# Install and link
npm install
npm link
# Test commands
auto-git config
auto-git debug
auto-git commit --verbose
# Test intelligent mode
auto-git watch --mode intelligent --verbose
# Test optimization
# Save same file multiple times - should see "skipping Gemini call"
# Test interactive features
auto-git interactive
MIT License - see LICENSE file for details.
Auto-Git v3.9.0 - Making Git automation intelligent, efficient, and user-friendly.
FAQs
AI-powered Git automation with intelligent commit decisions using Gemini function calling, smart diff optimization, push control, and enhanced interactive terminal session with persistent command history
The npm package @sbeeredd04/auto-git receives a total of 8 weekly downloads. As such, @sbeeredd04/auto-git popularity was classified as not popular.
We found that @sbeeredd04/auto-git demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.