Overview
coop help --all prints this reference in your terminal, followed by a page for each preset
you can run in the current project.
coop: run coding agents in an isolated box for your project.
Usage: coop <command> [<args>...]
THE BOX: an isolated environment for running commands in this project
coop run -- <command> run a command in the box
coop shell open a shell in the box
RUN AGENTS: work with a coding agent or a team of agents
coop <claude|codex|gemini|grok> start Claude, Codex, Gemini, or Grok
coop <preset> run agents together using a preset
coop <target> --peer <target>... start with read-only peer agents
A target is an agent, optionally with a model, effort and account:
codex:gpt-6-astra/xhigh@work
ACCOUNTS, MODELS & PRESETS: choose the accounts and models your agents use
coop login <agent> sign in to an agent
coop credentials [<agent>] show your signed-in accounts
coop models [<agent>] show available models
coop usage [<agent>] show limits and a 30-day API estimate
coop presets [<name>] show your presets
TASKS: each task is a folder in .agent/tasks/
coop tasks ls show tasks grouped by status
coop tasks watch follow task progress
coop tasks add "<title>" add a task
coop tasks decisions show tasks waiting for your decision
coop backlog save ideas for later
coop context [<path>...] show instructions and docs for your files
LOOPS: work through tasks automatically; configure the steps in .agent/loop.yaml
coop loop [<target|preset>] run agents until the queue is done
EVALUATIONS: check whether a model, preset or loop change helped
coop eval run repeatable checks and compare results
FORKS: work in separate project copies, then review and merge the changes
coop fork <name> <target|preset> start an agent in a new fork
coop fork ls show this project's forks
coop fork review <name> review a fork's changes
coop fork merge <name> merge a fork's changes into this branch
coop fork merge --all merge all forks into this branch
coop fork logs [<name>] show loop logs for one or all forks
coop fork rm <name> delete a fork
coop fork stop <name> stop a fork's background loop
coop fork open <name> open a fork in your editor
coop fork path <name> print a fork's directory path
SERVICES: databases and other services defined in .agent/compose.yml
coop init --services choose services to add
coop up start services
coop down stop services
SECURITY & ISOLATION: control access, check isolation, and protect secrets
coop doctor check that the box's isolation works
coop approve review and approve requested project access
coop net manage this project's network access
coop check-secrets check project files for exposed secrets
coop sign sign unpushed commits with your host key
SETUP & MAINTENANCE: set up projects and manage Coop on this machine
coop init set up Coop in this project
coop build rebuild the box
coop update update Coop and the box
coop setup set up optional protection on this machine
coop version show the installed Coop version
INTEGRATIONS: use Coop with other tools and your shell
coop help acp connect Coop to your editor
coop help sessions let other apps start and manage agents
coop help prompt add Coop status to your shell prompt or tmux
coop help completion enable tab completion in Bash or Zsh
Help and examples: coop help <command>
Full reference: coop help --all
Documentation: https://coop.dryga.com/docs.htmlcoop run: run a command in the box
Usage:
coop run [<options>] -- <command> [<args>...]
OPTIONS
--egress <mode> network access: filtered (default), open or offline
--allow-domain <host> allow TLS to this exact host on port 443; repeatable
--egress-rules <path> add the network rules in this file
Put Coop options before --. Everything after it belongs to your command.
Without --, Coop options end where your command starts.
EXAMPLES
coop run -- npm test
coop run --egress open -- curl https://example.com
coop run --egress offline -- git status
NETWORK ACCESS
filtered allow only what approved network rules permit (default)
open allow unrestricted internet access
offline block internet access
Without --egress, the box is filtered unless the project's network
setting or COOP_EGRESS chooses another mode. With --egress open or
offline, the project's network rules do not apply to that run.
RULES FILE
The file uses an egress_rules key, like box.egress_rules in
.agent/project.yaml:
egress_rules:
- to: {domain: "docs.example.com"}
protocol: tls
ports: [443]
Keep the file outside the project, where the agent cannot edit it.
Coop refuses a file inside the project.
For more details see:
coop help netcoop shell: open a shell in the box
Usage:
coop shell [<options>]
OPTIONS
--egress <mode> network access: filtered (default), open or offline
--allow-domain <host> allow TLS to this exact host on port 443; repeatable
--egress-rules <path> add the network rules in this file
EXAMPLES
coop shell
coop shell --egress open
coop shell --egress offline
USING THE SHELL
The shell opens in your project inside the box.
Type exit or press Ctrl-D to return to your host.
NETWORK ACCESS
filtered allow only what approved network rules permit (default)
open allow unrestricted internet access
offline block internet access
Without --egress, the box is filtered unless the project's network
setting or COOP_EGRESS chooses another mode. With --egress open or
offline, the project's network rules do not apply to that run.
For more details see:
coop help netcoop claude: run Claude in the box
Usage:
coop claude[:<model>][/<effort>][@<account>] [<options>] [-- <claude-args>...]
OPTIONS
--peer <target> start a read-only peer agent (no @account); repeatable
-p "<prompt>" run one prompt and exit
-- pass all remaining arguments directly to Claude
NETWORK OPTIONS
--egress <mode> network access: filtered (default), open or offline
--allow-domain <host> allow TLS to this exact host on port 443; repeatable
--egress-rules <path> add the network rules in this file
EXAMPLES
coop claude
coop claude:opus
coop claude:opus/high@work
coop claude -p "fix the failing test"
coop claude -- --help
MODELS AND ACCOUNTS
coop models claude list Claude models
coop credentials claude list Claude accounts
coop login claude sign in to Claude
For a guide to using multiple models and providers together:
coop help presetscoop codex: run Codex in the box
Usage:
coop codex[:<model>][/<effort>][@<account>] [<options>] [-- <codex-args>...]
OPTIONS
--peer <target> start a read-only peer agent (no @account); repeatable
-p "<prompt>" run one prompt and exit
-- pass all remaining arguments directly to Codex
NETWORK OPTIONS
--egress <mode> network access: filtered (default), open or offline
--allow-domain <host> allow TLS to this exact host on port 443; repeatable
--egress-rules <path> add the network rules in this file
EXAMPLES
coop codex
coop codex:gpt-6-astra
coop codex:gpt-6-astra/high@work
coop codex -p "fix the failing test"
coop codex -- --help
MODELS AND ACCOUNTS
coop models codex list Codex models
coop credentials codex list Codex accounts
coop login codex sign in to Codex
For a guide to using multiple models and providers together:
coop help presetscoop gemini: run Gemini in the box
Usage:
coop gemini[:<model>][/<effort>][@<account>] [<options>] [-- <gemini-args>...]
OPTIONS
--peer <target> start a read-only peer agent (no @account); repeatable
-p "<prompt>" run one prompt and exit
-- pass all remaining arguments directly to Gemini
NETWORK OPTIONS
--egress <mode> network access: filtered (default), open or offline
--allow-domain <host> allow TLS to this exact host on port 443; repeatable
--egress-rules <path> add the network rules in this file
EXAMPLES
coop gemini
coop gemini:gemini-3.8-flash
coop gemini:gemini-3.8-flash/high@work
coop gemini -p "fix the failing test"
coop gemini -- --help
MODELS AND ACCOUNTS
coop models gemini list Gemini models
coop credentials gemini list Gemini accounts
coop login gemini sign in to Gemini
For a guide to using multiple models and providers together:
coop help presetscoop grok: run Grok in the box
Usage:
coop grok[:<model>][/<effort>][@<account>] [<options>] [-- <grok-args>...]
OPTIONS
--peer <target> start a read-only peer agent (no @account); repeatable
-p "<prompt>" run one prompt and exit
-- pass all remaining arguments directly to Grok
NETWORK OPTIONS
--egress <mode> network access: filtered (default), open or offline
--allow-domain <host> allow TLS to this exact host on port 443; repeatable
--egress-rules <path> add the network rules in this file
EXAMPLES
coop grok
coop grok:grok-4.5
coop grok:grok-4.5/high@work
coop grok -p "fix the failing test"
coop grok -- --help
MODELS AND ACCOUNTS
coop models grok list Grok models
coop credentials grok list Grok accounts
coop login grok sign in to Grok
For a guide to using multiple models and providers together:
coop help presetscoop login: sign in to an agent
Usage: coop login <agent>[@<account>]
AGENTS
claude codex gemini grok
EXAMPLES
coop login claude
coop login codex@work
ACCOUNTS
Without @account, signs in to the agent's default account.
Use a name such as @work to keep a separate login.
An agent's first account becomes its default, named or not.
Show accounts: coop credentials
Start an agent: coop claudecoop credentials: show and manage your agent accounts
Usage:
coop credentials show all accounts
coop credentials <agent> show one agent's accounts
coop credentials <agent> <account> show an account
coop credentials <agent> <account> default use it by default
coop credentials <agent> <account> rm remove it
USE AN ACCOUNT
coop claude@work
coop login claude@work
The list marks the default account with "default".
Account removal options: coop help credentials rm
Models and automatic rotation: coop help modelscoop credentials <agent> <account> default: choose the default account
Usage: coop credentials <agent> <account> default
New runs try this account first. Add @account to use only one account.
EXAMPLES
coop credentials codex work default
Accounts: coop credentials codexcoop credentials <agent> <account> rm: remove a saved account
Usage: coop credentials <agent> <account> rm [--yes]
OPTIONS
-y, --yes skip confirmation
Removes the saved login and its ordinary repository history.
Account-independent editor conversations are kept.
Choose another default before removing the current default account, unless
it is the last one.
EXAMPLES
coop credentials codex old-work rmcoop credentials <agent> <account>: show an account
Usage: coop credentials <agent> <account>
EXAMPLES
coop credentials codex personal
Use by default: coop help credentials default
Remove account: coop help credentials rmcoop models: list models available to each agent
Usage:
coop models [claude|codex|gemini|grok] [--refresh]
LIST MODELS
coop models all agents
coop models claude Claude only
coop models claude --refresh refresh Claude models list now
USE A MODEL
Put :model after the agent name. This works anywhere Coop accepts a target.
coop claude:opus
coop loop claude:haiku
coop fork risky claude:opus --loop
You can use any model accepted by the agent, even if it is not listed.
SET REASONING EFFORT
Add /effort after the model, or after the agent to keep its default model.
coop codex:gpt-6-astra/high
coop codex/high
Claude, Codex, and Grok pass the level to their own CLI.
Gemini takes low or high as its thinking setting, on models Coop can map.
A thinking setting you pin on one model in your Gemini settings still wins.
CHOOSE AN ACCOUNT
Add @account after the model. A --peer target takes no @account: peers use
the run's accounts.
coop claude:opus@work
coop credentials
FULL SYNTAX
A target is an agent, optionally with a model, effort and account:
coop <agent>:<model>/<effort>@<account>
coop codex:gpt-6-astra/high@personal
SET A DEFAULT MODEL
export COOP_CLAUDE_MODEL=opus
AUTOMATIC ROTATION
Loops and presets can try models in order when one is rate-limited.
Leave off @account to let Coop also try another signed-in account.
Add @account when you want to use only that account.
coop loop claude:opus
coop loop claude:opus@work
For more details see:
coop help presets
coop help loopcoop usage: show limits and a 30-day API estimate
Usage: coop usage [<agent>[@<account>]]
Shows your accounts' limits, then a 30-day estimate (≈$.../30d) of what your
recorded activity would cost at standard API prices, subscription use
included. The estimate reads Coop and native CLI history on this computer
and is not a bill. Name an account to see the history and prices it uses.
EXAMPLES
coop usage
coop usage codex
coop usage codex@work
PROVIDER REPORTS
To see your provider's own API spend beside the estimate, add a billing
source for it to ~/.config/coop/usage-reports.json. Coop reads no billing API
until you do. Keep reporting keys in host environment variables, never in
that file, the project or agents/env.
EXIT STATUS
0 any usable history, quota or configured report; failures stay visible
1 no usable history, quota or configured report
2 invalid selector or arguments
Credentials: coop credentials
Guide: https://coop.dryga.com/usage-reports.htmlcoop presets init: create a preset you can edit
Usage: coop presets init [<name>]
Creates the frontier template in .agent/presets/.
The default name is frontier. Existing presets are left unchanged.
A name uses lowercase letters, digits, '.', '_' and '-', and starts with a
letter or digit. It cannot be a Coop command or an agent name, because
coop <name> runs those instead.
EXAMPLES
coop presets init
coop presets init review
Learn how presets work: coop help presetscoop presets: configure multiple models and providers to work together
Usage:
coop presets list presets
coop presets <name> show a preset
coop presets init [<name>] create a preset (default: frontier)
coop help <name> explain a preset
CREATE A PRESET
coop presets init
coop presets init review
RUN A PRESET
coop frontier start the lead agent interactively
coop loop frontier work through tasks with this preset
coop acp frontier use this preset in your editor
coop fork risky frontier --loop work through tasks in a fork
HOW TO DEFINE A PRESET
A preset is a YAML file that defines:
- One lead agent.
- Optional roles for focused work.
- Optional prompt extensions.
When you run a preset, Coop starts the lead and tells it which roles are
available and when to use them. Each role runs with its configured agent,
model, mode, and prompt. The lead combines their work into the final result.
Syntax:
agent: presets use Coop's standard model, effort, account, and
automatic-rotation syntax. For details, see:
coop help models
mode: controls how a role works
native runs inside the lead agent's session
consult provides read-only advice from another agent
delegate edits files for the lead, one at a time; never commits
when: tells the lead when to use a role
prompt: adds custom instructions to Coop's generated instructions for the
lead or role
Every lead in the preset must use a native role's provider; otherwise
Coop stops before it starts and names the role to change.
Where presets live:
Project .agent/presets/<name>/preset.yaml
Global ~/.config/coop/presets/<name>/preset.yaml
A project preset overrides a global preset with the same name.coop tasks: manage work in .agent/tasks/
Usage: coop tasks [--tasks <path>]... [<command>]
WORK
ls list tasks (also the default)
add "<title>" create a task
claim <id> start working on a task
release <id> return a task to todo with its handoff notes
block <id> ask for a decision before continuing
unblock <id> ["<answer>"] record a decision and return the task to todo
park <id> ["<reason>"] set a todo or blocked task aside in the backlog
done <id> move completed work to the archive
REVIEW
watch watch task progress
decisions [-i] show questions waiting for your answer
lint check task files for missing or inconsistent information
MANAGE
lease <id> reserve a task while an agent works outside a loop
path <id> print a task's folder path
queues print the configured queue paths
rm <id> delete a task
TASK STATES
todo ready for an agent
in progress being worked on
blocked waiting for a decision
done completed and archived
GET STARTED
coop tasks add "Fix login retries"
coop loop claude
A task folder holds its instructions, progress and decisions.
Most commands accept a full task ID or a unique part of it.
FOR AI AGENTS
Create a task with its instructions and checklist:
coop tasks add "Fix login retries" \
--context "An expired session retries forever." \
--acceptance "An expired session returns to sign-in." \
--approach "Stop retrying after an authentication failure." \
--subtask "Test an expired session."
Block a task with a complete decision request:
coop tasks block choose-storage \
--question "Where should uploads be stored?" \
--why "Uploads outgrew one disk, and moving them later means a migration." \
--option "A — Local disk: simplest, tied to one machine." \
--option "B — Object storage: shared across machines." \
--recommendation "B — production runs on more than one machine."
Get its folder without parsing a listing: coop tasks path <id>
Before releasing a task, update its state.md with a complete handoff.
PROJECTS
Coop includes queues listed in .agent/project.yaml.
Use --tasks <path> to select a queue; repeat it to include several.
A queue must be inside the project; only a fork loop takes one outside it.
With subprojects, coop tasks add uses the subproject you run it in.
Elsewhere, choose one with --project <name>.
Command options: coop help tasks <command>coop tasks ls: list tasks and their progress
Usage: coop tasks ls [--tasks <path>]... [<options>]
OPTIONS
--todo show tasks ready to start
--in-progress show tasks being worked on
--blocked show tasks waiting for a decision
--done show completed tasks
--all show the full completed archive
Combine state options to show more than one state.
By default, completed tasks are limited to the five most recent.
EXAMPLES
coop tasks ls --in-progress --blocked
coop tasks ls --done --all
coop tasks ls --tasks web/.agent/taskscoop tasks add: create a task for you or an agent
Usage: coop tasks add "<title>" [<options>]
OPTIONS
--project <name> choose root or a subproject, as listed in project.yaml
or by its last folder name; inside a subproject's
folder, add uses that subproject
--tasks <path> choose one task queue
--context <text> explain the problem and why it matters
--acceptance <text> describe what must be true when finished
--approach <text> describe how to tackle the work
--subtask <text> add a checklist item; repeat for more items
New tasks use the task.md Template in the selected queue's README.md,
including its checklist. Each subproject uses its own README.md.
--subtask replaces the <…> step placeholder and keeps the default checklist
items. Without the text options, Coop creates a template for you to fill in.
If you use any text option, include --context, --acceptance and --approach.
Repeat a text option to add another paragraph.
The first task in a new task queue sets the queue up: its README.md, and
.gitignore lines that keep its task folders out of Git.
EXAMPLES
coop tasks add "Fix login retries"
coop tasks add --project web "Fix login retries"
coop tasks add "Fix login retries" \
--context "An expired session retries forever." \
--acceptance "An expired session returns to sign-in." \
--approach "Stop retrying after an authentication failure." \
--subtask "Test an expired session."coop tasks claim: take responsibility for a task
Usage: coop tasks claim <id> [--tasks <path>]... [<options>]
OPTIONS
--as <label> name the person or agent working on it
--pid <n> bind the claim to an existing process
--force take over a claim held by another live process
Moves a todo task to in progress. An agent's claim normally follows its
process. A claim made at a terminal stays until you release or finish it.
Taking over with --force ends the other process's lease, and that
process can no longer finish, block or release the task.
A blocked task must return to todo first, through coop tasks unblock, even
when its decision is answered. Completed tasks stay in the archive.
EXAMPLES
coop tasks claim login-retries
coop tasks claim login-retries --as codex --pid 812
Hand it back: coop tasks release <id>coop tasks release: return a task to the queue for another agent
Usage: coop tasks release <id> [--tasks <path>]...
Before releasing, update state.md with the work completed, checks run and
anything another agent needs to continue.
Returns the task to todo and removes your claim. Progress and handoff notes
are kept. A task being worked on by another process or assigned to a fork
cannot be released.
EXAMPLES
coop tasks release login-retriescoop tasks lease: reserve a task while work is running
Usage: coop tasks lease <id> [--tasks <path>]... [<options>] [-- <command>...]
OPTIONS
--as <label> name the working agent
--pid <n> hold the reservation while this process is alive
-- run a command and release the reservation when it exits
Claim the task first. Other loops skip it while this reservation is held.
Without a command, Coop follows your agent's process or the task's claimant.
With no process to follow, it waits until the task moves or you press Ctrl-C.
EXAMPLES
coop tasks lease login-retries -- make check
coop tasks lease login-retries --as codex --pid 812coop tasks block: pause a task that needs a decision
Usage: coop tasks block <id> [--tasks <path>]... [<options>]
OPTIONS
--question <text> ask the question that needs an answer, on one line
--why <text> say what happened and why the task cannot go on
--option <text> describe a choice and its tradeoff; repeat for
more choices
--recommendation <text> recommend a choice and explain why
Without these options, creates decision.md for you to fill in.
If you use any of them, include a question, why, at least one option, and a
recommendation. Existing answers and decision notes are never overwritten.
FOR AI AGENTS
coop tasks block choose-storage \
--question "Where should uploads be stored?" \
--why "Uploads outgrew one disk, and moving them later means a migration." \
--option "A — Local disk: simplest, tied to one machine." \
--option "B — Object storage: shared across machines." \
--recommendation "B — production runs on more than one machine."
ANSWER A QUESTION
coop tasks unblock choose-storage "Use object storage."coop tasks unblock: record a decision and return a task to todo
Usage: coop tasks unblock <id> ["<answer>"] [--tasks <path>]...
Provide your answer here, or fill in Resolution in decision.md first.
Coop keeps the decision with the task so the next agent can continue.
Without --tasks, it also looks in the queues your forks work from.
In a fork's own checkout, it answers the task in the fork's project.
EXAMPLES
coop tasks unblock login-retries "Return to sign-in after the first failure."
Questions waiting for you: coop tasks decisions -icoop tasks park: set a todo or blocked task aside in the backlog
Usage: coop tasks park <id> ["<reason>"] [--tasks <path>]...
Moves the task to the backlog with its folder and log, so nothing picks it
up or returns it to todo on its own. Your reason is saved in the task's log.
For a blocked task this answers its decision with "not now"; the decision
stays open. Release a task in progress before you park it.
coop backlog promote brings it back, blocked while its decision is open.
EXAMPLES
coop tasks park login-retries "After the release."
coop tasks park choose-storage "Not this quarter."
Questions waiting for you: coop tasks decisions -icoop tasks done: move completed work to the archive
Usage: coop tasks done <id> [--tasks <path>]... [<options>]
OPTIONS
--force close it even though its checklist is unfinished
--from-fork complete a fork's task whose commit is already on this branch
Finish the checks and commit the task's work first.
The task must have at least one checklist item, with every item checked.
Its state.md must not keep the template's <…> text in Done so far or Traps.
Leave required checks open if they failed, could not run, or have not run.
Coop moves the task to done and removes its temporary files.
The task's instructions, progress and saved evidence stay in the archive.
--force is for a person at a terminal who has checked the work. Coop leaves
the checklist as it is and notes what was open in the task's log.
Agents never use it.
A fork's task completes when you merge the fork. If you brought the commit
with its Coop-Task trailer to this branch yourself, --from-fork completes
the task, notes that in its log and keeps the stopped fork. A later merge
skips that commit if you brought it over unchanged. It also needs a person
at a terminal.
EXAMPLES
coop tasks done login-retriescoop tasks path: print a task's folder path
Usage: coop tasks path <id> [--tasks <path>]...
EXAMPLES
coop tasks path login-retriescoop tasks queues: print task queue paths
Usage: coop tasks queues [--tasks <path>]...
Prints one absolute path per line. By default, includes the project's queues.
EXAMPLES
coop tasks queuescoop tasks decisions: show questions waiting for your answer
Usage: coop tasks decisions [--tasks <path>]... [-i]
OPTIONS
-i, --interactive read and answer each question interactively
Forks ready to merge follow the questions, with the commands that review
and merge them. With -i, :r reviews a fork and :m merges it.
EXAMPLES
coop tasks decisions
coop tasks decisions -i
coop tasks unblock login-retries "Return to sign-in after the first failure."coop tasks lint: check task files for missing or inconsistent information
Usage: coop tasks lint [--tasks <path>]...
Checks the task folders, frontmatter, required sections, decisions and waits.
It also names tasks that still hold the template's <…> text. The loop still
works such a task: its agent fills the text in first. A finished task is
named when its state.md keeps template text.
Returns a nonzero exit status when it finds a problem.
EXAMPLES
coop tasks lintcoop tasks rm: permanently delete task folders
Usage: coop tasks rm <id> [--tasks <path>]... [--yes]
coop tasks rm --all-done [--tasks <path>]... [--yes]
OPTIONS
--all-done delete every completed task in the selected queues
-y, --yes skip confirmation
Deletes task instructions, progress and saved evidence. Git commits remain.
To archive finished work, use coop tasks done instead.
EXAMPLES
coop tasks rm abandoned-task
coop tasks rm --all-donecoop tasks watch: watch task progress
Usage: coop tasks watch [--tasks <path>]... [--json]
OPTIONS
--json print one snapshot for scripts
Problems that need attention show too.
The live view closes when the queue is done and its activity has stopped.
Press Ctrl-C to leave the view. In a pipe, Coop prints one static snapshot.
EXAMPLES
coop tasks watch
coop tasks watch --tasks web/.agent/taskscoop backlog: save ideas that need more planning
Usage: coop backlog [--tasks <path>]... [<command>]
COMMANDS
ls list ideas (also the default)
add "<title>" save an idea
promote <id> move an idea to the task queue
rm <id> delete an idea
Backlog items live in .agent/tasks/xx_backlog/.
Agents leave them alone until you promote them.
Put work that is ready to start directly in coop tasks.
EXAMPLES
coop backlog add "Redesign account permissions"
coop backlog promote account-permissions
Command options: coop help backlog <command>coop backlog ls: list saved ideas
Usage: coop backlog ls [--tasks <path>]...
By default, includes every configured project queue.
Repeat --tasks to select several queues.
EXAMPLES
coop backlog ls --tasks web/.agent/taskscoop backlog add: save an idea for later
Usage: coop backlog add "<title>" [<options>]
OPTIONS
--tasks <path> choose one task queue
--context <text> explain the problem and why it matters
--acceptance <text> describe the intended result
--approach <text> describe a possible approach
--subtask <text> add a checklist item; repeat for more items
Without the text options, Coop creates a template for you to fill in.
If you use any text option, include --context, --acceptance and --approach.
Repeat a text option to add another paragraph.
EXAMPLES
coop backlog add "Redesign account permissions"
coop backlog add "Redesign account permissions" --tasks web/.agent/tasks
Ready to start: coop backlog promote <id>coop backlog promote: move an idea to the task queue
Usage: coop backlog promote <id> [--tasks <path>]...
Fill in its problem, completion criteria and approach before promoting it.
The task becomes todo, where an agent or loop can pick it up.
A parked task with an open decision comes back blocked, with its question.
EXAMPLES
coop backlog promote account-permissionscoop backlog rm: permanently delete a saved idea
Usage: coop backlog rm <id> [--tasks <path>]... [--yes]
OPTIONS
-y, --yes skip confirmation
Deletes the idea's folder, including its notes and saved files.
EXAMPLES
coop backlog rm account-permissionscoop context: show the instructions relevant to your work
Usage: coop context [<path>...] [<options>]
OPTIONS
--changed use files changed in Git
--task <id> use paths listed in a task's frontmatter
--tasks <path> choose a queue for --task; repeat for more queues
--rendered print the selected files' contents
--json print the selection for scripts
Coop includes shared agent instructions and any matching context routes.
Use paths relative to the repository root, even inside a subproject.
Inside a subproject, its path and its own AGENTS.md are included.
You can combine explicit paths, --changed and --task.
Choose either --rendered or --json for the output format.
EXAMPLES
coop context web/src/app.ts
coop context --changed
coop context --task login-retries --rendered
CONFIGURE ROUTES: .agent/project.yaml
context:
routes:
- paths: ["web/**"]
include: [.agent/kb/web.md]
This includes .agent/kb/web.md when the selected work is under web/.coop loop: let agents work through your task queue
Usage: coop loop [<target|preset>] [<options>]
HOW IT WORKS
A fresh agent works on each task, then a final review checks the work and
can reopen tasks. Coop continues until it passes or needs your decision.
Tasks run in folder order; priority: high or priority: low in a task.md's
frontmatter moves it ahead or back.
OPTIONS
--tasks <path> choose a task queue; repeat for more queues
--peer <target> start a read-only peer agent (no @account); repeatable
--review-task <id> add a completed task with a valid completion record
to the final review; repeat to add more
--max-tasks <n> pause after N tasks finish or become blocked
--preflight before starting, resolve answered decisions and
release stale claims
--no-preflight skip that preparation
--no-mcp run without configured MCP servers
--debug-on-fail open a box shell after a failure; retry when you exit
--egress <mode> network access: filtered (default), open or offline
--allow-domain <host> allow TLS to this exact host on port 443; repeatable
--egress-rules <path> add the network rules in this file
--max-tasks pauses before the final review. The limit must be positive.
--debug-on-fail opens a shell only when running in a terminal.
EXAMPLES
coop loop claude
coop loop frontier
coop loop codex --max-tasks 1
STOP AND CONTINUE
Press Ctrl-C to finish the current attempt and its required review, then stop.
Press it again to stop immediately. Run the same command to continue.
Without a terminal, SIGINT does the same. SIGTERM and SIGHUP stop immediately.
For a background fork loop: coop fork stop <name>
CONFIGURE STEPS: .agent/loop.yaml
preflight optional preparation before starting
work the agent that works on each task
between optional review after each task
signoff final review of completed work
verify optional checks after the final review
Set work.agent to choose the default when no target or preset is given.
Review steps can each use their own agent and prompt. Signoff prompts add to
Coop's built-in review. Between and verify prompts define those checks and
are required when enabled.
Changes to this file apply when you restart the loop.
Step options:
preflight enabled, prompt
work agent, command
between enabled, agent, prompt, writes
signoff agent, prompt, rounds, writes
verify enabled, agent, prompt, writes
agent: accepts a list of targets or presets. See coop help models.
writes: tasks keeps reviews read-only; repo lets reviewers edit source files.
mcp: false disables MCP servers for every step.
NETWORK ACCESS
The run's approved access covers its work and review agents for the entire
loop. See coop help net for rules and approvals.
EXIT STATUS
0 review and enabled final checks passed, or the task limit was reached
1 the run failed or could not start, final checks failed, or work remains,
including work another agent holds
2 rejected input, such as an unknown option, target or preset
3 stopped for a decision
130 interrupted before the final verdictcoop eval: check whether a model, preset or loop change helped
Usage: coop eval <command>
Run repeatable tasks, grade the work independently, then compare before and
after. Real runs use your provider account and may spend credits. A preview
spends none.
TRY IT
1. Preview three small coding tasks; nothing launches:
coop eval run core codex --timeout 35m --dry-run
2. Run them with your signed-in account and built Coop box:
coop eval run core codex --timeout 35m
3. Read the result, including any errors:
coop eval inspect
RUN AND COMPARE
coop eval run <suite> <target|preset>... run a suite; --timeout for real runs
coop eval runs find runs and their outcomes
coop eval inspect [<run-id>] read a run's results and causes
coop eval compare <before-id> <after-id> compare two runs without spending
Change your model, preset, loop recipe or Coop build, run the same suite
again, then use the two IDs from coop eval runs. Errors are not model-quality
failures; inspect their causes before rerunning. Incomplete grading has no
definitive winner.
CHOOSE A SUITE
coop eval ls list the shipped starter suites
coop eval init <dir> create an editable custom suite
core Three single-agent tasks. Use provider targets, not presets.
queue A real loop over ten tasks that takes hours. Use targets or presets.
For options and prerequisites see:
coop help eval run
Guide: https://coop.dryga.com/docs.html#evalscoop eval run: preview or run a repeatable evaluation
Usage: coop eval run <suite> <target|preset>... --timeout <duration> [<options>]
Each target (<agent>[:<model>][/<effort>][@<account>]) or preset is a
separate configuration, not a fallback. Presets need a loop suite such as
queue. Real runs use your accounts and may spend credits. Dry runs are free.
OPTIONS
--timeout <duration> time limit for the whole run; required for a real run
--dry-run print the plan without launching containers or providers
--repeat <n> trials per case and configuration (default: 1)
--jobs <n> concurrent trials (default: 1)
--loop-config <path> use this loop recipe instead of the loop suite's recipe
EXAMPLES
coop eval run core codex --timeout 35m --dry-run
coop eval run core codex:gpt-6.1-sol codex:gpt-6.1-sol/xhigh --timeout 70m
coop eval run queue frontier --timeout 2h
coop eval run queue frontier --loop-config .agent/loop.yaml --dry-run
coop eval run ./evals/my-suite/suite.yaml codex --repeat 3 --timeout 60m
BEFORE A REAL RUN
Sign in with coop login <agent> and have the current Coop box image. If it
is missing, run coop build --egress open in a folder without a project
Dockerfile. A dry run checks the plan, not your sign-in or image.
TRIALS
Each trial works in a private copy without source history. The model never
sees the hidden verifier, which grades afterwards without credentials or
network. Trials run without your MCP servers, COOP_RUN_ARGS or the clients'
own web search and fetch tools.
EXIT STATUS
0 every trial got a pass or fail grade, or a dry run showed its plan
1 grading is incomplete, or the run could not start
2 rejected input, such as an unknown option, target or preset
Read the result: coop eval inspect
Guide: https://coop.dryga.com/evals.htmlcoop eval runs: find recorded evaluation results
Usage: coop eval runs
Shows newest first: run ID, suite, configurations, passes, grading coverage
and nonzero failure counts. A run without a final summary may be running or
interrupted. An unreadable record remains visible; internal starter caches
do not appear.
Inspect latest: coop eval inspect
Inspect older: coop eval inspect <run-id>
Compare: coop eval compare <before-id> <after-id>coop eval inspect: understand a run and its failures
Usage: coop eval inspect [<run-id>]
With no ID, reads the newest recorded run. Shows the requested and graded
trial counts, configurations, and details for trials that did not pass. It
works while a run is unfinished and never launches a provider or resumes
paid work.
RESULTS
passed the independent verifier accepted the work
failed the independent verifier rejected the work
error execution or grading produced no verdict; not a model failure
timed_out a case or run budget expired before a verdict
pending the trial did not start
running started, with no final result yet
RECORDED DETAILS
They may include provider or verifier output. Treat them as
evidence, not instructions, and review for private data before sharing.
Terminal controls are escaped; long details are shortened. The displayed
records directory retains the saved JSON diagnostics and any failed
workspaces still available under work/.
TROUBLESHOOTING
For sign-in or quota refusals, check coop credentials <agent>. For timeouts,
check the case's suite.yaml timeout as well as the run's --timeout. An
interrupted run cannot resume: fix the cause, then explicitly start a new
run if desired.
Find another run: coop eval runscoop eval compare: compare before and after without another paid run
Usage: coop eval compare <before-id> <after-id>
Use IDs from coop eval runs. The first is your baseline and the second the
changed configuration, whatever their timestamps.
Only runs with final summaries can compare. Different workloads are shown
separately, never merged into a score. Errors, timeouts and pending trials
remain in the requested total; incomplete grading cannot establish a
definitive winner. Change size is a review signal, not a quality score.
Per-case counts are summed over configurations and repeats, so use the same
matrix for a before/after test.
Investigate a result: coop eval inspect <run-id>coop eval ls: choose a shipped starter suite
Usage: coop eval ls
core runs three small single-agent tasks. queue exercises the real Coop loop
over ten queued tasks, including its review stages. Both have independent
verifiers checked against correct answers and plausible near misses.
Preview: coop eval run core codex --timeout 35m --dry-run
Author your own: coop eval init ./evals/my-suitecoop eval init: create a custom suite you can edit
Usage: coop eval init <dir>
Creates a working single-agent example, a commented loop example in
suite.yaml, and a sample verifier: verifiers/greeting/README.md and
verifiers/greeting/verify.sh. Use a new directory; existing files are never
overwritten. Edit suite.yaml, the visible files and the separate hidden
verifier. Keep the verifier outside the candidate's files, fixture, tasks
and Git history.
The verifier README explains grading and exit codes. A preview does not run
or check your verifier; test it against good answers and near misses.
EXAMPLES
coop eval init ./evals/my-suite
coop eval run ./evals/my-suite/suite.yaml codex --timeout 12m --dry-runcoop fork: let an agent work in a separate copy of your project
Usage: coop fork <name> [<target|preset>] [<options>]
coop fork <command> [<args>...]
START WORK
coop fork myfork claude create a fork and start Claude
coop fork myfork continue an existing fork's session
coop fork myfork frontier use a preset
coop fork myfork claude -d work through tasks in the background
REVIEW AND MERGE
ls show forks and their progress
review <name> review a fork's changes
merge <name> merge its commits into your current branch
merge --all merge eligible forks one at a time
MANAGE
logs [<name>] show one fork's logs, or all forks
stop <name> stop a fork's background loop
open <name> open a fork in your editor
path <name> print its folder path
rm <name> delete a fork
SESSION OPTIONS
--isolated create independent Git storage and require reviewed
publication
-c, --continue continue the last session (default when reopening)
--new start a new conversation in the existing fork
--fresh delete the fork and its service data, then recreate it
-f, --force with --fresh, stop active work and discard unmerged changes
-y, --yes with --fresh, skip confirmation
An isolated fork stays that way when reopened, looped or used over ACP.
Existing forks are not converted, and isolation is off by default.
Review it with coop fork review; --force cannot bypass its policy.
NETWORK OPTIONS
--egress <mode> network access: filtered (default), open or offline
--allow-domain <host> allow TLS to this exact host on port 443; repeatable
--egress-rules <path> add the network rules in this file
LOOP OPTIONS
--loop work through the project's task queue
-d, --detach run the loop in the background (implies --loop)
-t, --tasks <path> choose a task queue, even one outside the project;
repeat for more queues
--peer <target> start a read-only peer agent (no @account); repeatable
--stop-after-review stop once a task passes review, ready to merge
Each fork receives one project task at a time. Its task is completed in the
project queue when you merge the reviewed work. Stopping keeps it resumable.
EDITOR INTEGRATION
coop fork <name> acp use an existing fork from an ACP editor
Model and account syntax: coop help models
Command options: coop help fork <command>coop fork <name> acp: use an existing fork from an ACP editor
Usage: coop fork <name> acp [<target>] [<options>]
OPTIONS
--peer <target> start a read-only peer agent (no @account); repeatable
--egress <mode> network access: filtered (default), open or offline
--allow-domain <host> allow TLS to this exact host on port 443; repeatable
--egress-rules <path> add the network rules in this file
Without a target, Coop starts the fork's agent with its default model and
account; choose another model or effort in your editor.
Open the parent project in your editor; Coop maps it to the fork. The fork,
provider and account stay fixed.
EXAMPLES
coop fork myfork acp
coop fork myfork acp claude:opus
Create the fork first: coop fork myfork claude
Editor setup: coop help acpcoop fork ls: show forks and their progress
Usage: coop fork ls [--json]
OPTIONS
--json print workspace details for scripts
Shows each fork's agent, activity, tasks, changes and reported cost.
Isolated forks are marked.
EXAMPLES
coop fork lscoop fork review: inspect a fork before merging
Usage: coop fork review <name> [<options>]
OPTIONS
--stat show a change summary instead of the full diff
--tool open the diff with your global Git diff tool
--open open the fork in your editor
--gate test the fork after rebasing a temporary copy onto your current branch
Shows commits, the agent's task notes and changes that need your attention.
Counts and diffs include committed changes only. Uncommitted fork work gets
a warning; open the fork, commit intended files, then review again.
--gate leaves the fork and your working tree unchanged. It cannot be used
with --open.
Coop reviews an isolated fork's saved private commits even when your main
checkout has uncommitted changes. --open and COOP_REVIEW_CMD use a saved
private preview, separate from the agent's workspace.
Preview edits are never merged. Coop prints the preview folders; delete
them when you finish.
EXAMPLES
coop fork review myfork
coop fork review myfork --stat --gate
Merge after review: coop fork merge myforkcoop fork merge: bring a fork's commits into your current branch
Usage: coop fork merge <name> [<options>]
coop fork merge --all [<options>]
OPTIONS
--all merge eligible forks one at a time
-f, --force allow changes otherwise blocked by the merge policy
-y, --yes confirm merging and removal without prompting
Review the diff first. Your working tree must be clean and the fork stopped.
Coop rebases the commits, runs configured project checks and merges the
result. --force does not bypass those checks.
For isolated forks, --force cannot bypass risky-file or nested-Git policy.
Coop saves the exact changes to merge before updating your checkout. If the
merge is interrupted, keep its journal and saved private files, then rerun
merge. If the checkout is only partly updated or changed by another process,
Coop stops for recovery. Do not reset, stash, delete an index.lock you
cannot identify, or recreate or remove the fork.
After merging, Coop asks before deleting a clean fork. With --all, one prompt
covers the batch and removal. Forks with uncommitted work are kept.
Removing a fork also removes its service containers and Docker volumes.
EXAMPLES
coop fork review myfork
coop fork merge myfork
coop fork merge --allcoop fork rm: delete a fork and its local work
Usage: coop fork rm <name> [<options>]
OPTIONS
-f, --force stop active work and discard uncommitted or unmerged changes
-y, --yes skip confirmation
Deleting a fork removes its files and local session data, plus its service
containers and Docker volumes.
Assigned tasks return to the project queue. Proposed tasks that have not been
imported are discarded; tasks already imported into the project are kept.
EXAMPLES
coop fork rm myfork
coop fork rm myfork --forcecoop fork stop: stop a fork's background loop
Usage: coop fork stop <name>
Stops the worker and its running boxes. The fork's work and assigned task stay
available so you can continue it later.
EXAMPLES
coop fork stop myfork
coop fork myfork claude --loopcoop fork logs: show a fork's loop output
Usage: coop fork logs [<name>] [--follow]
OPTIONS
-f, --follow keep showing new output
Without a name, includes all forks and labels each line with its fork name.
Press Ctrl-C to leave the log view; the loop keeps running.
EXAMPLES
coop fork logs myfork
coop fork logs myfork --follow
coop fork logs --followcoop fork path: print a fork's folder path
Usage: coop fork path <name>
EXAMPLES
coop fork path myforkcoop fork open: open a fork in your editor
Usage: coop fork open <name>
Uses COOP_EDITOR, your global Git editor or an available editor.
EXAMPLES
coop fork open myforkcoop up: start this project's services
Usage:
coop up
Starts the services in .agent/compose.yml, or the file box.compose names in
.agent/project.yaml, and waits until they are ready. Agents reach each
service by its Compose name. Running it again is safe. Requires Docker with
Compose support.
APPROVALS
Coop asks at a terminal before a service may read a hidden secret file
through a read-only bind, or use an external or custom-named Docker volume.
Declining stops startup. Until you approve, the file stays hidden.
Automatic, filtered and non-terminal starts refuse such volumes even after
approval. An approval covers this checkout's exact Compose file and the
service's local image, so any change asks again.
Add services: coop init --services
Stop services: coop down
Guide: https://coop.dryga.com/box.html#project-servicescoop down: stop this project's services
Usage: coop down [--delete-volumes] [--yes]
Stops and removes this project's Compose containers and networks.
Uses .agent/compose.yml, or the configured Compose path.
OPTIONS
--delete-volumes also permanently delete service volumes and their data
-y, --yes skip the volume-deletion confirmation
Coop names the volumes before asking; press Enter to cancel.
Without a terminal, deletion requires --yes.
External volumes and files mounted from the project are kept.
Start again: coop upcoop doctor: check that the box's isolation works
Usage:
coop doctor
Runs checks in a temporary project and reports what passed, failed, or
could not be checked. Your files and credentials are not the test data.
Checks secret hiding, host access, privileges, offline networking,
task access, credential isolation, settings permissions, and fork handoff.
Uses this project's ordinary built image, or the shared image if available.
If neither exists, uses Alpine and names the checks it cannot perform.
Run coop build --egress open, then coop doctor to test the Coop image.
Filtered images are separate and are verified when a filtered run starts.
Requires Git and a running container runtime. Honors COOP_RUNTIME.
Lists abandoned boxes but does not remove them.coop approve: review and approve this project's requested access
Usage: coop approve [--case-exposure]
Shows what .agent/project.yaml asks for, compared with your last approval.
Confirm the changes to allow new runs to use them.
If nothing changed, there is nothing to approve.
If a filtered box is stuck because the project's services have no rules, it
lists the services and their ports and offers to add and approve the rules.
OPTIONS
--case-exposure additionally review file exposure with mount protection
Use it only when a launch refuses hidden files that stay readable under
another letter case. Approval covers those paths and their future contents
for agents and services; new paths need approval again.
Runs with eBPF protection keep those files hidden without this approval.
Running boxes keep the rules they started with. A running editor session
(coop acp) that has network rules moves to a new box with these rules
between prompts.
Run this command in your terminal.
See current access: coop netcoop net: control network access and see what happened
Usage: coop net [<command>]
ACCESS: control what new runs can reach
coop net show this project's current access
coop approve review and approve requested access
coop net check <url> check access
coop net forget withdraw this project's network approval
RUNS: inspect recorded network activity
coop net runs show recent runs
coop net inspect [<run>] show connections and blocked access
coop net blocked <host> find blocked connections and how to allow them
coop net watch [<run>] follow network activity
coop net export <run> export a shareable record
REPAIR: normally automatic
coop net setup prepare or recheck this host now
coop net recover [<run>] retry interrupted cleanup now
HOW TO ADD A NETWORK RULE
1. Add it under box.egress_rules in .agent/project.yaml:
box:
egress: filtered
egress_rules:
- to: {domain: "docs.example.com"}
protocol: tls
ports: [443]
2. Review and approve the changes:
coop approve
Command options: coop help net <command>coop net runs: show recorded network runs
Usage: coop net runs [--all | --all-projects] [--json]
OPTIONS
--all show every run for this project
--all-projects show every project's runs on this host
--json print the records for scripts
By default, shows this project's 25 newest runs.
Use a run's ID or a unique prefix with other network commands.
EXAMPLES
coop net runs
coop net runs --all-projects
Inspect a run: coop net inspect e644f07acoop net inspect: show a run's connections and blocked traffic
Usage: coop net inspect [<run>] [--json]
OPTIONS
--json print the full technical record
Without a run ID, shows this project's newest recorded run.
EXAMPLES
coop net inspect
coop net inspect e644f07acoop net check: check whether network rules allow a connection
Usage: coop net check <url-or-host> [<options>]
coop net check <ip> --run <run> --protocol <tcp|udp> --port <n>
coop net check <ip> --run <run> --icmp
OPTIONS
--run <run> use that run's rules
--port <n> choose a port; defaults to the URL's port or 443
--protocol <tcp|udp> choose the connection type for an IP address
--icmp check an ICMP echo request to an IP address
--json print the answer for scripts
Without --run, checks this project's approved access for a new run.
Hostnames use TLS. IP addresses require a recorded run and connection type.
EXAMPLES
coop net check https://example.com
coop net check example.com --run e644f07a
EXIT STATUS
0 the rules allow the connection
1 the check could not finish
2 invalid arguments
3 the rules block the connection, or new runs need approval firstcoop net blocked: find blocked connections and how to allow them
Usage: coop net blocked <host> [--run <run>] [--json]
OPTIONS
--run <run> look only in this run
--json print the evidence for scripts
Without --run, finds the newest matching block in this project's runs.
Shows a rule you can copy when the record proves the remote address and port.
A blocked DNS lookup records no port, so it shows TLS on port 443 as the
likely fix.
An exact event ID can replace the host when --run is supplied.
EXAMPLES
coop net blocked registry.npmjs.org
coop net blocked registry.npmjs.org --run e644f07a
EXIT STATUS
0 a recorded block was found
1 no recorded block matched, or the search could not finish
2 invalid argumentscoop net watch: follow a run's network activity
Usage: coop net watch [<run>] [--json]
OPTIONS
--json stream one JSON record per update
Without an ID, selects this project's only unfinished run.
Shows new connections, blocks and problems, then the final report.
Press Ctrl-C to stop watching. The run continues.
EXAMPLES
coop net watch e644f07acoop net export: export a run's network record
Usage: coop net export <run> [--include-addresses]
OPTIONS
--include-addresses include remote hostnames and IP addresses
Writes JSON to stdout. The run must have a final record.
EXAMPLES
coop net export e644f07a > network-record.jsoncoop net forget: withdraw this project's network approval
Usage: coop net forget [--project <path>]
Use this when you no longer trust an approval saved on this machine.
To change network rules, edit .agent/project.yaml and run coop approve.
New runs wait for approval again. The project file is not changed.
Existing boxes, recorded runs, and this host's network setup are kept.
Run this command in your terminal.
OPTIONS
--project <path> choose another project by its folder, even a deleted one
Restore approval:
coop approvecoop net setup: prepare this host for filtered networking
Usage: coop net setup
Prepares the network images and checks that allowed access works and
blocked access stays blocked.
Coop does this automatically when a filtered run needs it.
Run it yourself to check or prepare the host ahead of time.
Requires Docker to be running.coop net recover: clean up interrupted network runs
Usage: coop net recover [<run>]
Removes containers and temporary volumes left by an interrupted run.
Without an ID, checks every run waiting for cleanup on this host and
reports the ones it cleaned up or could not.
Running boxes and resources Coop cannot safely identify are left alone.
Coop normally retries this cleanup automatically.
EXAMPLES
coop net recover e644f07acoop check-secrets: check project files for exposed secrets
Usage: coop check-secrets [--include-ignored]
Checks tracked and untracked files, plus Coop's task files and notes.
Possible secrets are reported by file and line; their values stay hidden.
Returns a nonzero status if possible secrets remain or the scan cannot finish.
OPTIONS
--include-ignored also check other Git-ignored files the box can read
FALSE POSITIVES
Add the entries printed by a scan to .coopsecretsignore in your project root.
Each entry needs a reason. You can edit many entries together in that file.
IDs stay the same when line numbers change. A changed value or file path,
or a removed entry, is checked again.
.coopsecretsignore skips exact findings in this check.
.coopignore hides files from the box.coop sign: sign this branch's unpushed commits with your host key
Usage:
coop sign [--from <ref>]
OPTIONS
--from <ref> sign commits after this Git reference
EXAMPLES
coop sign
coop sign --from origin/main
HOW IT WORKS
By default, Coop signs commits after the branch's upstream reference.
Without an upstream, use --from with the last commit you pushed.
Signing changes the IDs of the first unsigned commit and the commits
after it. It never rewrites a commit the upstream already has, and it
preserves the committed files and your working changes. It stops at a
merge among the commits it would rewrite; a signed merge below them
stays as it is.
Coop uses your host's Git signing settings.
AUTOMATIC SIGNING
When commit.gpgsign is enabled, Coop signs commits after ordinary agent runs
and loop cycles. Fork commits are signed when you merge the fork.coop init: set up Coop in this project
Usage: coop init [<options>]
You can run coop init again at any time.
Coop keeps your existing project files and adds anything missing.
COOP SETS UP
- Shared instructions and skills for all your AI agents.
- A file-based task system. Agents can pick up work, save progress, and hand
it to another agent or session.
- Commit checks. Coop verifies formatting for the languages it detects or
you choose.
- Project settings for sandboxed runs, including filtered internet access.
- An optional starter Docker Compose file for supporting services; you can
extend it with anything else your project needs.
OPTIONS
--agents <list> set up Claude, Codex, Gemini, Grok, or all
default: agents you are signed in to
--services [<list>] add Postgres, Redis, or both
--stack asdf install tools from .tool-versions in the Coop box
Without options, Coop detects what it can and asks before initializing Git,
adding formatting checks, or adding Postgres or Redis.coop build: build the Coop box image
Usage:
coop build [--egress <mode>]
Builds the shared image, or this project's image when it has a box
Dockerfile (.agent/Dockerfile, or box.dockerfile in .agent/project.yaml).
Run it after changing that Dockerfile or .tool-versions. Requires a running
container runtime. Your home folder is never a project, so from there use
--egress open, which builds the shared image.
OPTIONS
--egress <mode> prepare the image for filtered, open or offline networking
default: this project's network mode
Running this approves the build files for filtered launches. If only Coop's
image changed, those same files rebuild by themselves; if you change them,
build again. The build itself uses ordinary networking in every mode: review
the Dockerfile and the files it copies first. New runs use the rebuilt image,
and editor sessions on the replaced image restart.
Fresh rebuild: coop update --box-only
Guide: https://coop.dryga.com/box.html#builds-and-network-modescoop update: update Coop and rebuild the box image
Usage:
coop update [--self-only | --box-only | --check]
Updates the Coop binary when a newer release is available, then prepares
the image for this project's effective network mode using the installed
version's image definitions. Filtered projects rebuild the files you
approved with coop build; new or changed build files wait for coop build.
Open and offline images refresh base-image components. Agent CLIs and
editor adapters remain pinned. Downloaded releases are checked before
replacing the binary. Project builds use ordinary networking. From your
home folder, which is never a project, it prepares the shared image.
OPTIONS
--self-only update only the Coop binary; no container runtime needed
--box-only prepare only this project's effective box image
--check report available updates and local build records; change nothing
Choose at most one option. Only building the box needs a running
container runtime.
HOW IT WORKS
Development builds and binaries newer than the latest release are kept.
A binary that cannot be replaced is an error; update it with the tool
that installed it. The box rebuild can still finish independently.
New runs use the rebuilt image. Supervised editor sessions that run the
replaced image restart and reconnect. Other running boxes use the old
image until their next start. An unchanged image restarts nothing.
Coop checks for new releases once a day during terminal use.
Set COOP_NO_UPDATE_CHECK=1 to turn off those notices.coop setup: set up optional protection on this machine
Usage: coop setup apparmor
apparmor confine the filesystem protection helper with AppArmor
coop doctor says when this machine would gain from one of them.
See: coop help setup apparmorcoop setup apparmor: confine the filesystem protection helper
Usage: coop setup apparmor
On Linux with AppArmor and Docker's systemd cgroup driver, the helper
behind kernel filesystem protection asks systemd for its cgroups over
the system bus. Docker's default AppArmor profile blocks the bus, so the
helper runs without AppArmor until Coop's own profile is loaded. That
profile keeps Docker's default limits, such as denied mounts, and
allows only the two systemd calls the helper makes. AppArmor cannot
check their arguments, so it does not limit what the helper could do
through systemd.
This writes the profile to /etc/apparmor.d and loads it now, through
Docker, without sudo. It loads again on every boot. Run it again when
coop doctor asks, such as after an update changes the profile.
Requires Docker to be running.
Example:
coop setup apparmorcoop version: print the installed Coop version
Usage:
coop version
ALIASES
coop -v
coop --versioncoop acp: connect your editor to an agent running in a Coop box
Usage:
coop acp [<target|preset>] [<options>]
EDITOR SETUP
Set the editor's agent command to coop and its arguments to:
["acp"]
["acp", "claude"]
["acp", "codex:gpt-6-astra/high@personal"]
["acp", "frontier"]
Your editor must support ACP, the Agent Client Protocol.
Without an agent or preset, Coop starts the first signed-in provider in
Claude, Codex, Gemini, Grok order, using its default account. This does not
pin the choice: use the editor's selectors after connecting.
No providers signed in? Run coop login <agent>, then reconnect your editor.
OPTIONS
--peer <target> start a read-only peer agent (no @account); repeatable
--egress <mode> network access: filtered (default), open or offline
--allow-domain <host> allow TLS to this exact host on port 443; repeatable
--egress-rules <path> add the network rules in this file
SWITCHING AGENTS
Use the editor's Provider and Account controls to change who runs the session.
A preset chooses its agents automatically. Select None in Preset to choose
a provider or account yourself.
Switching providers carries the conversation into a new agent session.
Account changes keep the conversation with the same provider.
With filtered networking, only compatible providers and presets are offered.
Claude, Codex, Gemini and Grok support it. Gemini needs a Google sign-in or
a Gemini API key, not Vertex AI. Switching never changes this session's
network rules.
PROJECT BOX
With filtered networking the editor connects even when this project's box
cannot start yet. Messages are held, the thread says why, and the session
moves onto the box once it is ready. Approved build files rebuild by
themselves. New or changed ones need coop build, or /build in the thread,
which shows where Coop saved them and gives a code that builds exactly
those files. Unapproved network access needs coop approve, and a broken
.agent/project.yaml needs fixing. A box that exits as it starts, or does
not answer within a minute, is tried again every 30 seconds; the agent log
says why.
TROUBLESHOOTING
Set COOP_ACP_TRACE=1 in your editor's agent environment to record a trace.
Trace files are saved as ~/.local/state/coop/acp-trace-<pid>.log and may
contain your prompts and file contents.
COOP_ACP_WARM=0 disables background boxes kept ready for provider switching.
COOP_ACP_CARRY_TOKENS sets the conversation size carried between providers.
After replacing the Coop binary, send SIGHUP to the specific ACP process
to reload it. SIGINT and SIGTERM stop it.
For more details see:
coop help models
coop help presets
coop help netcoop sessions: let other applications start and manage agents
Usage: coop sessions <command>
COMMANDS
connect connect this machine to a controller
doctor check whether the local service is ready
check see whether this build can use the session data as it is
quiescence inspect queued and running work before a restart
compact back up session data and reduce its disk usage
CONNECT THIS MACHINE
coop sessions connect --controller https://controller.example \
--token-file /path/to/token
The controller supplies each session's code, context, and execution settings.
Leave this command running; it starts the local service automatically.
Command options: coop help sessions <command>coop sessions doctor: check the local session service
Usage:
coop sessions doctor [<options>]
The command succeeds when the service responds and is ready for sessions.
OPTIONS
--socket <path> check this Unix socket
--json print the result as JSON
EXAMPLES
coop sessions doctor
coop sessions doctor --socket /path/to/control.sockcoop sessions check: see whether this build can use the session data as it is
Usage:
coop sessions check [--state <path>]
OPTIONS
--state <path> check this session-data directory
EXAMPLES
coop sessions check
coop sessions check --state /var/lib/coop/sessions
BEFORE UPGRADING A WORKER
Stop the session service, then run this command with the new coop build.
It reads the session data and changes nothing.
EXIT STATUS
0 this build uses the data as it is, or a started service holds none yet
1 the check could not finish: the service is still running, there is no
session data at the path, or some data can't be read
2 invalid arguments
3 this build would convert the data; older builds can't open it afterwards
4 this build can't use the data: it is too old or too new
DEFAULT SESSION DATA
~/.local/state/coop/sessionscoop sessions quiescence: inspect queued and running work before a restart
Usage:
coop sessions quiescence [--state <path>] [--json]
Before restarting a worker, drain new submissions at the controller, then
run this to see whether queued or running work remains. It reads the
running service's data, including its write-ahead log, and never migrates
it. Zero counts still need a graceful service shutdown to finish cleanup.
OPTIONS
--state <path> read this session-data directory
--json print the snapshot as JSON
EXIT STATUS
0 no queued or running work remains in the session store
1 the store is unavailable, damaged or uses an unsupported schema
2 invalid arguments
3 work remains
DEFAULT SESSION DATA
~/.local/state/coop/sessions
Guide: https://coop.dryga.com/session-api.html#restart-and-recoverycoop sessions compact: back up session data and reduce its disk usage
Usage:
coop sessions compact --backup <path> [--state <path>]
OPTIONS
--backup <path> save a verified database backup to a new file
--state <path> use this session-data directory
EXAMPLES
coop sessions compact --backup /path/to/session-backup.sqlite
BEFORE RUNNING
Stop the session service.
Choose a new backup file outside the session-data directory.
Its parent directory must already exist.
The backup contains private session data. Keep it protected.
DEFAULT SESSION DATA
~/.local/state/coop/sessionscoop sessions connect: run a worker for a remote controller
Usage: coop sessions connect --controller <https-url> [<options>]
OPTIONS
--controller <https-url> controller to trust and connect to
--token-file <path> enrollment token (only needed on first connection)
--state <path> private worker data directory
--ca-file <path> CA bundle for a controller's private TLS certificate
DEFAULT STORAGE
~/.local/state/coop/sessions
RUNNING
The controller supplies each session's code, context, and execution settings.
No local policy file or worker configuration file is needed.
Coop exchanges the enrollment token for worker credentials it can renew,
then removes the token.
Leave this command running. Connection failures are retried automatically.
Press Ctrl-C to disconnect and stop the local service it started.
On restart, use the same controller and state directory; omit --token-file.coop prompt: print a short project status for your shell or tmux
Usage:
coop prompt
OUTPUT
Shows task counts, forks, running fork loops, and an unsigned-commit marker.
Empty counts are omitted. When there is nothing to show, it prints nothing.
EXAMPLE OUTPUT
2 todo · 1 in progress · 1 blocked · 3 forks (2 running) · unsigned commit
TMUX
Add this to ~/.tmux.conf:
set -g status-right '#(cd "#{pane_current_path}" && coop prompt)'
SHELL PROMPTS
Run coop prompt from your prompt's custom-command configuration.coop completion: print shell integration for Bash or Zsh
Usage:
coop completion <bash|zsh>
BASH
Save the completion script:
mkdir -p ~/.config/coop
coop completion bash > ~/.config/coop/completion.bash
Add this to ~/.bashrc:
source ~/.config/coop/completion.bash
ZSH
Save the integration script:
mkdir -p ~/.config/coop
coop completion zsh > ~/.config/coop/completion.zsh
Add this after compinit in ~/.zshrc:
source ~/.config/coop/completion.zsh
This also stops Zsh from suggesting corrections to Coop arguments such
as claude and codex.
WHAT IT COMPLETES
Commands, options, agents, models, accounts, presets, forks, and task IDs.