gitgrok lives in your terminal. Generate commit messages, review code, fix bugs from error output, and chat with AI about your entire repo. No browser. No IDE plugin. Just the command line.
Reads your staged diff and recent commit history to generate a perfect Conventional Commits message. One command โ done.
Instant AI code review covering bugs, security issues, performance, and style โ on your staged or unstaged changes.
Plain-English explanation of any diff or commit. Great for understanding unfamiliar code or onboarding teammates.
Paste an error or pipe stderr directly. AI reads your files, generates a patch, previews it with syntax highlighting, then asks before writing.
Interactive REPL with your full git context pre-loaded. Slash commands for diff, status, adding files, and more.
Manage providers, models, and API keys in ~/.gitgrok.toml. Per-command overrides with --provider and --model.
Switch providers in one command. No lock-in, ever.
Default provider. Fast, capable, and deeply integrated with the xAI ecosystem.
Industry standard. Great for code generation and nuanced technical reviews.
Excellent at following instructions precisely. Top choice for code review.
Run fully local. No API key. No data leaves your machine. 100% private.
aider is great. gitgrok is lighter, faster, and opinionated about simplicity.
| Feature | gitgrok | aider |
|---|---|---|
| AI code editing | โ | โ |
| Multi-provider (Grok / GPT / Claude / Ollama) | โ | โ |
| Interactive chat | โ | โ |
| Auto-fix from error / stderr | โ | ~ |
| Conventional Commits generation | โ | ~ |
| Full repo mapping | โ | โ |
| Auto test / lint runner | โ | โ |
| Token usage | ๐ข Low | ๐ด High |
| Setup complexity | ๐ข Simple | ๐ด Complex |
gitgrok โ lighter, faster, fewer tokens. Perfect for daily Git workflow.
$ git clone https://github.com/0ailab/GitGrok
$ cd gitgrok
$ python3 -m venv .venv && source .venv/bin/activate
$ pip install -e .
# Pick one (or more)
$ export XAI_API_KEY="your-xai-key"
$ export OPENAI_API_KEY="sk-..."
$ export ANTHROPIC_API_KEY="sk-ant-..."
# Or use config file
$ gitgrok config set xai.api_key YOUR_KEY
$ git add .
$ gitgrok commit # AI commit message
$ gitgrok review # code review
$ gitgrok fix "error" # auto-fix bugs
$ gitgrok chat # interactive session