Skip to content

Get help from Claude in the app

A pull stops halfway, a rebase is in a state you do not recognise, or git prints an error you have never seen. You know the answer is a handful of git commands, but not which ones, and a wrong guess can cost you work.

Claude looks at your repository the way you would: git status, git log, git diff. It explains what is going on in a few sentences. If something has to change, it writes a plan: the exact git commands, in order, each with a short reason. Nothing happens until you press Run.

Right before the first change, the app saves a restore point. If the result is not what you wanted, one button puts your branches and your files back.

This needs your own Anthropic API key. The conversations are paid for on your own Anthropic account. If you want Claude Code to read your repository instead, see Let Claude Code read your repository, which needs no key.

  1. Open Settings (Ctrl+,) and choose the Claude tab.
  2. Paste your key in Anthropic API key and press Save. The app checks the key with Anthropic first, and says Key checked and saved. when it works. You can create a key at console.anthropic.com.
  3. Pick the model under Model. The list is Claude Opus 5.5 (the default), Claude Sonnet 5.5, Claude Haiku 5.5 and Claude Fable 5.2.

The key is stored encrypted for your Windows account, in assistant-secrets.dat in the same folder as the app’s settings.json. It is sent to api.anthropic.com and nowhere else. Delete key removes it; the key stays valid at Anthropic.

Press the sparkles button in the top bar (Ctrl+Shift+A), or use the command Open Claude panel in the command palette. The panel opens on the right.

Without a key, the panel only explains what Claude does and offers a Go to Settings button. Without an open repository, it asks you to open one. With both, you get a text box (Enter sends, Shift+Enter starts a new line) and three starting questions:

  • What is the state of this repository?
  • Why does my merge or rebase not work?
  • Tidy up my local changes.

When an action fails, the error message in the app has a button Let Claude fix this. It opens the panel with a new conversation that already knows the error and what git said, so you do not have to explain it. You find it under errors from sync, the branch menu, the commit panel, the conflict panel, stashes, History and Lost & found. On a merge or rebase that is stuck halfway, the same button says Get help from Claude.

If you have no key yet, the button’s tooltip says Connect an Anthropic API key in Settings first.

Claude’s investigating commands show up in the panel as lines such as git status. Click one to see its output. These commands only read.

Then comes the plan: a short summary, and the steps. Below it you can type a Note for Claude (optional), then choose:

  • Run: Claude runs the steps one at a time and reads each result.
  • Don’t run: nothing changes, and Claude gets your note.

Claude can only run a command that is in the plan you approved. If a step fails or the situation turns out different, Claude has to propose a new plan for what is left.

Some steps carry the label Will ask again, with the reason. For these, a second card Allow this now? appears when Claude gets to them, with Allow and Deny. That happens for:

  • a git push (a force push is called out as such),
  • git clean, which deletes untracked files you cannot get back,
  • git branch -D or -f, which delete or overwrite a branch even if its commits exist nowhere else,
  • deleting a tag, or moving one with -f,
  • git stash drop and git stash clear.

Before Claude changes anything, a line appears: Restore point created at 14:32:05, before Claude changed anything. Press Restore next to it and confirm with Restore to put every local branch, HEAD, the staging area and your working files back as they were. A merge or rebase in progress is aborted. Branches created in the meantime stay.

Two limits. A push is not undone, because the commits are already on the remote. And if you were in the middle of a conflict, git cannot save your working files; the line then adds Without the working tree: git cannot save it in the middle of a conflict.

Below the text box the panel shows N read (M from cache), K written. That is the number of tokens in this conversation: how many Claude read, of which how many came from Anthropic’s cache, and how many it wrote. The app does not turn this into a price. Look at your Anthropic account for that. Stop cancels a running answer, and the plus button at the top starts a new conversation.

These use the same key, and they are single questions, not conversations. Each shows up only when a key is connected.

  • Suggest with Claude in the commit panel reads the staged diff and fills in the summary and description, in the style of your recent commits. It uses Claude Haiku, whatever model you chose. It replaces what you had typed there. A large diff is cut off after 60,000 characters. You can read the exact text first with Show what is sent, or let a model on your own computer write the message instead; see See what is sent to Claude, and keep secrets out.

  • Claude review, next to it, checks the staged changes for bugs, leftover debug code, secrets and files that do not belong in the commit. The result is a list of findings (Error, Warning, Tip) with file and line, and a View button that selects the file. It looks at the staged lines only and can be wrong; the decision is yours.

  • Suggest with Claude in the merge editor proposes a resolution for each conflict, with a short explanation. You check it and save it yourself, and Ctrl+Z in the editor undoes it. See Resolve a merge conflict.

  • Compare with Claude in a merge dossier compares the request of an agent with its diff, Suggest rules… turns your notes about rejected work into rules for CLAUDE.md, Story tells how a file became what it is, and Why are these here? writes a sentence per changed file. See Review an agent’s work, Learn from what agents get wrong and Get to know a repository.

Everything goes to api.anthropic.com with your key (except the commit message when you chose a local model). What Claude reads about the repository goes along. For the commit message, Claude review, the merge editor, Suggest rules…, Story and Why are these here? you can look at the exact text first with Show what is sent, and you can make that mandatory per repository: the other functions then refuse instead of sending; see See what is sent to Claude.

  • in the panel: your question, git status, the error you ran into, and the output of each git command Claude runs, including file contents when it runs git show or git diff,
  • for Suggest with Claude on a commit: the staged diff, the list of staged files, the branch and the subjects of recent commits,
  • for Claude review: the staged diff,
  • for the merge editor: the conflicted file.

In the panel, passwords and tokens are removed from git’s output before they are sent and before they are shown. This covers a password or token inside a URL (https://name:password@host, or a token such as ghp_… used as the user name), Authorization headers, and config lines whose key mentions a password, token, secret or extraheader. They appear as <redacted>. A normal user name such as git in ssh://git@github.com stays.

That removal is a safety net for git output such as git remote -v and git config --list. It does not read your source files. A secret that is written in a file, in a diff, or in a conflicted file goes along as it is. Do not use these buttons on content you are not allowed to send to a third party.

The commands Claude runs are real git commands, listed in the panel as git …. The app sorts them in three classes. Reading commands (status, log, show, diff, blame, rev-list, ls-files, reflog and similar) always run. Changing commands (add, commit, merge, rebase, reset, checkout, switch, restore, cherry-pick, revert, fetch, pull and others) run only when they are in your approved plan. The dangerous ones listed above ask again.

Some things are never allowed: options that start other programs or read files outside the repository, --no-verify, commit -n, rebase -x, and interactive options such as -i or -p, because nobody can answer git’s questions.

The restore point is made with git stash create for your changes, plus a record of every local branch and HEAD. The commits are kept under refs/git-client-mx/restore/, so git does not clean them up. The app keeps the last 20 restore points per repository.

  • The panel says to connect a key. Go to Settings, the Claude tab. If the key is rejected, check that you copied all of it and that the account has credit.
  • A plan expires. A plan or question that nobody answered, or that was open when the conversation ended, is marked Expired. Ask again.
  • A step is refused with Not in the plan. Claude tried a changing command you did not approve. It has to propose a new plan.
  • The result is not what you wanted. Press Restore on the restore point. For the last thing you did in the app, Ctrl+Shift+Z also works. For older work, see Get back what you lost.
  • You pushed and want it back. Restore does not reach the remote. Fix it with a new commit, for example a revert.