agterm-win 0.45.5 · cookbook

Claude git info

Claude Code keeps the git state of its repository on a line under the session's sidebar row: branch, changed files, and commits ahead of and behind the upstream.

In agterm-win · Set it up in WSL · On Windows · The recipe

In agterm-win

An agterm-server session in an Ubuntu distribution, in a fresh agterm-win with the Nordic Blue Dark theme.

A Claude Code session whose sidebar row reads main, clean, local only
When Claude starts in the repository, the row shows main ✓ clean.
The same row after an edit, reading main, one changed file, local only
After Claude edits test_app.py, the line shows one changed file.

Set it up in WSL

In the distribution, from a copy of the recipe's folder.

$ sudo apt install jq git
$ mkdir -p ~/bin
$ cp git-info.sh ~/bin/
$ chmod +x ~/bin/git-info.sh
# then register it in ~/.claude/settings.json in the distribution, as the README shows

Then, from a shell in an agterm session:

$ cd ~/src/api
$ claude

On Windows

  • Install the hook inside the distribution, where Claude Code runs. It calls the Linux agtermctl of agterm-server.
  • Claude Code was the live agent in these shots, in an agterm-server session.

The recipe, with how it works and its limits: cookbook/claude-git-info.

← Backlog picker · All recipes