Skip to main content

🤡 clownhead

PyPI

A status board for the coding-agent sessions already running on your machine: which are busy, which are idle, and which one is blocked waiting on you. Claude Code and Codex, on one board.

A herd of Claude Code sessions, one waiting on you

Install

curl -LsSf https://astral.sh/uv/install.sh | sh
uv tool install clownhead

uv tool install git+https://github.com/rooterkyberian/clownhead gets you whatever is on main, which is ahead of the last release.

Requirements

  • Claude Code 2.1.227 or newer on PATH.
  • Codex is optional. With codex on PATH and its app-server running, its sessions appear alongside Claude Code's and a HARNESS column says which is which. codex app-server daemon bootstrap keeps that daemon up; clownhead doctor says so when it is not. See Harness support for what each agent can answer.
  • macOS or Linux. Developed on macOS with iTerm2; CI runs the suite on both.
  • Sessions are found whatever terminal they run in. Tab colours are iTerm2's alone, kitty gets notifications, and everything else (an IDE's embedded terminal included) falls back to the bell and a tab renamed to ⚠ <session>: <why>. Raising a window is macOS-only. Typing a slash command into a session takes tmux or iTerm2; messages reach a session in any of them.
  • Sessions in a JetBrains IDE get their terminal tab selected as well, which takes an Accessibility grant for whichever application clownhead is running in: System Settings, Privacy & Security, Accessibility. Without it the window still comes up and the board says why the tab did not.

Keys

QUIET is how long a live session has been in the status it is in, AGE is time since its process started, and the pane below the table carries the id, path, process and terminal the columns cannot fit.

STATUS reads busy while a turn is in flight and shell once the turn is over with a background command still running. A row that has sat on shell for half an hour is usually a command nobody is waiting for any more.

  • → (or a click on the row) opens that session's conversation beside the board, usually the fastest way to tell what it is actually doing. ↑ and ↓ scroll it, ← closes it.
  • enter gets you into that session: a live one has its terminal focused, and one that has ended is resumed here, which ends the board.
  • f focuses its terminal: attention, then the window brought to the front, and in a JetBrains IDE the session's own tab selected once it is.
  • o opens the pull request the session was working on, asking which when it named more than one.
  • / filters by name, status, path, or session id — or by pull request or issue, below.
  • p opens the pull requests you have open on GitHub, below, where / filters them and r takes one up in a session.
  • n starts a new session for the pull request or issue being filtered on.
  • s sends the session a message: it joins the queue and is read at the end of whatever turn that session is on, and the answer turns up in the conversation → opens. A slash command takes the other door, typed into the session by tmux or by iTerm2, since a session runs what its own keyboard sends it and declines what a message asks of it. A session in a terminal neither of those owns says so instead of typing.
  • c folds in the sessions that have already ended. The count in the top bar is that same switch, and clicking it works too.
  • a archives a session that has ended, which sinks it below the rest of the closed ones and leaves everything else about it alone. Pressed again on an archived session it takes it back out, and so does anything that brings the session back to life: resuming it, or finding it running for any other reason.
  • r resumes a session that has ended, leaving the board up: a tmux window, an iTerm2 tab, or the clipboard, whichever the settings say. On a session still running it asks whether to fork it, which copies the conversation so far into a session with an id of its own and leaves the live one alone.
  • R renames it.
  • t asks whether to send its process SIGTERM, and can close its tab behind it. The question comes with [x] archive session ticked, since the session you are killing is usually one you are finished with; a unticks it.
  • , opens the settings.
  • ^p opens the command palette, which carries every key above by name and the three things with no key of their own: copying a session's resume command, retiring the worktree it worked in, and clearing out every worktree whose work has already merged.
  • q quits.

Tab colours

iTerm2 only. Every reload tints each session's tab to match its state, so the herd is readable from the tab bar of a terminal the board is nowhere near. Turn it off in the settings and the tabs it tinted are cleared on the way out.

Pull requests and issues

Nothing on a session records which pull request or ticket it belongs to, so no column can show one. Paste a pull request or issue URL into / and clownhead reads the transcripts of whatever the board is showing. Finished work is usually in a session that has ended, so c first, then the URL:

 🤡  2 of 137 sessions · acme/data-platform#309                        ⟳ 5s
 STATUS  NAME                    WHERE
 idle    invoice-parser          data-platform ⇢ invoice-parser
 closed  design-system:87e26be1  ~/dev/acme/design-system

A search of the live herd alone that comes back empty says so, and says that c would widen it, instead of folding the closed ones in uninvited.

owner/repo#309 and repo#309 name the same thing more briefly. Jira is named by its URL.

The pane below the table names the pull requests the selected session worked on, freshest first, which is the same reading done backwards — and o opens one in the browser.

A PRS column puts the freshest one on every row instead. Turn it on in the settings, or ask ls for it:

$ clownhead ls --closed --columns status,name,prs,where
STATUS  NAME                  PRS                       WHERE
busy    settlement-retries    payments-api#309 +2       ~/dev/acme/payments-api
idle    invoice-parser        data-platform#362         data-platform ⇢ invoice-parser
idle    index-rebuild         web-platf…#88 +14         web-platform ⇢ search-index
closed  design-system:87e26be1  -                       ~/dev/acme/design-system

It is the one column that costs a pass over the disk, which is why it is off until asked for — 55 ms for 151 MB of transcripts, read once and kept until ^r. A row says ? until that read lands and - once it has and the session named nothing; the repository gives way before the number does when the column is too narrow, since the number is the only part you read a pull request by.

Your pull requests

p asks GitHub what you have open, and the transcripts which sessions here worked on each:

 49 open · reading status 31/49… · 6 with sessions here
 PR                                TITLE                              CHECKS  REVIEW    SESSIONS  UPDATED
 acme/payments-api#309             feature: settlement retries        ✗ 2     changes          1       3h
 acme/data-platform#362            chore: migrate httpx to httpx2     ✓       approved         2       1d
 acme/web-platform#88              spike: search index rebuild        ⟳ 1     required         0       4d

What wants you leads: something red or objected to first, then what is approved and green and waiting on somebody to press merge, then what is still out for review. Drafts sink below all of it.

Archived repositories are left out, and a pull request that merged since GitHub listed it drops off as its status arrives.

r asks which session to take a pull request up in: one of the sessions that named it, or a new one started for it. A live session is focused where it already runs; one that has ended is resumed here, which ends the board; and a new one goes through the same sheet n opens, worktree and all. That sheet leads with the checkout of the pull request's own repository, found by name beside the checkouts the fleet already works in and confirmed by what its origin says, so a pull request nothing here has touched still starts in the right place. A checkout Claude Code has never been run in is marked (new to claude) and starts without a worktree, since Claude Code will not make one until you have accepted its trust dialog there. Accept it in that first session and every later one gets a worktree.

enter leaves the list and points the board at the sessions that worked on that pull request, ended ones folded in, which is the same place pasting its URL into / arrives at. / filters the list itself, on the words it shows: the repository, the title, the name of a check that went red, approved, changes, draft. o opens the pull request on GitHub and y copies its URL.

This is the one view that asks somebody else, so it needs gh and says which of no gh, no auth and no network it ran into rather than showing an empty table. The three answers arrive separately — the list in one request, the statuses one apiece, the sessions from a pass over every transcript — and the table fills in as each lands.

Starting one

Every ticket starts with the same three steps: find the checkout, make a worktree, tell a fresh session what to work on. clownhead <url> does all three.

$ clownhead https://github.com/acme/data-platform/issues/2

The board opens filtered to that issue, the ended sessions already folded in. enter gets you back into whichever one you pick; n starts a new one in plan mode, in a worktree named after the issue.

Commands

Every view is also a one-shot subcommand, so the same data pipes into a script.

Command What it does
clownhead The interactive overseer. Same as clownhead tui.
clownhead open <ref> The board filtered to a pull request or issue, ended sessions included, ready to start one for it. What a bare clownhead <url> runs. Takes a GitHub pull request or issue URL, a Jira URL, or owner/repo#123. --print writes the sessions and the start command out instead of opening the board.
clownhead prs What you have open on GitHub, and which sessions here worked on each. --author asks about somebody else, --limit caps how many to ask for, --no-sessions skips the transcript pass. Needs gh.
clownhead ls Status board, attention-first. --cwd scopes to one tree, --all adds background agents, --closed adds sessions that have ended, --pr keeps only the ones whose transcript names a pull request, --columns picks the columns and their order.
clownhead worktrees-cleanup Retire the worktrees Claude Code left behind. --older-than sets how long untouched is long enough (default 7d), --merged keeps to the ones already in the default branch, --branches deletes those branches too, --dry-run shows what would go, --yes skips the question.
clownhead paint Colour each session's tab to match its state, for a board you would rather not keep open. --follow keeps them in sync, --reset clears them.
clownhead focus [name] Bounce the dock, raise the terminal, and notify. With no argument, takes every session that is waiting on you. --no-foreground leaves your windows where they are.
clownhead doctor Check discovery, terminal capabilities, and auth.
clownhead --version The installed version, which a problem report asks for.

--columns names what ls shows and the order to show it in: status, harness, name, quiet, age, pid, tty, worktree, prs, where, resume. Everything but pid, tty, worktree and prs is on by default, resume included, and harness only where the machine has two agents. The overseer's settings sheet writes the same selection (space picks a column, J and K move it), so a board and a script can be told the same thing in the same words. A listing you are reading in order to get back into something should hand you the command that does it:

$ clownhead ls --pr acme/payments-api#309 --closed --columns name,resume
acme/payments-api#309 · 2 of 74 sessions
NAME             RESUME
payments-api-7c  (cd /Users/you/dev/payments-api && claude --resume 4e020900-df7c-4665-a804-d973b14a1926)
index-rebuild    (cd /Users/you/dev/web-platform && claude --resume 8b1c4f22-0d31-4f0a-9c2e-3a7b1e5d6f08 --worktree search-index)

A resume command is the longest thing on the board and the one truncation ruins, so naming fewer columns is how you get one whole; --columns name,resume is the pair worth remembering.

How it works

How it works: discovery, the attention signals, the control socket behind renaming, and what happens to a session when it is terminated or resumed. Alternatives surveys the other tools for managing a herd, and where this one differs.

Problems

Open an issue. The form asks for clownhead --version and claude --version up front, since a surprising number of surprises are a disagreement between the two.

Development

mise install
mise run check    # lint + typecheck + test
mise run demo     # re-record docs/demo.gif from docs/demo.tape, which needs vhs

Metadata

Release files for clownhead 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clownhead 0.10.0
File Size Uploaded Provenance Actions
clownhead-0.10.0.tar.gz 119.6 kB With provenance Details for clownhead-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for clownhead 0.10.0
File Interpreter ABI Platform Actions
clownhead-0.10.0-py3-none-any.whl Python 3 none any Details for clownhead-0.10.0-py3-none-any.whl

Total release size: 255.1 kB

Release files / clownhead-0.10.0.tar.gz

Download URL clownhead-0.10.0.tar.gz
Size 119.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6c6232bf3fd75fd4cf54e2aedfbd5294963a5c5fd5df3d2e8eed935cfc8cd15c
BLAKE2b-256 checksum
How to use checksums
71185d2f02b2d027a9d720165dde1dd12e6678977ce9e1da6f17291c583c2680
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / clownhead-0.10.0-py3-none-any.whl

Download URL clownhead-0.10.0-py3-none-any.whl
Size 135.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fbcff4bb6d79f0634711678681bc556c5e8c89d3cb1cfc4f9cc579e003a2b2af
BLAKE2b-256 checksum
How to use checksums
66ab1675a68c19e0a196948779e4cf3962d72b8483baadbcc032ec0a6c92c1cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Security for clownhead 0.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for clownhead-0.10.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page