---
title: "GitAgent — AI Commit Messages and PRs, Gated by You"
description: "From a dirty working tree to an open pull request, one approved step at a time. AI-drafted commits and PRs; nothing reaches git without your OK."
url: "https://mayorana.ch/en/apps/gitagent"
language: "en"
version: "0.1.203"
released: "2026-11-29"
---

# GitAgent: Agentic graph for commit and deploy workflows

> From a dirty working tree to an open pull request, one approved step at a time. AI-drafted commits and PRs; nothing reaches git without your OK.

- Platforms: macOS (Apple Silicon), Linux x86_64, Windows
- Built with: Rust · Dioxus · ollama / Mistral · git · gh
- Latest version: 0.1.203 (2026-11-29), release notes: https://mayorana.ch/en/apps/gitagent/releases
- Source: https://github.com/Bennekrouf/gitagent
- Licence: PolyForm Noncommercial 1.0.0 (https://polyformproject.org/licenses/noncommercial/1.0.0); commercial use needs a plan: https://mayorana.ch/en/pricing

## Overview

Most AI git tooling has the same problem: it is either a text generator that hands you a commit message to paste, or an agent that runs commands on your repository and tells you afterwards. Neither is what you want on a repo you care about.

GitAgent models the work as a graph of steps — scan the tree, draft the commit message, commit, push, draft the PR description, open the PR — and stops at each one. You see what it proposes and what command it will run before it runs.

Drafting can run entirely on a local ollama model, which means the diff of a private repository never leaves your machine. Mistral is there if you would rather use a hosted model.

## Drive it from Claude, in plain language

One sentence to Claude Code: run the PR review and merge for #75 on gateway-api0, using the Europe model. Claude calls GitAgent through its MCP server, GitAgent runs its Review → Merge flow — the same graph of steps you watch light up in its window — and Claude comes back with what the reviews found and the exact command the merge will run.

The language model understands what you ask and writes the reviews; it never decides which git commands run. Every step is either code or a declared model call, in a flow defined ahead of time, so there is nothing for the model to make up: GitAgent runs the steps the flow names, or it stops. Here it stops at the merge, waiting for your approval in Claude, where the run was started.

[Claude Code driving GitAgent through its MCP server: a pull request reviewed by two models, then held at the merge for approval](https://mayorana.ch/video/apps/gitagent-mcp.mp4)

## What it does

### Approval at every step

Nothing touches git history or the remote without an explicit go-ahead on that specific step. The agent proposes; you approve.

### Commit messages from the actual diff

Scans the working tree and drafts a message describing what changed, rather than restating the branch name.

### PR descriptions

Drafts the pull request body from the commits on the branch, then opens the PR through the gh CLI.

### Local model support

Point it at an ollama model running on your own machine and the contents of a private repository never leave it. Mistral is available as a hosted alternative.

### The whole path in one place

Scan, commit, push and open the PR without switching between a terminal, a browser and a chat window.

## Requirements

- macOS on Apple Silicon, Windows, or Linux x86_64
- git, and the GitHub CLI (gh) authenticated, for opening pull requests
- Either ollama running locally, or a Mistral API key

## Download

- [macOS (Apple Silicon)](https://mayorana.ch/downloads/gitagent/latest/gitagent-macos-arm64.dmg)
- [Linux x86_64](https://mayorana.ch/downloads/gitagent/latest/gitagent-linux-x86_64.tar.gz)
- [Windows](https://mayorana.ch/downloads/gitagent/latest/gitagent-setup.exe)

### Or install from a terminal

macOS and Linux:

```sh
curl -fsSL https://mayorana.ch/install/gitagent.sh | sh
```

Windows (PowerShell):

```powershell
irm https://mayorana.ch/install/gitagent.ps1 | iex
```

## Use it from Claude Code or Codex

Claude Code:

macOS:

```
claude mcp add gitagent --scope user -- "/Applications/GitAgent.app/Contents/MacOS/gitagent" mcp
```

Windows:

```
claude mcp add gitagent --scope user -- "%LOCALAPPDATA%\Programs\GitAgent\gitagent.exe" mcp
```

Linux:

```
claude mcp add gitagent --scope user -- "$HOME/gitagent-linux-x86_64/gitagent" mcp
```

Codex:

macOS:

```
codex mcp add gitagent -- "/Applications/GitAgent.app/Contents/MacOS/gitagent" mcp
```

Windows:

```
codex mcp add gitagent -- "%LOCALAPPDATA%\Programs\GitAgent\gitagent.exe" mcp
```

Linux:

```
codex mcp add gitagent -- "$HOME/gitagent-linux-x86_64/gitagent" mcp
```

## What it costs your agent

Connecting GitAgent to Claude Code, Claude Desktop or Codex costs tokens of the agent's own model, not AI credits of GitAgent: the server's instructions are in every conversation, the tool definitions once they are loaded, and every reply stays in the conversation and is read again on each later turn, mostly from the prompt cache at a tenth of the price.

| What the agent reads | Tokens |
| --- | ---: |
| Server instructions, in every conversation | ≈ 680 |
| Every tool definition (Claude Code loads one when it is first used; Claude Desktop, all of them in every chat) | ≈ 2850 |
| Reply to `list_repos` | ≈ 440 |
| Reply to `repo_insight` | ≈ 290 |
| Reply to `list_flows` | ≈ 720 |
| Reply to `run_flow` | ≈ 990 |

Measured on GitAgent 0.1.140, 2026-10-31, on a typical project. Replies grow with what there is to report: a longer list, a bigger diff. Counts are estimates to about 15%.

## Questions

### Can it push or rewrite history on its own?

No. Every step that touches git history or the remote is gated behind an explicit approval for that step.

### Does my code get sent to a third party?

Only if you choose a hosted model. With a local ollama model, drafting happens on your machine and the diff never leaves it.

### Does it work with GitLab or Bitbucket?

Pull request creation goes through the GitHub CLI, so PR opening is GitHub-only today. The commit and push steps work on any git remote.

## Read more

- [AI Commit Messages Without Handing Over Your Git History](https://mayorana.ch/en/blog/ai-commit-messages-without-giving-up-control.md)
