Objectives and long-running work
Give a conversation a durable goal, let the agent keep going across turns, and know how to block, resume or cancel it.
A session objective is a short statement of the outcome you want. While one is open, the gateway starts the next turn for the agent after each finished slice of work, so a multi-step job doesn't stop to wait for you to say "continue".
Try asking
Get the signup tests passing on this branch, then open a pull request. Keep going until they're green.
/objective Migrate the Harbor Studio invoices table to the new schema and verify the row counts.
Open, finish or cancel one
Ordinary chat doesn't open an objective by itself. One opens when:
- the agent sets it because you asked for multi-step work,
- you send
/objective <text>, or - an API client sets it.
| You send | Effect |
|---|---|
/objective <text> | Sets the goal |
/done or /objective done | Marks it done |
/objective cancel or /cancel objective | Drops it |
The text is the goal, not a place for logs or shell output: auto-continue re-sends it each slice.
The badge
The objective shows as a badge at the end of the composer's project and machine row, or a channel conversation's toolbar. It says whether it is open, blocked, done or cancelled. Click it to read the whole goal and, if it's blocked, why.
The gateway's "continue" nudges are written for the agent and stay out of sight: you don't see them in the conversation or in the chat list preview.
How the agent works with it
- It keeps calling tools until the work is done, and completes the objective only when it is fully satisfied.
- When it needs a concrete answer from you, it uses
ask_user. The run pauses as waiting and resumes when you reply, spending nothing meanwhile. See Approvals. - When it needs your attention without a question, it blocks the objective.
- If you abandon the work, it cancels it.
Blocked objectives
A blocked objective stays blocked when you send a message. The agent reopens it only when your message brings what it was waiting for or asks it to go on. An unrelated question gets an answer and the objective stays blocked. The gateway also pauses an objective at its cap of 25 automatic continuations. The note then reads "Ask the agent to go on, or send /objective with the goal, to resume."
Objectives and subagents
With an objective open, nothing is queued while a subagent still owes its report, and none of the 25 continuations are spent. The report starts the next turn when it arrives. Subagents of a cancelled run don't hold the objective. See Subagents.
Pull requests that wait
When the agent opens a pull request, the gateway watches it and wakes the agent when something changes, so it doesn't spend turns polling. See Listening.
Related
- Schedules for work at a given time
- Conversations and context
- Collaboration
Conversations and context
Chats, turns, drafts, reactions, how the context window is managed, compaction, and what stays in the conversation.
Providers, models and Jev
Connect model providers and accounts once per gateway, choose models and effort per chat, set capabilities, and add Tavily search and Jev.