tmseidel/ai-git-bot
حول
The self-hosted AI workflow automation platform for Git repositories.
الإنتاجية والأتمتةما يمكنك فعله
- PR Review - PR opened or review re-requested - Review comments and findings
- Interactive Q&A - @bot mention in PR comments - Context-aware conversation
- Issue → Code - Issue assigned to a bot with the Coding Agent issue workflow - Pull request
- Issue → Better Issue - Issue assigned to a bot with the Writer Agent issue workflow - Structured issue with acceptance criteria
النمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- +٢
- خلال 15 يومًا
- +٥
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصل
AI-Git-Bot
🌐 Languages: English · 中文 · 한국어 · 日本語
The self-hosted AI workflow automation platform for Git repositories.
- 🔍 Review pull requests
- 🛡️ Check every pull-request change against known vulnerabilities (CVEs)
- 🧪 Generate tests
- ✏️ Improve issues
- 🧭 Triage and route new issues
- 🤖 Turn issues into pull requests
- 🎬 Create and run E2E tests
- 📝 Keep documentation in sync with the code
- 🌍 Keep translations in sync across locale files
- 💬 Answer questions inside code reviews
- 📊 Observe workflows via Prometheus metrics
Why does this project exist?
Every engineering team has a list of things they know should happen:
- Pull requests should be reviewed carefully
- Bugs should get regression tests
- Issues should have acceptance criteria
- Documentation should stay up to date with the code
- Preview environments should be cleaned up
- Small maintenance tickets should eventually get implemented
Nobody disagrees with any of those ideas. The problem is that these tasks are:
- Uncomfortable
- Repetitive
- Difficult to prioritize
- Easy to postpone when deadlines get tight
AI-Git-Bot exists to turn these engineering chores into repeatable workflows that happen automatically inside your Git platform.
- No new development process.
- No migration project.
- No vendor lock-in.
Just better engineering hygiene through automation.
Who is AI-Git-Bot for?
You may not fit neatly into a single category — many teams overlap across these concerns. Here are three illustrative examples:
🏢 Running Gitea and missing modern AI tooling?
Many teams choose Gitea because they want ownership of their source code and infrastructure.
Unfortunately, most AI products focus primarily on GitHub.
AI-Git-Bot brings:
- AI code reviews
- AI-generated tests
- AI issue authoring
- AI coding workflows
- AI documentation upkeep
- Interactive PR discussions
directly into Gitea.
Use OpenAI, Claude, Gemini or local Ollama models without forcing developers to leave their existing workflows.
👉 Think: "Copilot-style workflow automation for Gitea."
🔒 Need AI but cannot send source code to external services?
Many organizations cannot use cloud-only AI products due to compliance, privacy or contractual requirements.
AI-Git-Bot supports:
- Ollama
- llama.cpp
- Self-hosted Git platforms
- Private networks
- Provider-independent architectures
Source code, prompts, credentials and models remain under your control.
👉 Think: "AI workflow automation without handing your repositories to a SaaS vendor."
🚀 Maintaining repositories with too much engineering overhead?
Every repository accumulates engineering chores:
- Reviews
- Tests
- Documentation
- Acceptance criteria
- Follow-up fixes
AI-Git-Bot turns those activities into repeatable workflows triggered by events your team is already producing:
- Pull request opened
- Pull request reopened
- New commits pushed (opt-in per bot)
- Reviewer requested
- Issue assigned
@botmentioned
👉 Think: "The AI teammate that never forgets the boring but important work."
💡 Already using GitHub Copilot?
Great.
Copilot helps developers write code faster. AI-Git-Bot helps teams automate reviews, tests, issues and pull-request workflows.
Many teams use both.
🔌 Mix any AI provider with any Git platform
| AI providers | Git platforms |
|---|---|
| Anthropic (Claude) | Gitea (self-hosted) |
| OpenAI (+ OpenAI-compatible APIs) | GitHub / GitHub Enterprise |
| Google AI / Gemini | GitLab (gitlab.com & self-managed) |
| Ollama (local LLMs) | Bitbucket Cloud |
| llama.cpp (local GGUF models) | Azure DevOps (Services & Server) |
Unlike most AI coding tools, AI-Git-Bot is not tied to a specific Git platform or AI provider.
Fully self-hostable. Your code can stay inside your infrastructure.
See it in action
AI-Git-Bot lives where your developers already work:
- GitHub
- GitHub Enterprise
- Gitea
- GitLab
- Bitbucket Cloud
- Azure DevOps
- Assign it a review.
- Assign it an issue.
- Mention it in a comment.
- The bot responds directly inside your Git platform. No extra dashboard.
No browser extension.
No Slack bot to babysit.
🎥 Watch the PR workflows in action:
Screenshots
Pull Request Reviews
AI-Git-Bot reviews pull requests and leaves actionable inline feedback directly on the diff.
📸 Screenshots: reviews, conversations, and coding agents across platforms
Gitea: 
GitHub: 
GitLab: 
Bitbucket: 
Coding agent (GitHub): 
Interactive Discussions
Mention the bot anywhere in a pull request discussion.
@bot can you explain why this implementation might fail?
The bot answers directly in the thread and keeps conversation context.
📸 Screenshot: Inline comment in Gitea
Gitea: 
E2E Test Generation
Assign a PR to the bot or request it as reviewer, and it can generate a Playwright test suite for the changes, deploy a preview environment, run the tests against that preview, and post the results back to the PR.
📸 Screenshot: E2E test generation as part of a PR
Gitlab: 
Coding Agents
Assign an issue to a bot with the Coding Agent issue workflow and it can create an implementation pull request on your behalf.
📸 Screenshot: Issue implementation agent
Gitlab: 
✨ What can it do?
| Workflow | Trigger | Result |
|---|---|---|
| PR Review | PR opened or review re-requested | Review comments and findings |
| Interactive Q&A | @bot mention in PR comments |
Context-aware conversation |
| Issue → Code | Issue assigned to a bot with the Coding Agent issue workflow | Pull request |
| Issue → Better Issue | Issue assigned to a bot with the Writer Agent issue workflow | Structured issue with acceptance criteria |
| Issue → Right Assignee | Issue opened or assigned to a bot with the Issue Triage issue workflow | Routing reason comment and issue assignment |
| Issue Workflows | Configurable per bot | Pluggable issue-assigned behavior, independent from PR workflows |
| Unit Test Generation | PR opened or command triggered | Generated tests committed to branch |
| Full-Stack QA | PR opened | Playwright suite executed against preview environment |
| README Sync | PR opened or command triggered | Documentation updated to match code changes |
| i18n Coverage | PR opened or command triggered | Missing translations drafted across locale files |
| CVE Impact | PR opened or updated, or @bot cve-impact |
CI scans the PR head commit (Trivy, Grype, osv-scanner); the AI judges which vulnerabilities the change makes reachable or mitigates; optional change request; Security dashboard |
| PR Re-Review | Force-push or review request | Updated analysis |
| Workflow Automation | Git events | Automated engineering chores |
| Prometheus Metrics | Built-in /actuator/prometheus endpoint |
Operational metrics for reviews, findings, AI usage, errors, and tool calls |
| Outgoing Webhooks | Signed event push to external systems | Durable, retried HMAC-signed notifications for workflow runs, findings, and issue assignments |
What makes AI-Git-Bot different?
Many AI development tools focus on helping developers write code.
AI-Git-Bot focuses on helping teams ship software more consistently.
Instead of only answering:
"How do we write code faster?"
AI-Git-Bot tries to answer:
"How do we make sure important engineering work doesn't get skipped?"
Examples include:
- Reviewing every pull request
- Adding regression tests
- Maintaining E2E coverage
- Keeping documentation in sync with the code
- Keeping translations in sync across locale files
- Improving issue quality
- Validating preview deployments
- Automating recurring engineering tasks
Why not just use Copilot?
GitHub Copilot is excellent.
In fact, many teams will use both tools together.
A realistic workflow looks like this:
Developer writes code with Copilot
↓
Pull Request opens
↓
AI-Git-Bot reviews it
↓
AI-Git-Bot generates tests
↓
AI-Git-Bot updates the docs
↓
AI-Git-Bot validates deployment
↓
Findings posted
Copilot helps developers write code faster.
AI-Git-Bot helps teams automate the work surrounding the code.
These goals complement each other.
Current Workflows
🔍 Pull Request Reviews
Automatically review pull requests and provide:
- Summary findings
- Inline comments
- Suggested improvements
- Follow-up discussions
🛡️ CVE Impact
Find out whether a pull request makes your software affected by a known vulnerability (CVE), or fixes one.
On every change of a pull request, the bot:
- Lets your CI scan the head commit (Trivy, Grype, osv-scanner, …) and imports the report
- Has the AI check the changed code against the findings
- Posts one comment with the affected and mitigated findings, with evidence
- Optionally requests changes, and lifts the request once fixed
The Security page shows the figures per branch over time.
🧭 Issue Triage & Routing
Open an issue (or assign it to a bot with the Issue Triage issue workflow) and the bot decides who should own it.
Using an editable routing prompt, the bot:
- Reads the issue
- Chooses exactly one assignee from your configured accounts — a person, a bot, or
none - Posts the routing reason as a comment
- Assigns the issue (or leaves it unassigned for
none)
✏️ Issue Refinement
Assign a bot with the Writer Agent issue workflow to an issue.
The bot transforms rough requirements into structured engineering work items containing:
- Background
- Requirements
- Acceptance criteria
- Implementation notes
🧪 Unit Test Generation
Generate white-box unit tests automatically based on pull request changes.
Tests can be validated using your project's own tooling before being committed.
🎬 Full-Stack QA
The Full-Stack QA workflow can:
- Generate Playwright tests
- Deploy a preview environment
- Execute the suite
- Publish the results back to the pull request
- Clean up resources when the PR is closed
📝 README Sync
Keep project documentation in step with the code a pull request changes.
The workflow detects when a PR makes the README or other Markdown docs
inaccurate or outdated, then updates, adds, or removes the affected
documentation files within a configured scope and posts a short summary.
Markdown-only; every changed file stays inside the documentation patterns
you configure. Runs on PR open or on @bot regenerate-readme <instruction>.
🌍 i18n Coverage
Keep translations in sync across locale files when a pull request changes user-facing strings.
The workflow compares every locale file against a configurable baseline locale
and, when a translation is missing keys the baseline defines (added or changed
strings) or still carries keys the baseline deleted, drafts the missing
translations per locale and removes the stale keys. Supports both
messages_*.properties and i18n/*.json files; every changed file stays inside
the patterns you configure. Runs on PR open or on
@bot regenerate-i18n <instruction>.
🤖 Issue → Pull Request
Assign a bot with the Coding Agent issue workflow to an issue.
The bot:
- Reads the issue
- Clones the repository
- Implements the change
- Runs project validation
- Opens a pull request
Quick Start
Quick testing
For a quick local test, run AI-Git-Bot with a single Docker command using the built-in H2 database and default settings:
docker run -p 8080:8080 tmseidel/ai-git-bot:latest
The image is published as a multi-arch manifest for linux/amd64 and
linux/arm64, so the same command works on x86-64 servers, Apple Silicon,
AWS Graviton and 64-bit Raspberry Pi. See
Architectures for details.
Then:
- Open
http://localhost:8080 - Create your administrator account
- Create an AI Integration
- Create a Git Integration
- Create a Bot
- Configure the webhook
- You're done
Preconfigured start (from a configuration document)
Instead of clicking through the admin UI, an instance can boot from a configuration
document. The generator on gitbot.eu/trial builds that
document in your browser from the AI provider, Git platform and workflows you pick, and
hands you a docker-compose.yml that carries it as APP_CONFIG_JSON — together with the
exact webhook URL and secret to paste into your repository. Nothing you type there leaves
the browser.
The document is a projection of the entity model: one array per configuration table
(adminUsers, aiIntegrations, gitIntegrations, workflowConfigurations, bots, and
the optional systemPrompts, botToolConfigurations, mcpConfigurations,
deploymentTargets, eventHookEndpoints), using the entities' own field names. There is
no separate schema to learn or keep in sync.
- It is applied only into an empty database — no admin user exists yet. On a throw-away instance (in-memory H2) that is every start; on a persistent instance it is the first start of an empty volume and never again, so a restart can never overwrite what you changed in the UI.
- A row the document declares overrides the seeded row of the same name — field by
field: values it omits keep their stored value, and a declared
selectedTools/selectedWorkflowslist replaces the existing selection. Because the import only runs on an empty database, the rows it can meet are the Flyway seeds (Defaultprompt, default tool configuration, seeded workflow configurations); user data is never touched. ThedefaultEntryflag itself is never taken from a document. - The default tool configuration is extended at startup with every built-in tool the
running build ships —
execute-codeexcepted — because the seed can only list the tools that existed when it was written and the default row cannot be edited in the UI. Code execution stays out of it for the same reason it is opt-in everywhere: the row is permanent once written, so a bot getsexecute-codeonly from a tool configuration that selects it. - The document must declare at least one administrator with a password. Without one it is
refused as a whole: nothing is imported and the instance stays unconfigured for
/setup. Exported documents carry no password, so add one before using an export as a document. - Credentials are plaintext in the document and encrypted at rest on import
(
APP_ENCRYPTION_KEY). GET /config/exportreturns the current instance in the same shape — use it to turn a UI-configured instance into a document. The admin UI offers the same download under System settings → General application settings, so it does not depend on the banner.doc/examples/full-configurationis a complete example: every editable property of every entity set, with notes on the values that need explaining.
Set APP_CONFIG_JSON (inline) or APP_CONFIG_FILE (path) to use it; leave both unset and
the instance behaves exactly as before — you create the administrator account, the AI and
Git integrations and the bot in the admin UI. With a document, the admin UI shows a banner
that states which situation applies: rebuilt from the document on every start, initialised
once into an empty database, document present but ignored because the database already
holds data, or document present but not importable (the log names the cause, and /setup
finishes the job).
Production deployment
For a configured production or long-term deployment, we recommend the Docker Compose approach, which gives you full control over configuration:
git clone https://github.com/tmseidel/ai-git-bot.git
cd ai-git-bot
docker compose up --build -d
See Deployment Guide for detailed configuration instructions.
Pick your path
👀 Just evaluating the project?
Start with:
🏢 Running Gitea?
Start with:
🔒 Looking for self-hosted AI?
Start with:
- Deployment Guide
- Ollama Integration Guide (or vLLM with OpenAI-compatible API)
🤖 Ready to automate workflows?
Start with:
🧑💻 Want to contribute?
Start with:
📚 Documentation
The documentation is organized by audience in the Documentation Hub:
| You are a… | Start here |
|---|---|
| 👤 User — a bot is already set up, you just use the Git platform | Using the Bot |
| 🛠️ Administrator — you set up the software, bots, and workflows | Deployment · Admin Guide |
| 🧪 Tester — you want to try out features safely | Testing Guide |
| 💻 Developer — you work with the code | Local Development · Architecture |
Project Maturity
Production-ready
- GitHub
- GitHub Enterprise
- Gitea
🧪 Community feedback welcome-
- GitLab
- Bitbucket Cloud
- Azure DevOps
Experimental Workflows
⚠️ Full-Stack QA / E2E automation
The project ships extensive system tests and sample environments to make validation and troubleshooting easier.
Bug reports are always welcome.
Technical Highlights
- 🔒 AES-256-GCM secret encryption when
APP_ENCRYPTION_KEYis configured - 🤖 Multi-provider AI support
- 🏢 Multi-platform Git support
- 🧠 Local LLM support
- 🔌 MCP integration
- 🧪 System-tested workflows
- 🐳 Docker-first deployment
- 🌍 Self-hostable end-to-end
- ♻️ Automatic retry with backoff when the AI provider reports itself overloaded (HTTP 503) — the affected PR or issue is told when the next attempt starts
Community
- ⭐ >100 GitHub stars
- 🚀 >15 releases
- 🐳 Docker image available
- 🌍 Users across GitHub, Gitea, GitLab, Bitbucket and Azure DevOps
Get started
docker pull tmseidel/ai-git-bot:latest
The bottom line
AI-Git-Bot is not another coding assistant.
It's a self-hosted automation layer for software delivery workflows.
If your team already knows what good engineering practices look like—but struggles to do them consistently—AI-Git-Bot was built for exactly that problem.
Wire one bot.
Let the chores take care of themselves.
🚀 Happy shipping.
License
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…