
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.
AI-powered git commit message generator with GPT-5-nano support
Alcapush is a fork of opencommit with enhanced features, better UX, and support for the latest AI models including GPT-5-nano.
GitHub Repository: https://github.com/dablon/alcapush
This fork introduces several enhancements and new capabilities:
gpt-4o-mini if GPT-5-nano is unavailableacp config testdescribe and test subcommandsAlcapush now features a custom Pac-Man loading animation during commit generation and push operations!
(Note: Animation requires a terminal with basic Unicode support)
npm install -g alcapush
acp config set ACP_API_KEY=sk-your-openai-api-key
Make some changes to your code
Generate and commit:
acp
That's it! Alcapush will:
# Generate commit for staged changes
acp
# Auto-commit without confirmation
acp --yes
# Add additional context
acp -c "Fixing bug reported in issue #123"
# Use full GitMoji specification
acp --fgm
# Set configuration
acp config set KEY=VALUE
# Get configuration value
acp config get KEY
# List all configuration
acp config list
# Describe configuration options
acp config describe
acp config describe ACP_MODEL
# Test your configuration
acp config test
# Install git hooks (prepare-commit-msg and commit-msg)
acp hook install
# Check hook status
acp hook status
# Uninstall git hooks
acp hook uninstall
Installed Hooks:
git commit without a messageAfter installing hooks, you can simply run git commit and Alcapush will automatically generate and validate your commit messages!
# View commit history (last 50 commits)
acp history
# View commit history with custom limit
acp history 20
# Clear commit history
acp history clear
# Add a commit message to favorites
acp favorite add "feat: add user authentication"
# Remove a commit message from favorites
acp favorite remove "feat: add user authentication"
# List all favorites (sorted by usage)
acp favorite list
Features:
Split large changes into multiple logical commits with AI-powered grouping:
# Split changes into 3 commits
acp batch 3
# Include unstaged changes
acp batch 3 --all
# Auto-commit without confirmation
acp batch 3 --yes
# Add context to commit messages
acp batch 3 --context "Refactoring authentication system"
How it works:
Example:
$ acp batch 2
β Found 5 file(s) with changes
β Grouped into 2 commit(s)
π¦ Will create 2 commit(s):
1. User authentication feature (3 files)
Adds login and registration functionality with related utilities
Files: src/auth.ts, src/login.ts, test/auth.test.ts
2. Update dependencies (2 files)
Updates package.json with new dependency versions
Files: package.json, package-lock.json
β Generated 2 commit message(s)
Features:
Alcapush automatically detects your current branch and includes branch context in commit message generation:
# On feature/user-auth branch
git checkout -b feature/user-auth
acp
# AI will suggest: feat(user-auth): ... based on branch name
# On fix/login-bug branch
git checkout -b fix/login-bug
acp
# AI will suggest: fix(login-bug): ... based on branch name
# On hotfix/security-patch branch
git checkout -b hotfix/security-patch
acp
# AI will suggest: fix(security-patch): ... based on branch name
Supported Branch Patterns:
feature/ or feat/ β Suggests feat typefix/ or bugfix/ β Suggests fix typehotfix/ β Suggests fix typechore/ β Suggests chore typedocs/ β Suggests docs typerefactor/ β Suggests refactor typetest/ β Suggests test typeperf/ β Suggests perf typerelease/ β Suggests chore typeScope Extraction:
feature/user-auth β scope: user-auth)feature/JIRA-123-auth β scope: auth)feature/api/user-auth β scope: api/user-auth)| Option | Description | Default |
|---|---|---|
ACP_API_KEY | API key for the AI provider | - |
ACP_AI_PROVIDER | AI provider (openai, anthropic, gemini, ollama) | openai |
ACP_MODEL | Model name | gpt-5-nano (fallback: gpt-4o-mini) |
ACP_TOKENS_MAX_INPUT | Max input tokens | 4096 |
ACP_TOKENS_MAX_OUTPUT | Max output tokens | 500 |
ACP_EMOJI | Enable GitMoji emojis | false |
ACP_LANGUAGE | Language for commit messages | en |
ACP_DESCRIPTION | Add detailed description | false |
ACP_ONE_LINE_COMMIT | Generate one-line commits | false |
ACP_API_URL | Custom API URL | - |
acp config set ACP_AI_PROVIDER=openai
acp config set ACP_API_KEY=sk-...
acp config set ACP_MODEL=gpt-5-nano # or gpt-4o, gpt-4o-mini
acp config set ACP_AI_PROVIDER=anthropic
acp config set ACP_API_KEY=sk-ant-...
acp config set ACP_MODEL=claude-3-5-sonnet-20241022
acp config set ACP_AI_PROVIDER=gemini
acp config set ACP_API_KEY=your-gemini-key
acp config set ACP_MODEL=gemini-pro
# Start Ollama first
ollama run mistral
# Configure Alcapush
acp config set ACP_AI_PROVIDER=ollama
acp config set ACP_MODEL=mistral
acp config set ACP_EMOJI=true
acp
# Output: β¨ feat: add user authentication
acp config set ACP_DESCRIPTION=true
acp
# Output:
# feat: add user authentication
#
# Implemented JWT-based authentication system with login and
# registration endpoints. Added middleware for protected routes.
acp config set ACP_LANGUAGE=es
acp
# Output: feat: agregar autenticaciΓ³n de usuario
acp config set ACP_ONE_LINE_COMMIT=true
acp
# Output: feat: add user authentication
# View your commit history
$ acp history
π Commit History (last 10 commits):
1. feat(auth): add user authentication [feature/user-auth] β
12/15/2024, 2:30:45 PM
2. fix(login): resolve session timeout bug [fix/login-bug]
12/15/2024, 1:15:20 PM
3. docs: update API documentation [main]
12/14/2024, 4:22:10 PM
# Add frequently used patterns
$ acp favorite add "feat: add new feature"
β
Added to favorites: feat: add new feature
$ acp favorite add "fix: resolve bug"
β
Added to favorites: fix: resolve bug
# List favorites
$ acp favorite list
β Favorites (2):
1. feat: add new feature (used 5x)
Added: 12/10/2024
2. fix: resolve bug (used 3x)
Added: 12/08/2024
# Create a feature branch
$ git checkout -b feature/payment-integration
# Make changes and commit
$ acp
# AI will automatically:
# - Detect branch type: feature
# - Extract scope: payment-integration
# - Suggest commit type: feat
# - Include branch context in prompt
# Generated message might be:
# feat(payment-integration): add Stripe payment integration
Alcapush provides real-time cost estimation before generating commit messages, helping you understand the API usage and costs upfront.
Before generating a commit message, Alcapush displays:
$ acp
π Usage Estimate:
Input tokens: 1,234
Output tokens (estimated): 500
Estimated cost: $0.000062
Proceed with generating commit message? βΊ (Y/n)
Alcapush includes up-to-date pricing for popular models:
| Model | Input (per 1M tokens) | Output (per 1M tokens) |
|---|---|---|
| GPT-5-nano | $0.05 | $0.40 |
| GPT-4o-mini | $0.15 | $0.60 |
| GPT-4o | $2.50 | $10.00 |
| Claude 3.5 Sonnet | $3.00 | $15.00 |
| Gemini Pro | $0.50 | $1.50 |
| Ollama (local) | Free | Free |
Pricing is automatically calculated based on current API rates (verified November 2024)
gpt-5-nano or gpt-4o-mini for the lowest costsACP_TOKENS_MAX_OUTPUT to limit output token usageACP_TOKENS_MAX_INPUT to control input size for large diffs
Real-time cost estimation before generating commit messages
Native GPT-5-nano integration with optimized API handling
Test your AI provider configuration with acp config test
Beautiful CLI with colorful progress indicators and better feedback
Automatic fallback to gpt-4o-mini when GPT-5-nano is unavailable
Descriptive error messages with troubleshooting tips
Enhanced configuration commands with describe and test subcommands
| Feature | Alcapush | OpenCommit |
|---|---|---|
| GPT-5-nano Support | β | β |
| Auto-fallback Mechanism | β | β |
| Cost Estimation | β | β |
| Config Test Command | β | β |
| Custom API URL Support | β | β |
| Enhanced Error Messages | β | β |
| Colorful CLI | β | β |
| Progress Indicators | β | β |
| Multiple AI Providers | β | β |
| GitMoji Support | β | β |
| Config Management | β | β |
| Context Flag | β | β |
| Commit History | β | β |
| Favorites | β | β |
| Branch-Aware Commits | β | β |
| Batch Commit Generation | β | β |
# Clone the repository
git clone https://github.com/dablon/alcapush.git
cd alcapush
# Install dependencies
npm install
# Build
npm run build
# Link locally
npm link
# Test
acp
MIT Β© Nicolas Alcaraz
Contributions are welcome! Please feel free to submit a Pull Request.
Alcapush is a fork of opencommit by di-sukharev.
This project extends opencommit with additional features and improvements while maintaining compatibility with the original tool's core functionality. We're grateful to the opencommit team for creating such a great foundation.
If you have any questions or issues, please open an issue on GitHub.
FAQs
AI-powered git commit message generator with GPT-5-nano support π
We found that alcapush 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.