Skip to main content

AI-powered Git copilot — talk to Git in plain English

Project description

♠️ Ace — AI-Powered Git Copilot

PyPI Version Python Version License: MIT

Ace is an intelligent command-line tool that brings AI assistance directly to your Git workflow. Talk to Git in plain English — Ace translates your intents into Git commands, explains what it is doing, and runs them safely. It also features a fully interactive terminal user interface (TUI) dashboard to help manage your repositories with ease.


✨ Features

  • 🧠 Natural Language Git Commands: Translate commands like "undo my last commit but keep changes" or "create a branch login-page" into clean, standard Git actions.
  • 📝 AI-Powered Commits: Analyzes staged diffs and generates Conventional Commit messages automatically.
  • 🔍 Automated Code Review: Rates code quality and points out bugs, security flaws, or styling issues inside staged or unstaged diffs.
  • ⚔️ Merge Conflict Resolution: Interactively walks you through conflict blocks and suggests correct merges.
  • 📊 Rich Repo Stats & Changelogs: Instantly computes repository statistics (commits, additions, deletions, file counts) and generates markdown release notes since the last tag.
  • 🔎 Semantic Commit Search: Search commits by natural language queries (e.g. "fixed the authorization bug") instead of matching literal strings.
  • 🔥 Interactive TUI Dashboard: Run ace dash to launch a beautiful terminal interface showing current status, branch info, commit charts, and interactive menus.
  • 🛡️ Safety First: Classifies actions into safe, moderate, or destructive levels, and requests confirmation before running destructive operations.

🚀 Installation

For Python command-line applications like Ace, it is highly recommended to install using pipx. pipx automatically installs the application in an isolated environment and manages your system PATH so the executable works globally without conflict.

Option A: Install via pipx (Recommended)

  1. Install pipx and configure your system PATH (only needs to be done once):

    pip install pipx
    pipx ensurepath
    

    (Note: If pipx ensurepath modified your path, close your current terminal window and open a new one to apply).

  2. Install Ace:

    pipx install ace-git-copilot
    
  3. Run it directly:

    ace dash
    

Option B: Install via standard pip (Alternative)

You can also install Ace globally using standard pip:

pip install ace-git-copilot

Note: If you run into a command not found error, you can bypass your system PATH and run the tool directly through Python module execution:

python -m ace dash

⚙️ Configuration & Setup

Run the built-in configuration wizard to select your AI model provider:

ace setup

Ace saves your configuration file to ~/.ace/config.toml. It supports:

1. Cloud Models (NVIDIA NIM API)

Uses cloud-hosted high-performance models.

  • To use this, you'll need an NVIDIA developer API key. Get one for free at NVIDIA build.

2. Local Models (Ollama)

For a 100% private, offline, and free experience.

  • Ensure Ollama is installed and running on your system.
  • You can select models like qwen2.5-coder, llama3.1, or mistral. If the selected model is not downloaded yet, Ace will automatically pull it for you during setup.

🛠️ Usage

💬 Natural Language Mode

Run natural language requests directly in quotes:

ace "stage everything and commit with a message about authentication"
ace "undo my last commit but keep the files"
ace "switch to a new branch called design-updates"

📋 Command-Line Toolchain

Ace has dedicated subcommands for specific tasks:

Command Shorthand Description
ace stage [files] ace add Stage specific files or all untracked changes.
ace commit Generate Conventional Commit messages from diffs and commit.
ace review Run code review on staged, unstaged, or branch changes.
ace resolve Step-by-step interactive merge conflict resolver.
ace explain <query> Explain complex Git commands or repository errors.
ace stats Rich visualization of repo statistics, extension breakdowns, and history.
ace changelog Compile release changelogs since the last tag.
ace pr Draft a Markdown pull request title and description.
ace search <query> Semantically search commit history using natural language.
ace ignore <rule> Generate and append standard templates to .gitignore.
ace undo Safely revert the last action after checking repository status.
ace dash Launch the interactive repository management console.
ace config Print out active configuration settings.

🎨 Interactive Terminal Dashboard (TUI)

Launch the repository dashboard by running:

ace dash

The dashboard features:

  • A vibrant start-up logo.
  • Active branch info, tracking status, and repository charts.
  • Interactive shortcuts for one-key commits, reviews, undos, and configuration management.

📄 License

Distributed under the MIT License. See LICENSE for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ace_git_copilot-0.1.3.tar.gz (49.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ace_git_copilot-0.1.3-py3-none-any.whl (56.9 kB view details)

Uploaded Python 3

File details

Details for the file ace_git_copilot-0.1.3.tar.gz.

File metadata

  • Download URL: ace_git_copilot-0.1.3.tar.gz
  • Upload date:
  • Size: 49.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for ace_git_copilot-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4d342977ca97260989a161d1d8f361dd337f4aff8322b64fd81e87c2e6d2e394
MD5 075568981100c118415a216f7a25e13a
BLAKE2b-256 79de357ba209b4a031f837184bc9d0d284ac3831dcbffe2e5c39b8c55fe21764

See more details on using hashes here.

File details

Details for the file ace_git_copilot-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ace_git_copilot-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 43a509aff0083449433357af7d47d207a674737eaf142658822d1ef9e84c7946
MD5 36d475ddd1dcf0df53024eb7bf120699
BLAKE2b-256 10f8b5520b9354ba744465224aab8573a0f9fab06e167f7b47f6aad76d9803e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page