Skip to content

Get to know a repository, and who wrote what

Two kinds of questions come up once agents write part of your code. The first is about trust: how much of this folder did an agent write, and how much of that is still standing? The second is about orientation, for you or for a new colleague: which files are risky, how did this file become what it is, and where do I even start in an unknown repository?

Git can answer all of this, but not without reading hundreds of commits. These tools do the counting and leave the judging to you. Everything here is read-only.

A commit made in an agent worktree gets a small sparkles icon in History. Hover over it: Written by Claude Code, with the model when it is known. The Details tab of the commit has an Origin block that says the commit was made in an agent worktree, and when.

The origin is a git note on your computer (in its own reference, refs/notes/agents-origin, separate from the questions agents recorded). It does not change the commit or its hash and is never pushed. The app adds it when it lists the worktrees, so open the Worktrees view for it to catch up. That includes commits that Claude Code made by itself.

The Agents button in the toolbar of History opens Agent share: a table of the folders in your repository, with:

  • Agent share: the part of the lines in that folder today that blame attributes to an agent;
  • Written by agents: the number of lines agents ever added there;
  • Still standing: how many of those lines still stand, and the percentage. The rest was rewritten by you or by a later commit.

Click a folder to go one level deeper, Up to come back. The line above the table gives the total, and says when only part of the repository was counted.

Below the table is a tick box, Also keep the request to the agent in the origin of new commits. It is off: a request can be sensitive. When it is on, the request goes through the secret filter first, and shows in the origin block. It is never pushed.

What it does not know: a commit that you made by hand in an agent worktree counts as the agent’s; agents other than Claude Code are not recognised; and commits that were merged before the cockpit saw them have no origin. The share is per folder, not per line in Blame.

A file that changes often, by many different people, and in many fixes, is where bugs tend to be. In History, the tab Hotspots (next to Commits) lists those files, in the same look as the file list of Browse files. The list is made from the commits of the last 3, 6, 12 (default), 24 or 60 months, chosen under Period. Its columns are:

Column Meaning
Name The file name with its folder after it in grey (hover for the whole path), as it is now. Files that no longer exist are not listed
Risk hint Low, medium or high, from fixed rules about the other columns. Hover to see which rules gave points
Commits How many commits changed it
Authors How many different authors (by e-mail address)
Fixes, Reverts Commits with fix or revert in the title
Size The size now
Last change The date of the latest commit

Click a column to sort. Click a row to select it; double-click it, or press Enter, to open the history of that file. Every number is also a button that opens that history. Refresh counts again and Cancel stops a count.

The risk hint is a hint, not a prediction. It says where to look twice, never what will go wrong, and it is made of fixed rules, so you can always see where the number came from.

  • Merge commits do not count, and neither does a commit that changed 300 files or more (an import, a reformatting); the bar says how many it ignored.
  • At most the 5000 newest commits in the period are counted. The bar says when there were more.
  • Renames are not followed: a renamed file starts again.

In Changes, the header of the diff shows Hotspot: high (or medium) for the selected file, and N hotspots in this change for the whole change. If the count fails or there are no hotspots, nothing is shown. The merge dossier of an agent branch does not show it yet.

Reading a hundred commits to find out how a file got here is slow. In Browse, select a file and press Story. Claude reads the commits of that file (the 60 newest, following renames) with their messages and changed lines, and writes a short story: the first form, the turning points, and now.

  • Every sentence has its sources. A sentence ends with the short hashes of the commits it rests on; click one to open it. A sentence without a valid source is left out, so nothing in the story is unchecked invention. It can still be a wrong reading, so follow the hashes when it matters.
  • You see what is sent. Press Show what is sent to read the text first, and strike a commit. If the repository asks for confirmation (see What is sent to Claude), the preview comes first anyway. The text goes to Anthropic, without recognised secrets.
  • Tell the story starts it; Tell it again asks once more; Copy puts the story on the clipboard, for example for a pull request description.

The story ends at the commit you are browsing, so open the file at an older commit to hear the story up to that point. It is not yet available for a branch, only for a file, and Claude needs an API key.

You open a repository you do not know. In the toolbar of History, Tour (or the command Repository tour… in the command palette) opens Repository tour. It reads the history and shows, per folder:

  • the number of Commits and Authors,
  • who has the most commits, and who changed it last, and how long ago,
  • the Hotspots inside it (the files with a medium or high risk hint, at most three),
  • and, below, Folders that often change together: pairs that were changed in the same commit at least three times, with a few example commits.

Click the arrow to look one level deeper. Every number is a button: a folder shows its commits in History, a commit count opens the newest commit that changed the folder. Choose Window to change the period, and press Copy as Markdown to take the whole map as text, for example for a README or an onboarding document.

It is a map from history: it shows where changes happened, not how the code is really built, and it says so, with the date and the commit it was made on. Nothing is sent anywhere; no Claude is involved. It does not give a summary yet, does not write an ARCHITECTURE.md, and does not warn when it is out of date: press Refresh.

  • Agent share is empty. No commit has an origin yet. Open the Worktrees view so the app can look at your agent worktrees.
  • Hotspots is empty. No file changed in the chosen period, or the count was cancelled.
  • A renamed file shows little history. Hotspots and the tour do not follow renames.
  • Story is not there. Open a file in Browse first: the button is in the bar above the file. Claude needs an Anthropic API key under Settings.

Read your history is the view all of this hangs on. Blame and line history goes down to the line. See what is sent to Claude explains the preview that Story uses.