DocsApplication

Machines and sessions

Several agents running at once is only useful if something tells you where to look. In Grid the answer is Home for what waits on you, and the Sessions tab of a task for what is running and why.

Sessions

Each task has a planner session, and the planner starts the agents that do the work. There is no separate page for sessions: they live in the task, under its Sessions tab, and the sessions that need you also show on Home. The tab holds:

PART WHAT IT SHOWS
Terminal The planner session as it runs, in an ordinary terminal, where you can type to the planner.
Session and agents The agents the planner started, each with its brief, its status, how much of its context is used and a link to its log.
Plan progress How many of the plan's items are done, and any item that failed after 2 retries.
Move Sends the task to another of your machines.

An agent can be briefed and not started, working, finished with its outcome written, or stopped. A badge says when a session is near or at its 5-hour limit, and when its context is nearly full.

Pause, resume and stop

Pause lets the planner finish its step before it stops. Resume starts a new planner session from the saved one. Stop ends the agent at once. Each is written to the task history with your name. Only the operator stops, resumes or writes to a session. A member sees the sessions of the project and can ask the operator.

When a planner's context fills, Grid starts a new planner session at the same plan item. The new session reads the task folder and carries on, because the task folder is the whole handoff.

When a session is stuck

A session counts as stuck after the number of minutes you set in Settings, Notifications, without output. It also counts as stuck when a plan item fails twice. Home lists it under Stuck with the reason, for example that a scout fetched the same page 14 times without progress, and with the time of the last change in the task folder.

Machines

A machine is a computer that runs tasks for you, such as your laptop or a build box. Home has a Machines panel with the queue on each. When a machine is offline, the panel shows the tasks that are stuck behind it and offers Move, which sends them to another machine. The session continues from the task folder on the new machine. Machine limits (workers at once, heavy runs at once and the read cap) are set in Settings, Machines. See settings.

Adding a worker machine and moving a task between machines need Grid sign-in, because the machines talk through the sync relay.

Where the work is

The hosted app shows the same Home and the same task pages in a browser, but it runs no agents. A comment, an answer or an approval made there becomes a message that the desktop running the task picks up. The agents always run on a machine of yours.