Threads persist context across multiple instructions to the same computer. The AI remembers what it did previously so you can build on prior steps.Threads are created automatically when you call the Completions endpoint. The thread_id is returned in the response.
from orgo import Computercomputer = Computer()# Step 1result = computer.prompt("Open Firefox and go to github.com")# Step 2 — AI remembers it already opened Firefoxresult2 = computer.prompt("Search for 'orgo'", thread_id=result["thread_id"])# Step 3result3 = computer.prompt("Click the first result", thread_id=result["thread_id"])