Skip to main content
Glama
README.md
<div align="center">

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="assets/readme/cohors-dark.png">
  <img src="assets/readme/cohors-light.png" alt="cohors" width="420">
</picture>

### Your agents said "done". Did anything get left behind?

[![CI](https://github.com/rushirb2001/cohors/actions/workflows/ci.yml/badge.svg)](https://github.com/rushirb2001/cohors/actions/workflows/ci.yml)
[![Release](https://img.shields.io/github/v/tag/rushirb2001/cohors?label=release&sort=semver&color=brightgreen)](https://github.com/rushirb2001/cohors/releases)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)

<img src="assets/demo.gif" alt="It starts with one agent: Claude Code finishes a task in payment-service and commits it. Now ten Claude Code sessions in ten repositories each say done. But who checks all ten? The cohors mark and name answer. cohors opens on all 24 repositories and outlines what they left: 9 not backed up. P pushes 8 of them, never forcing, and Not backed up drops from 9 to 1. Or ask your agent: Claude calls cohors and answers for all 24 repositories. The end card shows how to install it." width="100%">

</div>

You start an agent in one repository, then another, then a third in a worktree. By evening each one has said it is finished. Some pushed. Some committed and stopped. One left a dozen files in a folder you will never open again, and the only copy is on this laptop.

`git status` answers for one folder at a time. cohors answers for every repository and every agent worktree at once, and tells you what to do about it first.

## Install

```sh
brew install rushirb2001/tap/cohors
```

<sub>or `pip install cohors` · `npm install -g @cohors/cli` · `cargo install cohors` · `uvx cohors@latest` to run it once</sub>

Want to look around before pointing it at your own work? This opens on 24 made-up repositories and reads nothing on your disk:

```sh
cohors demo
```

## Tell it where your code lives

```sh
cohors init
```

cohors looks through your home folder and lists every folder that holds repositories. Untick the ones you don't care about; nothing outside the ticked folders is ever read.

<img src="assets/readme/v2/pick.png" alt="cohors init: the folders found under your home folder, each with its number of repositories and a tick box, and buttons to tick, save or cancel" width="100%">

## Connect your agents

Right after, cohors offers the other half: letting your AI agents ask it the same questions. It finds the ones installed on this machine, Claude Code, Codex, Gemini CLI, VS Code, Cursor and Windsurf, and ticks them all. Keep one, some or every one.

<img src="assets/readme/v2/agents.png" alt="Connect your AI agents: Claude Code, Codex, Gemini CLI, VS Code, Cursor and Windsurf, each with the command cohors runs for it, five of six ticked, and a Connect button" width="100%">

Each is connected the way that agent documents it, and starts **read-only**: an agent can look, and change nothing until you say so.

<details>
<summary>Do it by hand instead</summary>
<br>

```sh
claude mcp add --scope user cohors -- "$(command -v cohors)" mcp
codex mcp add cohors -- "$(command -v cohors)" mcp
gemini mcp add -s user cohors "$(command -v cohors)" mcp
code --add-mcp "{\"name\":\"cohors\",\"command\":\"$(command -v cohors)\",\"args\":[\"mcp\"]}"
```

Cursor (`~/.cursor/mcp.json`), Windsurf (`~/.codeium/windsurf/mcp_config.json`) and any other MCP client:

```json
{ "mcpServers": { "cohors": { "command": "/full/path/to/cohors", "args": ["mcp"] } } }
```

`cohors doctor` prints the full path. Claude Code also has a plugin: `/plugin marketplace add rushirb2001/cohors`, then `/plugin install cohors@cohors`.

</details>

## See what was left behind

```sh
cohors
```

Before anything opens, cohors checks every repository for work that would be lost if this laptop died tonight: commits never pushed, files never committed, work sitting in agent worktrees, branches with no remote. Then it lists what to do, most urgent first.

<img src="assets/readme/v2/launch.png" alt="The launch screen: what was checked (4 commits not pushed, 5 files not committed, 3 repositories behind), the Do next steps, and every repository grouped by folder, with an Open the dashboard button" width="100%">

## Clear it

<kbd>Enter</kbd> opens the dashboard. Every step in **Do next** has a key, and **Work at risk** shows exactly which repositories hold what.

<img src="assets/readme/v2/dash.png" alt="The dashboard: Not backed up 5, Do next with Push 4 commits from 3 repositories on key P, Work at risk, open tasks, commits, every repository" width="100%">

Press the key and cohors names every repository it is about to touch, then waits for you:

<img src="assets/readme/v2/confirm.png" alt="A Confirm dialog: Push 4 commits from 3 repositories? payments, design-system, analytics. y confirm, N or Esc cancel" width="100%">

Nothing force-pushes. Pull only fast-forwards. A repository that can't be read is reported, never fatal.

## Or just ask

In any agent you connected, start a new session and ask the question you actually have:

> *What did my agents leave behind?*

<img src="assets/readme/v2/claude.png" alt="A real Claude Code session in ~/Developer: asked anything not pushed or committed across the services, it calls cohors and answers that four of the 24 repos have work not committed or pushed, in a table of repo, branch, unpushed and uncommitted, then what to do next for each" width="100%">

Where it earns its place in Claude Code:

- **Before you close the laptop.** Ask *"anything not pushed across my repos?"* and get one table instead of opening ten terminals.
- **When a session starts.** Open Claude Code in a repository that still holds unpushed work, and cohors adds one short note about it for you and for Claude. A clean repository gets nothing, and the same note shows at most once a day.
- **When you pick up again.** *"Where did I leave off?"* lists the agent conversations worth resuming, each with the command that reopens it.
- **When you want it cleaned up.** Turn on writes (`--allow-writes` after `mcp`) and Claude can push and commit for you, previewing every change first. Work inside an agent's worktree is only touched when it asks for it with `worktrees: true`.

Also good: *what have I changed this week*, *write my standup*, *which PRs are failing CI*.

## Wherever you work

**In the editor.** The same answers in the sidebar of VS Code, Cursor or Windsurf:

```sh
code --install-extension rushirb2001.cohors
```

<img src="assets/readme/v2/vscode.png" alt="cohors in VS Code: the fleet overview with Do next, the figures, Work at risk, open tasks and commits, and saved views in the sidebar" width="100%">

- **Glance, don't switch.** Do next and Work at risk sit in the sidebar while you code, and update as your repositories change.
- **Open a repository from the list.** Its changed files, branches, stashes and recent commits, without leaving the editor.
- **Act on several at once.** <kbd>Cmd/Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>L</kbd> opens the dashboard tab: tick repositories, then push, pull, fetch, commit or stash them together, or start Claude on a task.
- **Per workspace.** `cohors.roots` in a workspace's settings watches just the folders that project cares about.

**In a browser.** A live page on your own machine, read-only until you add `--allow-writes`:

```sh
cohors web
```

<img src="assets/readme/v2/web.png" alt="cohors in the browser: Overview with Do next, At a glance figures, and Pick up where you left off with a command to copy for each step" width="100%">

- **A second screen.** Leave it open beside your agents; it updates live as they commit and push.
- **Pick up where you left off.** Every step comes with the exact command to copy into a terminal.
- **Act when you mean to.** Read-only until you start it with `--allow-writes`; then every action shows a dry run and the repositories it will touch before anything moves.
- **Pull requests and CI.** Run `gh auth login` once and each repository also shows its open pull requests and CI state. It only ever listens on this machine.

**In a script.** Every view is a command; piped, it prints JSON:

```sh
cohors overview                        # what to do first
cohors scan --select worktree-work     # repositories with work left in a worktree
cohors push --select ahead --dry-run   # what a push would do, changing nothing
```

## Safe by default

- Every action names the repositories it will touch and waits for your yes.
- Nothing force-pushes; pull only fast-forwards.
- Agents and the browser start read-only.
- No account, no telemetry. It talks only to GitHub, and the browser page loads its fonts from Google Fonts. [Privacy](PRIVACY.md).

<div align="center">
<br>

[Changelog](CHANGELOG.md) &ensp;·&ensp; [Contributing](CONTRIBUTING.md) &ensp;·&ensp; [MIT License](LICENSE)

<sub><i>cohors</i> is Latin for "cohort": every repository, marshalled under one command.</sub>

</div>

TDQS

A3.7/5.0

Scored across 24 tools

Disambiguation3/5

Git plumbing verbs (push/pull/fetch/commit/stash/changes/run/search) are cleanly separated, but the reporting surface overlaps heavily: fleet_summary, list_repos, overview, next, launchpad and read_board all answer variations of "what's going on / what should I do", and the descriptions lean on subtle framing differences to distinguish them. An agent must read carefully to pick the right entry point.

Naming Consistency3/5

A consistent verb_noun snake_case core exists (list_repos, get_repo, list_prs, read_board, write_board, record_activity, write_repo_contribution), but it is mixed with bare git verbs (push, pull, commit, fetch, stash, run) and bare nouns or single words (overview, next, standup, launchpad, changes, discover). Readable, but no single predictable pattern.

Tool Count3/5

24 tools is at the heavy end of the acceptable band; each covers a real facet (git ops, GitHub enrichment, focus board, contribution schema, agent sessions), but the reporting/advisory cluster inflates the surface more than the domain strictly requires.

Completeness4/5

Strong coverage of the multi-repo workflow: read/validate/write for both board and repo contribution, full git sync lifecycle (fetch, pull, push, commit, stash, changes), GitHub CI/PRs, plus run/search for cross-repo work. Gaps remain around stash restore/pop, branch/tag/merge operations, and repo initialization, but core workflows have no dead ends.

Maintenance

ActivityNo data
ResponsivenessOutdated data