AI assistant
Fox Git treats AI as part of your Git workflow: it reads the diffs, commits, branches, stashes, or conflicts you choose, then helps you write commit messages, review changes, and understand code. AI is always read-only — it never writes files, runs commands, or commits, and you confirm every conclusion.
Connect an AI service
Add a service in Settings → AI. There are three ways to connect:
- Local CLI: use the Claude Code or Codex CLI you are already signed in to. Settings lists the CLIs it detects; click Use on a signed-in one. For one that is not signed in, run
claude auth loginorcodex loginin the built-in terminal. - Subscription: sign in with a ChatGPT account to use your subscription.
- API key: OpenAI, Claude, Gemini, DeepSeek, Kimi, Qwen, GLM, Ollama, or any OpenAI-compatible service. Keys are stored in the system keychain.
If no service is configured yet, the first AI action asks whether to use your signed-in Claude Code; nothing is enabled until you confirm.
Generate commit messages
Click the ✨ button at the top right of the commit box. Fox Git reads your staged changes and recent commit subjects and streams a message into the box. Language and format follow the repository’s history by default; under Settings → AI → AI commit messages you can require Conventional Commits, choose whether to write a body, and add team rules.
- The same button stops generation; if existing text was replaced, the toast offers Undo.
- When amending, the message covers everything the amended commit will contain.
- It only fills the commit box and never commits for you.
AI review
The Review tab of the AI panel on the right reviews the staged changes, the whole working tree, or any single commit. Start it from the review button in the Changes header, “AI review this commit” in a commit’s context menu, or the command palette.
- An overall risk and summary come first, then findings appear one by one, ranked by severity;
- Click
file:lineto jump to the diff, where the line is marked with a color bar; - Each finding can be copied as Markdown, dismissed, or restored;
- Results are local drafts and are never published anywhere.
Pre-commit check
With the shield button in the commit box turned on (the default, shown only when AI is configured), clicking Commit reviews the staged changes first:
- With no medium or high findings, the commit goes through;
- With medium or high findings, the commit is paused and you can view the issues or commit anyway; dismissing false positives in the review panel lowers the count live;
- You can skip the check while it runs, and unchanged staged content reuses the previous result.
Amending skips the check.
Ask anywhere
Right-click any Git object to hand it to the AI assistant in one step:
| Where | What you can ask |
|---|---|
| Code selected in a code view or diff | Explain the selection, check this code, history of these lines |
| Files in the file tree or change list | Explain this file, summarize its history, explain this change |
| Commit graph and commit details | Explain this commit |
| Branches | Summarize this branch |
| Stashes | Explain this stash |
| Conflicted files and the conflict workbench | Analyze the conflict |
| Error toasts | Ask AI |
The context sent to the model appears as a tag above your question, and you can expand it to see the full text. After each answer you get two or three follow-up suggestions. Conflict and code suggestions come only as code blocks; you decide whether to use them.
Conversations and models
- Conversations are saved locally per repository, with search, pinning, and deletion;
- Switch the model for the current conversation at the bottom right of the input; commit messages, reviews, and pre-commit checks always use your default.
Data and privacy
Content is sent only when you ask: commit messages send the staged changes, reviews send the diff you picked, and Ask AI sends the object you chose. Requests go straight from your computer to the service you configured, never through Fox Git servers. See Local data and security for more.