Agent rules

A project can have many agents. Agent rules are one rulebook that applies to every agent in the project: which tasks they pick up, how much they take on at once, what they may change, and what they must hand in.

Find them in Project → Settings → Agent work. Anyone who can manage the project's settings can change them; agents can read them but never change them. Rules apply everywhere agents work: MCP tools, the REST API and the always-on agent.

Agent rules, the working agreement (instructions sent with every task) included, are on the Team plan. On Free, they're read-only and agents work to the defaults, with no working agreement; rules saved on Team (for example during a trial) stay stored and apply again when the workspace upgrades.

Pause all agents

The switch at the top of Agent work stops every agent in the project from picking up new work. Tasks already being worked on carry on until they're submitted or given back. Switch it on again and agents are told about waiting work straight away.

Which tasks agents pick up

A task is offered to agents only when it's switched to Ready for agents and passes every rule below.

Rule What it does
Sprint Any ready task, Only tasks in the active sprint, or The active sprint and the backlog. The last one keeps agents off work planned for future sprints
Statuses agents pick from Only tasks in these statuses, for example To Do but not Backlog. Empty means any open status. If you use auto-start, include its status here
Parent tasks For tasks with sub-tasks: Offer once all sub-tasks are done (the default, so the parent becomes a final integrate-and-verify step), Never (parents stay with people), or Any time
Auto-start Offer a task to its agent as soon as it's assigned to one and moves to the chosen status. See Start agents automatically
Task types Only these types, for example Bug and Chore. Empty means all types
Priorities Only these priorities. Empty means all
Never offer tasks labelled Tasks with any of these labels stay with people, for example security or needs-design
Largest task Tasks estimated above this many points aren't offered. Tasks without an estimate are
Attempts per task After this many agent attempts, the task stops being offered. The default is 3
Wait for blockers On by default: a task blocked by another task that isn't done waits until the blocker is done

When a ready task is held back, its contract panel says why, for example: Ready, but this project's agent rules hold it back: It isn't in the active sprint. Marking such a task ready still works, and says the same. Agents hear it too: claim_next_task with a project lists the ready tasks held back there and why, and the task's contract shows it under Held back by project rules. Over the REST API, GET agent/queue/?project=KEY returns them as held_back, and the contract has rule_blockers.

Parent tasks and sub-tasks

Each sub-task is its own piece of work: it needs its own acceptance criteria and its own Ready for agents switch, and agents claim, submit and get reviewed on it separately. Several agents can work through a parent's sub-tasks in parallel.

How much at once

Limits shared by all agents in the project. Leave a field empty for no limit.

Rule What it does
Tasks agents may hold at the same time Once agents hold this many tasks in the project, no agent takes another until one is submitted or given back
Runs agents may start per 24 hours A daily budget for agent work in the project, counted over the last 24 hours

Each agent can also hold only as many tasks at once as the workspace allows (one by default).

What agents may change

Switches on top of each agent's project role and its own limits (Agents → agent → What this agent may do). An agent can do something only if every one of these allows it. People are never limited by these switches.

Switch When off
Create tasks Agents can't create tasks or sub-tasks in this project
Mark tasks ready for agents Only people decide what goes into the agent queue. Agents can still edit contracts of tasks that are already ready
Reassign tasks to others Agents can take a task or give it back, but can't assign it to someone else
Comment on tasks Agents can't comment. Questions to people still reach their inbox through ask_human
Write Docs pages Agents can't create, edit, move or delete Docs pages in this project. They can still read them
Plan sprints Agents can't create, edit or delete sprints, or move tasks in and out of them. They can still see sprints

Agents never start or complete sprints, whatever these switches say. And when the Sprint rule limits agents to sprint work, an agent can't add tasks to the active sprint (that would let it choose its own work); it plans into a sprint that hasn't started instead.

Finishing work

Rule What it does
Outputs every run must attach Added to each task's own expected outputs. For example, require a pull request (pr) and a test report on every run. An agent can't submit until they're attached
Working agreement Instructions sent to agents with every task, up to 5,000 characters. For example: Run the test suite before submitting. Keep pull requests under 400 lines. Never change database migrations.

Agents connected through the MCP server see the working agreement as a Project rules section in each task they claim. Over the REST API, it's in the contract as project_rules.

Rules about one codebase (branch names, test commands, files never to touch) belong in that repo's instructions file instead. See Instructions file for your agent.

Automations and agents

Rules under Project → Automations run on changes agents make, just as they do for people. For example: when an agent moves a task to In Review, notify its reporter. A rule makes its changes in the name of whoever triggered it, and the activity log marks them via automation with the rule's name.

Project managers set these rules, so the agent switches above don't limit them. A rule can reassign a task that an agent moved, even if that agent may not reassign tasks itself. Agents never receive notifications from rules.

Over the API

GET /api/w/<WORKSPACE>/projects/<PROJECT_KEY>/agent-rules/
PUT /api/w/<WORKSPACE>/projects/<PROJECT_KEY>/agent-rules/

PUT takes any subset of the fields and leaves the rest unchanged:

{
  "sprint_scope": "active_sprint",
  "priorities": ["urgent", "high"],
  "max_estimate_points": 8,
  "max_active_tasks": 3,
  "can_mark_ready": false,
  "can_plan_sprints": true,
  "required_outputs": ["pr"],
  "instructions": "Run the test suite before submitting."
}

sprint_scope is any, active_sprint or active_or_backlog. parent_tasks is after_subtasks, never or any_time. statuses, task_types and excluded_labels take ids from this project (open statuses only). Number fields take null for no limit. The reply also lists capacity_blockers, the reasons agents can't take anything right now (for example, a pause).