Command line
The cohort command does what the app does, from a terminal or a script, and agents use it too. It starts Cohort’s daemon if it isn’t running. cohort <command> --help prints the full options of any command.
Every command takes --json to print JSON instead of tables and text. Where a command takes a thread <ID> and says “default: your own thread”, an agent can leave it out.
cohort thread
Section titled “cohort thread”Agents at work.
| Command | Does |
|---|---|
thread start <PROMPT>… |
Start a thread with a prompt |
thread list |
The threads. --project, --status, --parent, --archived (only archived), --all (archived and not) |
thread show <ID> |
One thread. Default: your own |
thread send <ID> [TEXT]… |
Send a message: steers the running turn. --queue waits for the next; --image <PATH> (repeatable); --follow |
thread interrupt <ID> |
Interrupt the running turn |
thread stop <ID> |
Stop the agent |
thread retry <ID> |
Send a failed turn’s message again |
thread queue <ID> |
What waits for a turn. --remove, --move <ITEM> --to <N>, --edit <ITEM> --text <TEXT>, --send-now <ITEM> |
thread edit <ID> |
Change --title, --harness (another agent, when idle: a new session with a recap), --model, --effort, --permission-mode, --into <BRANCH> (where Merge lands it) |
thread move <ID> |
Move it to another --login and/or --project, from its next turn |
thread compact <ID> |
Compact the agent’s conversation (Claude Code, Codex): now, or after the running turn |
thread fresh <ID> |
Start the agent over with an empty context; the next message carries a recap |
thread rewind <ID> <TEXT> --from <SEQ> |
Edit a message you sent: the conversation goes back to before it and the new text is sent instead. Files are not rolled back |
thread fork <ID> |
Fork it. --after <SEQ> (from an earlier turn), --prompt, --login, --title |
thread approve <ID> [REQUEST_ID] |
Allow a pending permission request (the latest by default). --always: for the rest of the session |
thread deny <ID> [REQUEST_ID] |
Deny it. --message says why |
thread answer <ID> <QUESTION_ID> <TEXT>… |
Answer the agent’s question |
thread diff <ID> |
Changes against the base branch: committed, uncommitted and untracked. --stat: only the file list |
thread log <ID> |
The transcript. -f, --follow keeps printing |
thread merge <ID> |
Merge its branch into its target: catch up, run checks, land |
thread checks <ID> |
Run the project’s checks now |
thread tasks <ID> |
Its background tasks. --output <TASK>: the end of one’s output; --stop <TASK> |
thread mcp <ID> |
The MCP servers its agent reported and how they are. --login <SERVER> signs in to one (in the browser); --no-open, --wait |
thread worktree <ID> |
Move it from the project’s checkout into a new worktree. --carry <PATH>…: uncommitted files that go along |
thread folder <ID> <PATH> |
Point it at another existing folder of its project, from its next turn |
thread archive <ID> |
Archive it. --when-done (once its turn and queue end); --force (even unmerged, merging or pinned) |
thread unarchive <ID> |
Bring it back |
thread pin <ID>, thread unpin <ID> |
Pin: first in its project’s list, and archiving it asks first |
thread seen <ID> |
Mark it read |
thread delete <ID> |
Delete an archived thread. --archived (every archived thread, with --project, --older-than 30d); --force (even with unmerged work) |
thread start options
Section titled “thread start options”| Option | |
|---|---|
--project <PROJECT> |
Project (id or name). None: a personal workspace |
--title <TITLE> |
Its title |
--harness <HARNESS> |
The agent: claude-code, codex, acp:<id>, pty:<id> |
--model <MODEL>, --effort <EFFORT> |
Model and effort |
--permission-mode <MODE> |
default, accept-edits, plan or full |
--login <LOGIN> |
Login (id or name) |
--env <ENVIRONMENT> |
worktree, checkout or personal |
--base-branch <BRANCH> |
Where a new branch starts (default: the project’s default base). Also --base |
--branch <BRANCH> |
The worktree’s branch: a new name, or an existing branch to work on directly. Default: a new cohort/<slug> |
--into <BRANCH> |
Where Merge lands it |
--share-with <THREAD> |
Run in that thread’s worktree |
--parent <THREAD> |
Start it as that thread’s child |
--image <PATH> |
An image to send with the prompt (PNG, JPEG, GIF or WebP; repeatable) |
--follow |
Wait until the turn ends, printing the transcript. Exit code 0 done; 1 failed, stopped or gone; 3 waiting on you |
thread merge options
Section titled “thread merge options”| Option | |
|---|---|
--rebase |
Catch up by rebasing onto the target |
--merge-commit |
Catch up by merging the target in |
--into <BRANCH> |
Merge into this branch instead (it becomes the thread’s target) |
--instructions <TEXT> |
Added to the agent’s catch-up message |
--force |
Merge even though its background tasks still run |
--wait |
Wait until it lands, fails or is cancelled (exit 1 unless it lands) |
--cancel |
Cancel the running merge |
--undo |
Undo the latest landing, while the target is still where it left it |
cohort project
Section titled “cohort project”Repositories Cohort manages.
| Command | Does |
|---|---|
project add <PATH> |
Add a repository (options as edit) |
project clone <URL> |
Clone a repository and add it. --into, --name, --login |
project list |
The projects |
project show <PROJECT> |
One project |
project branches <PROJECT> |
Its local branches, and where each is checked out |
project edit <PROJECT> |
Change it (also project set) |
project remove <PROJECT> |
Remove it from Cohort |
project secret set <PROJECT> <NAME> |
Store a secret in the system’s credential store (from --value, else stdin) |
project secret remove <PROJECT> <NAME> |
Remove it (also unset) |
project browse [PATH] |
Folders that can be added as projects, as a remote folder picker sees them |
project edit options
Section titled “project edit options”| Option | |
|---|---|
--name <NAME>, --path <PATH> |
Its name and folder |
--login <HARNESS=LOGIN> |
The default login for one agent (repeatable; an empty LOGIN clears it) |
--env <NAME=VALUE> |
An environment variable for its threads (repeatable; replaces the project’s) |
--git-name, --git-email |
Git identity for its work (unset: your own git config) |
--ssh-key <PATH> |
Private SSH key for git over SSH |
--signing-key <KEY> |
Commit-signing key (a GPG id or an SSH public key path) |
--harness, --model |
Defaults for new threads |
--permission-mode <MODE> |
Access for new threads here: default, accept-edits, plan or full ("": the app-wide default) |
--base-branch <BRANCH> |
Where new branches start |
--check <NAME=COMMAND> |
A check (repeatable; replaces the project’s checks) |
--sis-check <NAME=SUITE[@DIR]> |
A Sisyphus check (repeatable) |
--sisyphus-mcp <true|false> |
Give agents sis mcp (on by default) |
--instructions <TEXT> |
Extra instructions for every agent in this project |
--merge-catch-up <rebase|merge> |
How Merge catches a thread up by default |
--color <COLOR> |
Its colour in the thread list: red, orange, yellow, green, blue, purple, gray ("": none) |
cohort login
Section titled “cohort login”Agent logins on this machine.
| Command | Does |
|---|---|
login list |
Each agent’s logins: name, plan, signed-in state, and the machine’s default (*) |
login add <HARNESS> |
An extra login for claude-code or codex. --name |
login signin <LOGIN> |
Sign the agent CLI in under this login: runs its own login in your terminal (also login login) |
login status [LOGIN] |
What the agent CLI is signed into |
login usage [LOGIN] |
The usage limits the agent CLI last reported. --all: every login in one table |
login rename <LOGIN> <NAME> |
Rename it ("": back to its email) |
login default <LOGIN> |
Make it this machine’s default for its agent |
login connectors <LOGIN> <on|off> |
Claude Code: let this login’s threads load its claude.ai connectors. Off by default |
login remove <LOGIN> |
Remove an extra login (also delete). Its folder stays on disk |
Where a login’s name is shared by two agents, add --agent <HARNESS>.
cohort loop
Section titled “cohort loop”Scheduled agent runs.
| Command | Does |
|---|---|
loop list |
The loops |
loop show <LOOP> |
A loop and its runs |
loop create <NAME> |
Create one: --prompt and --schedule, or --template |
loop edit <LOOP> |
Change one ("" clears project, login, harness, model, effort) |
loop pause <LOOP>, loop resume <LOOP> |
Stop or restart running it on schedule |
loop run <LOOP> |
Run it now |
loop delete <LOOP> |
Delete it |
loop templates |
The built-in templates |
loop review |
Every loop’s runs of the last days. --days (default 7), --unseen |
loop seen [RUNS]… |
Mark runs seen. --all |
loop preview <SCHEDULE> |
A schedule in words and its next 5 runs |
loop check [LOOP] |
Run a check once, as a run would, and show what the run would do. --check, --project, --login, --thread |
create and edit take --schedule (every <N>m|h|d, daily HH:MM, weekdays HH:MM, weekly <mon,tue,..> HH:MM, cron …, at YYYY-MM-DD HH:MM, in <N>m|h|d), --project, --login, --harness, --model, --effort, --permission-mode, --env, --check <COMMAND> (run first: no output means nothing to do), --thread <ID> (continue one thread instead of a new one each run). create also takes --paused.
cohort skill
Section titled “cohort skill”Agent skills.
| Command | Does |
|---|---|
skill list |
Every skill: Cohort’s library, your own folders, each project’s. --source |
skill show <NAME> |
A skill’s SKILL.md. --source |
skill new <NAME> |
A new library skill. -d, --description, --file, --agents |
skill edit <NAME> |
Change a library skill: --file (or $EDITOR), --agents |
skill browse [QUERY] |
Browse skills.sh: what’s trending, or a search. --limit |
skill install <SOURCE> |
Install from owner/repo[/path], a GitHub URL, a git URL or a folder. --name, --agents, --replace, --list |
skill update <NAME> |
Fetch it again from where it came from (replaces local edits) |
skill remove <NAME> |
Remove it from the library and every agent |
cohort remote
Section titled “cohort remote”Reach this machine from your phone and other computers.
| Command | Does |
|---|---|
remote login |
Sign this machine in to your Bussin Bytes account (an email code). --email, --code, --name |
remote logout |
Sign out: the machine leaves the relay |
remote status |
Signed in? Connected to the relay? |
remote name <NAME> |
Rename this machine on the account |
remote devices |
Devices this machine trusts, and the ones waiting for approval |
remote devices approve <DEVICE> |
Approve a waiting device (its key, code or name) |
remote devices deny <DEVICE> |
Refuse it |
remote devices revoke <DEVICE> |
Forget a trusted device and close its connections |
remote pair |
A one-time pairing QR code (10 minutes) for a phone |
remote machines |
The account’s machines |
remote activity |
What remote devices changed on this machine. --limit (default 50) |
cohort daemon
Section titled “cohort daemon”Cohort’s daemon, cohortd, which runs the threads.
| Command | Does |
|---|---|
daemon start, daemon stop, daemon status |
Start, stop or check it |
daemon restart |
Stop it and start the version now on disk. --force: even while threads are in a turn (they pick up again) |
daemon install |
Run it as a service, up at boot without a login (launchd on macOS, systemd on Linux). --system (Linux, root), --no-start, --print, --force |
daemon uninstall |
Remove that service. --system, --no-stop |
For agents
Section titled “For agents”Commands agents run from their own thread; people can too.
| Command | Does |
|---|---|
browser <COMMAND> |
A real Chrome, Chromium or Edge: open, tabs, tab, text, snapshot, click, type, press, eval, screenshot, wait, status, close. --session, --show |
computer <COMMAND> |
See and control the desktop (macOS): screenshot, displays, click, move, drag, scroll, cursor, type, key, apps, focus, release |
secret request <NAME> |
Ask the person for one secret and wait; prints only provided, cancelled or timeout. --reason, --env-file, --project-secret, --timeout |
secret provide <THREAD> <REQUEST_ID> |
Answer a secret request (from --value, else stdin) |
secret cancel <THREAD> <REQUEST_ID> |
Turn it down |
wake <WHEN> <PROMPT>… |
Wake a thread once, later, with a prompt (5m, 2h, 1d, at YYYY-MM-DD HH:MM). --thread |
share [PORT] |
Share a localhost port as a link for your account only; prints the link. --stop, --list |
spinoff <COMMAND> |
Work agents proposed as threads of their own: list, show, start, add, save, dismiss, move |
rule <COMMAND> |
Rules agents offered for a project’s instructions: list, add, dismiss |
feedback [TEXT] |
Tell Cohort’s makers about a Cohort bug, friction or idea. With no text: what was sent from this machine |
mcp |
Cohort’s MCP server, on stdio (MCP tools) |
Everything else
Section titled “Everything else”| Command | Does |
|---|---|
inbox |
Threads that need you |
attach <ID> |
Follow a thread and send each line you type to it |
terminal open [-- COMMAND…] |
Open a terminal and attach to it. --thread, --login, --cwd |
terminal list, terminal kill <ID> |
The terminals, or end one |
harness list |
Agent CLIs Cohort can drive: installed, version, latest, binary |
harness install <HARNESS> |
Install an agent CLI with its vendor’s own installer |
harness update <HARNESS> |
Update an installed agent CLI |
import [SOURCE] |
Bring in another agent app’s repositories and worktrees. With no source: the apps it imports from. --dry-run, --root, --repo, --harness, --login, --no-files |
export |
Write everything Cohort keeps to a new folder as JSON and Markdown. --to <FOLDER> |
storage |
The disk space Cohort’s worktrees take, biggest first |
keep-awake [off|working|always] |
Keep this machine from sleeping. With no level: what it holds now |
settings show |
Cohort’s settings |
settings set <KEY> <VALUE> |
Set one (VALUE is JSON or a plain string) |
doctor |
Check the daemon, socket, git, each agent CLI and each login (Troubleshooting) |
