Long-running work

Give multi-step work clear goals and finish criteria so it stays on track

For multi-step jobs, state the outcome, constraints and definition of done, and stay in one chat so context carries through. In Work and Code, /goal turns that outcome into a Goal that ZeroTwo keeps pursuing across turns until it is finished, paused or cleared.

Start a goal

Type /goal followed by the objective; the objective doubles as the first prompt and as the completion criteria. The command also accepts edit <text>, pause, resume and clear, and on its own it shows the current goal. If the target is fuzzy, draft a plan first with Plan mode (/plan-mode) and turn it into measurable criteria; Plan and Goal cannot be active in the same turn. An objective can be up to 4,000 characters. /goal and the Edit goal dialog have no budget field; if you want a token cap, ask for it in a normal prompt and ZeroTwo sets one only when you explicitly request it as it creates the goal.

Define what done means

Let ZeroTwo verify itself by including the outcome (a result, not an activity), constraints (tools, boundaries, things to avoid) and verification (tests or measurements).

Port this repo to TypeScript: strict mode, no explicit any, full test suite green.

Steer a running goal

A banner above the composer shows the goal and its state, and offers Edit goal, Pause goal and Resume goal; /goal clear removes it. The states are active, paused, stalled, usage limited, limited by budget and complete. Send a follow-up in the same chat to adjust direction. Queued messages show a Steer action that injects the message into the running turn at its next step, and a side chat (/side) lets you ask about progress without interrupting the run.

Keep it running

A goal is stored on the server, so closing the browser does not stop a cloud goal. A goal started on your computer stays tied to that desktop: it keeps its place while the machine is offline and continues once the app is back, so pause it if it should not resume when you return. In the desktop app, Prevent sleep while running under Settings > General keeps your Mac awake.

A Work thread keeps its files when you send a message right after a Stop, a quick question or an interrupted run, so a project does not split into separate copies. A run no longer stops at a fixed number of steps. It goes on until it finishes or you press Stop, except that a Work run stops after four hours and gets a few final steps to finish its answer. A blocked goal says why in its banner, and a goal that hits a temporary error retries with growing delays instead of stalling at once.

Goals add no access. The permission picker still applies on the desktop, and Approve for me (shown as Auto-review in Settings) works within it; see permissions and approvals.

Run goals in parallel

Each chat has its own context and goal. Run several, but not on the same files, and keep related chats in a project. On the desktop, worktrees give parallel tasks separate checkouts. Turn on notifications to hear when a task needs input.

Projects and chats, Goal mode and prompting, Git worktrees, Scheduled tasks and Sandbox and permissions.