cohors

v0.9.11
io.github.rushirb2001/cohors Checked 43 minutes ago Published 23 hours ago

Every git repo on your machine for your agent: status, cross-repo search, tasks, opt-in git actions

<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.

Summary extracted from the README.

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

CI Release License: MIT

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

brew install rushirb2001/tap/cohors

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

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

cohors demo

Tell it where your code lives

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.

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.

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

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:

{ "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.

See what was left behind

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.

Clear it

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

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

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?

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:

code --install-extension rushirb2001.cohors
  • 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. Cmd/Ctrl+Alt+L 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:

cohors web
  • 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:

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.

Changelog  ·  Contributing  ·  MIT License

cohors is Latin for "cohort": every repository, marshalled under one command.