The Assistant and window context
The built-in Assistant is an ordinary agent that the desktop app creates on its local server, and the assistant panel tells the agent you talk to what is on your screen.

The assistant panel is the column of the Seed app where you chat with an agent beside what you are reading. Two things about it need explaining. One is the agent called Assistant, which appears there without anyone creating it. The other is the window context: what is on your screen, which the panel sends with each message. The panel's layout is described in Agents in the Seed app.

The built-in Assistant

The Assistant is an ordinary agent. The desktop app creates it on the app's own local server when three things are true:

    the local server is in use: the app is attached to a development server, or the Local app environment switch is on;

    a model provider exists there;

    your account has no agent there yet.

What is special about it:

    The app creates it with a fixed key that makes a repeat harmless. Two windows that start at the same moment create one Assistant, not two. An Assistant that was deleted is not created again.

    Its only callable grant is search.

    It has no signing identity, so it cannot publish.

No separate chat system stands behind it. The panel is a client of the app environment like every other screen, and it builds no system prompt of its own.

Window context

Every time you send a message from the panel, the panel adds what is on your screen at that moment: the current URL, the title, the view, the open side panel, the open comment, the focused block and text range, and whether you are in a draft. So when you write "this document", the model knows which document you mean.

    It travels as a context part of the message, separate from the text you typed.

    It is sent with every message you send from the panel. The full session page does not send it.

    It never appears in the transcript. The model receives it inside a <window_context> tag added to that message; see what an agent is told.

    The user bubble shows a Context chip that opens the exact lines the model was given.

The panel's message box has the same / tool commands as the full session page, for people who may edit the agent. See running a tool yourself.

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Comments