Shared state — read & write

The UI writes preferences into agent state and reads back the agent's scratch pad. Open the chat sidebar and ask the agent to remember something.

Your preferences

These are written into agent state. The agent reads them on every turn.

Shared state
{
  "name": "",
  "tone": "casual",
  "language": "English",
  "interests": []
}

Agent Scratch pad

The agent writes here via its set_notes tool. The UI re-renders from shared state.

the agent will make observations about you and note them here!