AH Git Manager

English | فارسی
AI-assisted, strictly command-based Git workflow manager for VS Code — with a
multi-provider AI engine, a chat-style sidebar, and 31 Git commands
covering status, history, branches, code review, auto-commit, and
evidence-based Git intelligence.
Powered by AH Team — https://ahmdhasanzadeh.com
What it does
- Understands 31 slash commands (
/status, /diff, /ask, …) executed
against your real repository. Unknown input is rejected locally and never
sent anywhere.
- Talks to 10 AI providers (OpenAI, Anthropic Claude, Google Gemini,
OpenRouter, DeepSeek, Mistral, Azure OpenAI, Ollama, LM Studio, or any custom
OpenAI-compatible endpoint), each through its native wire protocol.
- Generates Conventional Commit messages, reviews diffs, explains history,
analyzes branches, drafts PRs — and can stage + commit with your explicit
confirmation (never pushes on its own).
- Answers plain-words questions (
/ask where did we implement authentication?) by gathering targeted Git evidence first, then reasoning
over it — separating FACT from inference.
Installation
Install AH Git Manager from the VS Code Marketplace:
- Open the Extensions view (
Ctrl+Shift+X).
- Search AH Git Manager.
- Click Install.
Or install from the command line:
code --install-extension ahgit.ah-git-manager
Requirements: VS Code 1.105 or newer, Git on PATH, and a workspace folder containing a Git repository.
How to use
- Open the AH Git Manager activity-bar view.
- Click ⚙ Configure AI (or run
AH Git Manager: Configure AI Provider from the command palette), pick a provider, model, and API key. Keys are stored in VS Code SecretStorage. Local providers (Ollama, LM Studio) need no key.
- Type a command in the sidebar box and press Enter (
↑↓ recalls history):
/status working tree + branch overview
/diff AI review of your current changes
/commit-message Conventional Commit suggestions
/branches local + remote branches
/help every command
- Use the sidebar shortcuts:
- 🔑 Keys — manage per-provider API keys.
- ⚡ AI Auto-commit — AI drafts a message, you review and edit it, then confirm to stage + commit. Afterwards you are asked whether to push or sync.
- Prefer plain words? Try
/ask where did we implement authentication?
Full walkthrough: docs/getting-started.md.
Commands at a glance
| Area |
Commands |
| Repository |
/status /files /branches /history /last-commit /remotes /stash /contributors /sync /help |
| Compare & branches |
/branch-diff /branch-analysis /merged /duplicates /repo-health /branch-name |
| AI review & writing |
/diff /review /commit-message /commit-info /explain /changelog /pr /explain-error |
| Git intelligence |
/ask /search /why /when /impact /conflicts /pre-commit |
| Commit flow |
⚡ AI Auto-commit button (draft → review → stage & commit → optional push/sync) |
Complete reference with usage and examples: docs/commands.md.
Safety by design
- Writes (
stage, commit, push, pull --rebase) run only after your
explicit confirmation in the UI. Nothing is pushed automatically.
- No
reset --hard, branch -D, push --force, clean -fd, or automatic
conflict resolution anywhere in the codebase.
- AI context is redacted (
.env, private keys, tokens) and capped; AI output
is informational and never executed as shell.
Details: docs/git-intelligence.md,
SECURITY.md.
Documentation
Development
npm install
npm run lint # type-check
npm test # vitest
npm run compile # extension + webview build
npm run package:vsix # build ah-git-manager-0.1.0.vsix (compiles first via vscode:prepublish)
See CONTRIBUTING.md, docs/architecture.md.
License
MIT — see LICENSE.
ایاچ گیت منیجر
English | فارسی
مدیر گردشکار گیت در ویاسکد، فرمانمحور و تقویتشده با هوش مصنوعی — با
موتور چندارائهدهنده هوش مصنوعی، نوار کناری چتمحور و ۳۱ فرمان گیت
برای وضعیت، تاریخچه، شاخهها، بازبینی کد، کامیت خودکار و تحلیل هوشمند مبتنی
بر شواهد واقعی مخزن.
قدرتگرفته از تیم AH — https://ahmdhasanzadeh.com
چه کاری انجام میدهد
- ۳۱ فرمان اسلش (
/status ،/diff ،/ask و…) را روی مخزن واقعی شما اجرا
میکند. ورودی ناشناس بهصورت محلی رد میشود و به هیچجا ارسال نمیگردد.
- با ۱۰ ارائهدهنده هوش مصنوعی (OpenAI، Claude، Gemini، OpenRouter،
DeepSeek، Mistral، Azure OpenAI، Ollama، LM Studio یا هر درگاه سفارشی سازگار)
و هرکدام با پروتکل اصلی خودشان صحبت میکند.
- پیام کامیت استاندارد میسازد، دیف را بازبینی میکند، تاریخچه را توضیح
میدهد، شاخهها را تحلیل و پولریکوئست پیشنویس میکند — و با تأیید صریح
شما استیج و کامیت انجام میدهد (هرگز خودکار پوش نمیکند).
- به سؤالهای عادی (
/ask احراز هویت کجا پیاده شده؟) با جمعآوری اولِ شواهد
هدفمند گیت پاسخ میدهد و «واقعیت» را از «استنتاج» جدا میکند.
نصب
افزونه AH Git Manager را از
مارکتپلیس ویاسکد
نصب کنید:
۱. نمای افزونهها (Ctrl+Shift+X) را باز کنید.
۲. عبارت AH Git Manager را جستوجو کنید.
۳. روی Install کلیک کنید.
یا از خط فرمان:
code --install-extension ahgit.ah-git-manager
پیشنیازها: ویاسکد 1.105 یا جدیدتر، نصب بودن Git و باز بودن یک پوشه دارای مخزن گیت.
نحوه استفاده
۱. نمای AH Git Manager را در نوار فعالیت باز کنید.
۲. روی ⚙ Configure AI کلیک کنید (یا از پالت فرمان، AH Git Manager: Configure AI Provider را اجرا کنید)، ارائهدهنده، مدل و کلید را انتخاب کنید. کلیدها در SecretStorage ویاسکد ذخیره میشوند. ارائهدهندههای محلی (Ollama و LM Studio) به کلید نیاز ندارند.
۳. یک فرمان را در کادر نوار کناری تایپ کنید و Enter را بزنید:
/status نمای وضعیت و شاخه
/diff بازبینی هوشمند تغییرات جاری
/commit-message پیشنهاد پیام کامیت استاندارد
/branches شاخههای محلی و ریموت
/help همه فرمانها
۴. از دکمههای میانبر استفاده کنید:
- 🔑 Keys — مدیریت کلید هر ارائهدهنده.
- ⚡ AI Auto-commit — هوش مصنوعی پیام را پیشنویس میکند، شما بازبینی و ویرایش میکنید، سپس تأیید میکنید تا استیج و کامیت شود. بعد از آن برای پوش یا سینک سؤال میشود.
۵. سؤال عادی دارید؟ مثلاً:
/ask احراز هویت کجا پیاده شده؟
راهنمای کامل: docs/getting-started.fa.md.
فرمانها در یک نگاه
| حوزه |
فرمانها |
| مخزن |
/status /files /branches /history /last-commit /remotes /stash /contributors /sync /help |
| مقایسه و شاخهها |
/branch-diff /branch-analysis /merged /duplicates /repo-health /branch-name |
| بازبینی و نگارش با هوش مصنوعی |
/diff /review /commit-message /commit-info /explain /changelog /pr /explain-error |
| هوش گیت |
/ask /search /why /when /impact /conflicts /pre-commit |
| جریان کامیت |
دکمه ⚡ AI Auto-commit (پیشنویس ← بازبینی ← استیج و کامیت ← پوش اختیاری) |
مرجع کامل با مثال: docs/commands.fa.md.
ایمنی در طراحی
- نوشتنها (استیج، کامیت، پوش، پول) فقط با تأیید صریح شما در رابط کاربری
اجرا میشوند. هیچچیز خودکار پوش نمیشود.
- هیچجای کد
reset --hard، branch -D، push --force، clean -fd یا
حل خودکار کانفلیکت وجود ندارد.
- متن ارسالی به هوش مصنوعی پاکسازی (
.env، کلیدها، توکنها) و محدودشده
است؛ خروجی هوش مصنوعی فقط اطلاعاتی است و هرگز اجرا نمیشود.
توسعه
npm install
npm run lint
npm test
npm run compile
npm run package:vsix # ساخت فایل نصبی vsix.
مستندات معماری: docs/architecture.fa.md —
مشارکت: CONTRIBUTING.md.
مجوز
MIT — فایل LICENSE را ببینید.