Skip to content

See what is sent to Claude, and keep secrets out

A tool that sends your diff to an AI service asks for trust. On a work laptop with a client’s code you want to know which text leaves the computer, you want to be able to say no for one file, and you want a warning before a password ends up in a commit, because a key in a commit is one too many and removing it after a push is painful.

The app already removes passwords and tokens it recognises from what it sends. This page is about the things around that: seeing what is sent, choosing where the small jobs go, catching secrets before they are in a commit, and reading what agents write down for each other.

In the commit panel, next to Suggest with Claude, there is a button Show what is sent. It builds the same text that the suggestion would send, and shows it first, in a dialog called What is sent to Claude:

  • The instructions to Claude are in a folded part at the top, with the name of the model.
  • Below that the text is split in parts, one per file. Passwords and tokens that the app recognised are already replaced by <redacted>, highlighted, and a part says how many were hidden.
  • Untick a file to strike it: that part is left out. Send to Claude sends exactly what you see, and nothing else. The app builds the text once, shows it, and sends that same text, so there is no second route that could differ.
  • Cancel sends nothing.

The tick box Always show this before sending anything to Claude or a local model from this repository is in that dialog, and makes it mandatory. This is meant for repositories with sensitive code. The setting is kept on this computer, in the settings of the app and not in the repository, and it is stored for the exact folder you opened (compared without regard to capital letters on Windows). The main folder of a repository and an agent worktree that you open as its own tab are different folders, so each has its own setting: tick it again in the tab of the worktree.

What was really sent is also written to the command log, as a line that says Exactly what was sent to Anthropic, after secrets were removed. The log is kept in memory only. It holds the last 1000 commands, git commands and Claude requests together, and the text of one request is cut off after 20,000 bytes, so a very large request is not shown completely there (what was really sent is not cut). It is gone when you close the app.

With the box ticked, every function that sends repository text to Claude either shows this dialog first, or refuses. Nothing goes around it. What you notice depends on the function.

These open the dialog first, with the text split in parts you can strike:

  • Suggest with Claude, the commit message;
  • Claude review of the staged changes;
  • Suggest with Claude for a conflict in the merge editor. The text of the file now goes through the same removal of secrets. If the answer still contains <redacted>, the app refuses it: accepting it would write the placeholder over the real value, and the secret would be gone from your file;
  • Suggest rules…, see Learn from what agents get wrong;
  • Story (see Get to know a repository);
  • Why are these here? in the reading order of a dossier.

These refuse, without a dialog, because they run when you are not looking at that screen. You get a message that this repository is set to show what is sent first, and that the function cannot show it beforehand; clear the box to use it:

  • the Claude review of a branch in the merge queue: the queue skips that review while the box is ticked;
  • the suggested merge message: the template is used instead;
  • Compare with Claude in the dossier, the check of a request against its diff.

These refuse, also without a preview, because Claude reads the repository itself while it works: the conversation in the Claude panel and the questions to the history (Ask). Claude chooses its own git commands, step by step, so what it will see does not exist yet beforehand and there is nothing to show. If you want a conversation, you have to clear the box. They write no line in the command log either.

For Claude review and Compare with Claude, only the diff per file is sent, without the summary of changed files, so a file that you struck is not mentioned by name either.

You cannot strike single lines yet, only whole files. Removing recognised secrets is a safety net: a secret that the patterns do not know goes along. The preview is how you can check that. Without the box, the same functions send their text straight away, as described under What is sent to Anthropic.

A model on your own computer for the small jobs

Section titled “A model on your own computer for the small jobs”

Writing a commit message is small work, and for some people the diff should not leave the computer for it. Under Settings, Claude, the section Small things lets you choose who writes the commit messages: Claude (the default) or A local model.

For a local model you fill in:

  • Endpoint: the address of a server on your computer, http://127.0.0.1:11434 by default (the address of Ollama).
  • Model name: for example qwen2.5-coder. It must be filled in before you can save.

The server has to speak the OpenAI format (POST /v1/chat/completions), as Ollama, the llama.cpp server and LM Studio do. The app does not follow redirects, does not use a proxy, and never sends your Claude key to it. A line under the fields says where the text goes: this computer or another machine.

After that, the button in the commit panel says Suggest with local model and a note says which model writes the messages and that the quality can be lower than Claude’s. Every suggestion says who wrote it, for example Suggested by the local model qwen2.5-coder: check it. Show what is sent works the same way, and says it goes to the local model.

  • An address that is not on this computer is a warning. If the endpoint is not localhost or a loopback address, the settings show This address is not on this computer: the staged diff and the commit subjects would go to another machine, and the app cannot tell who runs it. You can only save after ticking I understand, and I trust that address with my code. The tick belongs to exactly that address; change the address and you have to tick again. The preview dialog repeats the warning each time.
  • No fallback. If the local server is not reachable, times out or answers nonsense, you get an error. The app never quietly sends the diff to Claude instead.
  • Only the commit message uses the local model. There is no setting yet for the other small things, and the heavy work (resolving conflicts, review, questions about the history) always goes to Claude. Claude review keeps using Claude, with your key.
  • It is not a guarantee of quality. A small model often writes worse messages than Claude does.

When something staged looks like a secret, a box appears above the commit panel: A possible secret is staged (or N possible secrets are staged). For each finding it shows the file and line, the kind, and the first characters of the value. The value itself is not shown in full. Nothing is blocked: you can still commit.

The scan reads the lines you added in the staged diff. It recognises private-key headers; tokens with a known prefix (GitHub, GitLab, Slack, Anthropic, AWS, Google, Stripe, npm); a password in a URL; Authorization headers; configuration keys that mention a password or token; an assignment such as password = "..." with a value that looks random; and a whole .env file (but not .env.example). Obvious example values (changeme, EXAMPLE) are skipped, and a finding in documentation, tests or an examples folder is marked probably an example.

Per finding you can choose:

Button What it does
Unstage file Takes the file out of the commit; your changes stay in the working folder
Add to .gitignore For a new file: ignores it and takes it out of the commit. Not shown for a file git already tracks
Not a secret Turns the warning off for this line, in this repository. Turn them on again brings them back
Search history Searches all branches, remotes and tags for this value (git log -S)

Search history matters when the value was committed before. If it is found, the box lists the commits and says to treat the value as leaked. It then shows a short checklist, in this order:

  1. Rotate it. Make a new key or token and revoke the old one at the service that issued it. Do this first: a secret that was ever pushed may already have been copied, and removing it from the history does not undo that.
  2. Remove it from the history. This rewrites commits, so every hash after the first change is new. The checklist has a command to copy, for example git filter-repo --invert-paths --path <file> to drop the whole file from every commit, or git filter-repo --replace-text replacements.txt to replace only the value. For that one you write the value in replacements.txt yourself, outside the repository, so the value never appears in the app or in the command. git filter-repo is not installed with git by default; the checklist tells you how to install it. Run it in a fresh clone.
  3. Warn the others. Everyone with a clone still has the old history, and after a force push they need a fresh clone.

The command is only text for you to copy. The app runs nothing.

Changes only looks at what you staged. For an agent branch you want the same check on everything it added:

  • In the merge queue the trial merge is scanned too. A possible secret is shown as a smell on the card and in the dossier, with the file, the line, the kind and the first characters, never the whole value. Like the other smells it blocks nothing. When you send the branch back to the agent with Send to agent, the repair request names only the kind and the place, not the value. A finding that only looks like an example (documentation, tests) gives no smell.
  • In the merge dossier the section Secrets has the button Scan this branch for secrets. It reads the lines the branch added since its base, shows the findings masked, and has Search history with the same checklist as above. It changes nothing.

What it cannot do:

  • There is no wizard that removes the value from the history for you. Rewriting history is a job for a tool such as git filter-repo, outside the app, and every clone would need to be dealt with.
  • Changes only reads the staged diff. A secret in a file you have not staged is not scanned there; for a branch use the scan in the dossier. The scan is not part of a pre-commit hook either.
  • You cannot silence a smell in the queue yet. Not a secret exists only in Changes.
  • It is a set of patterns. It will miss secrets that look ordinary, and it will sometimes flag a harmless line (use Not a secret).
  • The value you search for appears as an argument of git log in the command log, in memory on this computer only.

Agents can leave notes for each other in a shared notebook, so the next agent does not have to find out how to start the test database again. The tools are remember, recall and list_notes; the page about the MCP endpoint explains them. Writing is off until you turn on Write notes, and every note asks for your confirmation.

You are in control of the notebook under Settings, MCP, in the section Agent notes. You see every note with its topic, text, date and the name of the client that wrote it, and you can Edit or Delete it. Notes are kept in a file inside the shared .git folder of the repository (git-client-mx/memory/notes.json). Because that folder is not part of the project files, a note is never in a commit and never pushed; it stays on this computer. All worktrees of the repository share the same notes. Recognised secrets are removed when an agent writes a note.

  • A note is background, not an instruction, and agents are told so. Delete what is outdated or wrong: an agent will otherwise believe it.
  • There are at most 100 notes; a topic has at most 80 characters and a note at most 4000. A note with the same topic replaces the older one.
  • You cannot add a note yourself in the app yet, and notes are not given to new agents automatically or linked to CLAUDE.md.
  • Show what is sent is grey. There is nothing staged, or the suggestion is not possible at the moment. The button follows the Suggest button.
  • “Always show this” is on and Suggest still seems to do nothing. It opens the dialog; press Send to Claude in it.
  • A message says the repository is set to show what is sent first, and the function cannot show it. That is a function from the list above that refuses (the conversation, Ask, the branch review and merge message in the queue, Compare with Claude). Clear the box in the dialog of Show what is sent to use it, or leave it off-limits on purpose.
  • The local model gives an error. Check that the server runs, that the address and the model name are right, and that it speaks the OpenAI format. The app does not switch to Claude by itself.
  • A warning for an example key keeps coming back. Press Not a secret. It is remembered per line and per repository.

Claude in the app lists everything Claude can do and what each feature sends. Logins and privacy lists every request the app makes.