aide_observer_start
Starts or reuses the observer and verifies that no other agent session is open in the project, enforcing one active session before work begins.
Instructions
Start the observer (or reuse the running one) and check that no other session is open in this project. The observer is mandatory: it is the single source of truth for which agent session works in a project, and a project has at most one open session. Call it at every session start, after reporting session_started through aide_observer_event on its own and reading that reply; call it once more when a report replies observer not running. It takes no arguments. One observer serves every project on this machine: it tries AIDE_OBSERVER_PORT first if set, then 24680 to 24689 in order, takes the first free port and records it. The first line of the reply starts with exactly one of: Observer running at <link> or Observer already running at <link> (go on), Observer not replaced: … (an older observer still serves at the link; go on), REOPENED: … (this conversation had ended earlier and nothing newer has worked the project since, so it is open again; the link follows on the next line; tell the user and go on), STOPPED: … (this conversation had ended and cannot reopen, because a newer session has worked the project since or another session ended it with the user's approval; a hard stop no approval lifts: tell the user to continue in a new session, offer no end-session and do not call start again), HALT: … (another session of this project is open — each line names its id, or claude:<id> for a Claude session that never reported, whether it is working or waiting on the user, how long it has been quiet with maybe stuck past 15 minutes, its last activity, pipeline and phase; this is a hard stop: tell the user, and proceed only after they approve ending that session with aide_observer_end_session and a new start passes, or they close this one), or BLOCKED: … (the observer could not start on any port, every port tried is named, or this ended conversation could not be reopened, with the reason; a hard stop: tell the user and do nothing further). A session whose transcript ends in its own closing record counts as closed: it never halts the start, and start marks it ended. Give the user the link, which includes its access token.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "aide_observer_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||