Overview
Kooper Git Status (kgs) lists every folder directly inside a directory, shows whether each one is a git repository and, if so, what state it is in. It's meant for the folder where you keep all your checkouts (~/git, ~/src, ~/projects): one glance tells you which repos have uncommitted work, which have commits you haven't pushed, and which are behind their upstream. Select one to open a shell there, or a new terminal window.
kgs # the current folder
kgs ~/git
kgs -depth 2 ~/git # checkouts grouped as ~/git/<org>/<repo>
kgs -p ~/git # print the table and exit
kgs -json ~/git # print the status as JSONIt needs git on your PATH. Rows appear straight away and fill in as each repository's status arrives; the detail pane shows the selected repo's branch and upstream, stashes, last commit and changed files.
Download
Kooper Git Status 1.0.0 — First Release · v1.0.0 · released 5 December 2026 · release notes · all releases
| macOS | Intel 1.7 MB Apple silicon 1.6 MB |
|---|---|
| Linux | x86-64 1.7 MB ARM64 1.6 MB |
| Windows | x86-64 1.8 MB ARM64 1.6 MB |
| FreeBSD | x86-64 1.7 MB |
Unpack the archive and put kgs (kgs.exe on Windows) somewhere on your PATH. SHA256SUMS has the checksum of every file: sha256sum -c SHA256SUMS --ignore-missing (shasum -a 256 -c on macOS).
The binaries aren't signed, so macOS may refuse to open one downloaded with a browser: allow it under System Settings → Privacy & Security, or run xattr -d com.apple.quarantine kgs. On Windows, SmartScreen may ask you to choose More info → Run anyway.
go install github.com/colboycolinmeeks/koopergitstatus/cmd/kgs@latestScreenshots
Kooper Git Status 1.0.0 /home/you/git 7 folders · 6 repos · 4 need attention · showing needs… FOLDER BRANCH SYNC CHANGES STATUS ▶ blog main ✓ synced +1 ~1 uncommitted docs main ↑2 unpushed photos main ↓1 behind website main ✓ synced ?1 uncommitted ════════════════════════════════════════════════════════════════════════════════════════════════════ blog /home/you/git/blog Branch: main → origin/main (ahead 0, behind 0) · never fetched Last commit: 3174959 Start blog (30 seconds ago) Changes: (1st column = staged, 2nd = not staged) M index.html A post.md ↑↓ move ←→ up/in enter shell t terminal / search f filter F fetch S sort r refresh q quit…
What the columns mean
- BRANCH: the current branch, or
@abc1234when HEAD is detached. - SYNC:
✓ synced,↑ncommits to push,↓nto pull,no remoteorgone. This uses the last fetch: pressFto fetch the selected repo, orCtrl+Fto fetch them all. - CHANGES:
+staged,~modified,?untracked,!conflicts.
| Status | Meaning |
|---|---|
conflicts | There are unmerged files |
uncommitted | Staged, modified or untracked files |
diverged | Both ahead of and behind the upstream |
unpushed | Ahead of the upstream |
behind | Behind the upstream |
no commits | A freshly initialised repo |
clean | None of the above |
not a repo | The folder isn't a git repository |
On a narrow terminal, columns are hidden so that STATUS always fits, and the detail pane still shows everything for the selected folder.
Keys
| Key | Action |
|---|---|
↑ ↓, j k, PgUp PgDn, g G | Move |
← / → | Up a level / into the selected folder |
enter or s | Open your shell in the folder; exit comes back and refreshes it |
t or o | Open a new terminal window in the folder |
/ | Search by name as you type |
f | Filter: all folders → repos only → needs attention |
S | Sort: name → status → last commit |
F / ctrl+f | Fetch the selected repo / every repo in the list |
a / c / r | Hidden folders / colour theme / rescan |
? / w | Help and version / what's new |
q | Quit |
The needs attention filter shows only repos that are dirty, ahead, behind or failed. When the selected repo turns clean and leaves the list, the cursor moves to the next one down, so you can work through the list from top to bottom.
Scripting with -p and -json
-p prints the table as plain text and -json prints one object per folder, with its branch, upstream, ahead and behind counts, changed files and last fetch.
# repos with work to commit, push or pull
kgs -json ~/git | jq -r '.[] | select(.status | test("uncommitted|unpushed|diverged|behind|conflicts")) | .name'
# repos that have never been fetched
kgs -json ~/git | jq -r '.[] | select(.is_repo and .repo.last_fetch == null) | .name'Safe to point at anything
- It never changes your repositories. It runs
git statusandgit logwithGIT_OPTIONAL_LOCKS=0, so it never takes the index lock or gets in the way of a git command you're running. - It only fetches when you ask, never prompts for credentials, and gives up on a repo whose status takes more than 15 seconds.
- fsmonitor is turned off, so a
.gitfolder from an unpacked archive can't use it to run a program. SetKOOPERGITSTATUS_FSMONITOR=1if you rely on it. - Text from repositories has control characters replaced, so a crafted commit message can't send escape sequences to your terminal.
Two colour themes: blue, the KooperEdit palette, with every colour at WCAG AA contrast; and bw, which uses your terminal's own colours with bold and reverse video. Press c to switch, or set KOOPERGITSTATUS_THEME.
Building from source
Kooper Git Status needs Go 1.27 or later.
make # build bin/kgs
make run ARGS=~/git
make check # gofmt check, go vet, tests: what CI runs
make install # install kgs into $GOBIN (or $GOPATH/bin)
make package # archives for every platform and SHA256SUMS in dist/