Metadata-Version: 2.5
Name: chiefofstaff
Version: 0.1.58
Summary: One inbox for all your GitHub Copilot sessions: tasks and follow-ups go to the right session, Slack replies wait for your approval, and finished work waits for your review.
Project-URL: Homepage, https://github.com/evanl666/chiefofstaff
Project-URL: Issues, https://github.com/evanl666/chiefofstaff/issues
Author: evanl666
License-Expression: MIT
License-File: LICENSE
Keywords: ai-agents,developer-tools,github-copilot,multi-agent,orchestration,slack
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development
Requires-Python: >=3.11
Requires-Dist: cryptography<52,>=44
Requires-Dist: fastapi<1,>=0.115
Requires-Dist: github-copilot-sdk<1.0.29,>=1.0.28
Requires-Dist: httpx<1,>=0.28
Requires-Dist: keyring<26,>=25
Requires-Dist: mcp<2,>=1.24
Requires-Dist: platformdirs<5,>=4.14.3
Requires-Dist: psutil<8,>=7; sys_platform == 'win32'
Requires-Dist: pydantic<3,>=2.10
Requires-Dist: uvicorn<1,>=0.34
Provides-Extra: claude
Requires-Dist: claude-agent-sdk<0.3,>=0.2.182; extra == 'claude'
Provides-Extra: dev
Requires-Dist: claude-agent-sdk<0.3,>=0.2.182; extra == 'dev'
Requires-Dist: httpx<1,>=0.28; extra == 'dev'
Requires-Dist: pyright==1.1.414; extra == 'dev'
Requires-Dist: pytest-asyncio<2,>=0.25; extra == 'dev'
Requires-Dist: pytest-cov<8,>=6; extra == 'dev'
Requires-Dist: pytest-timeout<3,>=2.3; extra == 'dev'
Requires-Dist: pytest<10,>=8; extra == 'dev'
Requires-Dist: ruff<1,>=0.11; extra == 'dev'
Description-Content-Type: text/markdown

# Chief of Staff

**English** · [简体中文](https://github.com/evanl666/chiefofstaff/blob/main/README.zh-CN.md)

[![PyPI](https://img.shields.io/pypi/v/chiefofstaff)](https://pypi.org/project/chiefofstaff/) [![Python](https://img.shields.io/pypi/pyversions/chiefofstaff)](https://pypi.org/project/chiefofstaff/) [![License: MIT](https://img.shields.io/badge/license-MIT-blue)](https://github.com/evanl666/chiefofstaff/blob/main/LICENSE)

Your engineering chief of staff. It catches what comes to you (a question in Slack, a PR to
review, a comment on your doc), gets it done with Copilot, and answers in your voice: with
proof of what was done, and only once you say OK. The longer it works for you, the better it
knows how you work.

**It does the work. It drafts the words. You make the call.**

<p align="center"><img src="docs/images/captain.svg" width="600" alt="The captain, Chief of Staff's duck, in its five moods: idle, working, needs you, watching, done"></p>

![Home: the chat, what needs you, and every task's live progress](https://raw.githubusercontent.com/evanl666/chiefofstaff/main/docs/images/home.png)

```bash
uvx chiefofstaff@latest --demo    # try it with scripted sessions, no sign-in needed
```

## Why

Most of my day isn't writing code. It's answering a question in Slack, reviewing a PR,
following up on a thread, checking whether a run finished. Copilot can do most of that, but I
still had to notice each ask, start a session, keep an eye on it and write the reply myself.
Chief of Staff does the noticing and the follow-through. I talk to one session, the Router: it
hands each ask to its own Copilot session, keeps track of all of them, and comes back to me
only with a decision to make or a draft to approve.

## What it does

**Catches what comes to you**
- Watches what you ask it to (Slack mentions, doc comments, mail) with any tool your Copilot
  has, Glean or your company's search included, and turns what needs doing into tasks.
- React 🤖 to any Slack message, press a hotkey from any app, or just say what you need.
- Sends a follow-up to the session that did the work, with its history and checkout.

**Answers in your voice, once you say OK**
- Drafts Slack replies and PR reviews, approvals included, the way you write them.
- Sends them only when you approve; you can edit a draft first.

**Shows proof, not just claims**
- Shows what was observed next to each report (test runs, commits, diff, PR checks), and flags
  claims nothing backs.
- Lets you comment on the diff, send it back, and open the PR in one click.
- Shares a finished card as a link that expires: encrypted in a secret gist of yours, opened in
  any browser, with what looks private marked for you to remove first.

**Learns how you work**
- Picks up how you write and what you keep asking for. Your style applies at once; habits wait
  for your OK.
- Turns mistakes workers fixed into checks that catch them next time.

**Guards your focus**
- Asks only when it needs you: one card per thing, a decision with options and a
  recommendation, a question, a draft.
- Reaches you when you are away from your desk (through your company's Slack bot, say) and
  takes your answers from there.
- Focus mode holds notifications and gives you one summary at the end; a daily summary says what
  finished, what waits for you and what was handled for you.

**Keeps many things moving at once**
- Splits a request into tasks and runs each in its own Copilot session, in parallel or in order.
- Shows every task live on one board: what it is doing now, what waits and why, what is done.
- The captain, the duck beside the name, shows how things stand at a glance: it salutes when
  something needs you, takes the wheel while work runs, keeps watch while tasks wait, and
  cheers when a task is done.

**Your Copilot, your machine**
- Uses the Copilot you already have: your plan, models, plugins, skills, MCP servers and your
  company's policies, plus anything you add in Settings. No other AI service or API key.
- If you also use Codex or Claude Code, workers can run on them instead, with your own sign-in:
  allow them on Home or in Settings, and pick one for a task with `@codex` or `@claude`
  ([how](https://github.com/evanl666/chiefofstaff/blob/main/docs/guide.md#workers-on-other-coding-agents)).
- Every worker gets its own folder and git worktree, so your checkouts stay untouched. Workers
  run like your own Copilot sessions, but none comments, reviews, merges or closes on GitHub as
  you, pushes to `main` or force-pushes others' branches without your OK; turn on *Ask first*
  for more checks (no force pushes at all, no `sudo`) or an OS sandbox in Settings.

## Install

You need macOS, Linux or Windows (experimental), Python 3.11+, [uv](https://docs.astral.sh/uv/getting-started/installation/)
(or pipx) and the [GitHub Copilot CLI](https://docs.github.com/en/copilot/how-tos/copilot-cli):

```bash
npm install -g @github/copilot
copilot login
uv tool install chiefofstaff && chiefofstaff   # or: pipx install chiefofstaff
```

Your browser opens Chief of Staff through a private link printed in the terminal (keep it to
yourself). Tell it where your code lives, like `~/workspace`, and type what you need.

Everything runs on your machine; data stays in `~/Library/Application Support/chiefofstaff`
(macOS), `~/.local/share/chiefofstaff` (Linux), or `%LOCALAPPDATA%\chiefofstaff\chiefofstaff`
(Windows; with a Python installed from the Store app, Windows keeps it under that Python's
`%LOCALAPPDATA%\Packages\...\LocalCache` instead: the `Data:` line at startup says where).
Ctrl+C stops it, and sessions pick up where they left off next time. Options: `--port`,
`--data-dir`, `--no-browser`, `--demo`. Update with
`uv tool upgrade chiefofstaff` (or `pipx upgrade chiefofstaff`), or click **Update and restart**
where the sidebar says a newer version is out (Settings → General turns that off). Without
installing, start it with
`uvx chiefofstaff@latest`: plain `uvx chiefofstaff` runs the version uv cached the first time,
however old. Each new version leaves a cached environment behind in uv's cache: `uv cache prune`
removes the ones nothing uses. Never run `uv cache clean` while Chief of Staff is running: it can delete
the environment it runs from. Workers' folders, and how much disk they take, are under Storage
(the disk icon at the bottom of the sidebar).

On Windows (experimental), Send to Chief, the Copilot command sandbox, sandboxed checks and
the folder sizes under Storage (measured with `du`) are unavailable. Workers can access files
and networks available to your Windows account.
A new data directory, and the private launch link in it, are made readable only by you (and
SYSTEM and Administrators) with an access control list; a `--data-dir` that already exists
keeps its own, so check it. Storage cleanup cannot see programs running as administrator in a
worker's folder: close those before closing the worker. Git can still hit path length limits
in deeply nested folders; use a shorter project or data directory if that happens.

To start this checkout after `uv sync --extra dev`:

```powershell
.\.venv\Scripts\python.exe -m chiefofstaff
```

**Optional sign-ins**
- **GitHub**: `gh auth login` with every account you use, to review PRs and open them.
- **Slack**: paste a user token in Settings ([how](https://github.com/evanl666/chiefofstaff/blob/main/docs/guide.md#slack)), or reach Slack through
  a tool your Copilot already has, such as Glean.
- **Other services** (docs, issue trackers): a sign-in card appears when a worker needs one, and
  one card when an MCP tool says an account must be connected (however many workers it stops).

## How it works

Each session is a regular Copilot CLI session, driven through the Copilot SDK; `copilot --resume`
lists them as "Chief of Staff · …". A Codex worker is a thread of its own `codex app-server`.
Sessions never talk to each other directly: they call tools
such as `spawn_worker`, `report` and `tell_session`, and Chief of Staff delivers each message,
labeled with who sent it, so a Slack message cannot pass itself off as you. Workers that work
together pass what the other needs straight to it; the Router gets a copy.

```
you ── Home ── Router ── tasks ──► worker · worker · worker
                 ▲                 (own folder and worktree)
Slack, GitHub, ──┘    drafts ────► wait for your approval
your watches          Watchdog ──► nudges stuck workers
```

## Learn more

- [User guide](https://github.com/evanl666/chiefofstaff/blob/main/docs/guide.md)
- [Architecture](https://github.com/evanl666/chiefofstaff/blob/main/docs/ARCHITECTURE.md)
- [Security](https://github.com/evanl666/chiefofstaff/blob/main/SECURITY.md): what the OS sandbox, Chief of Staff and the model each enforce
- [Changelog](https://github.com/evanl666/chiefofstaff/blob/main/CHANGELOG.md)

## Status

Early (0.1): expect rough edges. Copilot usage counts against your plan, and Home shows the
credits each task used. Issues and ideas are welcome; to contribute, see
[CONTRIBUTING.md](https://github.com/evanl666/chiefofstaff/blob/main/CONTRIBUTING.md).

## License

MIT. Chief of Staff is an independent project, not made by or affiliated with GitHub. GitHub
Copilot is a trademark of GitHub, Inc.
