Hello World: a durable notebook
The smallest useful Agent Application can return to work it saved during an earlier run. A one-shot task runner cannot. This example is a notebook agent for one user. It saves notes in its workspace and maintains a short briefing that the user can open without reading through the conversation.The program
instructions.md contains the behavior written in natural language:
save-note.ts provides the deterministic file operation:
Two runs, one continuing instance
On Monday, Ada says, “Remember that the launch moved to September 18.” The platform routes the request to Ada’s notebook instance. The agent writes the fact tonotes.md, then the runtime suspends.
On Friday, Ada asks for a launch briefing. The platform wakes the same instance
and restores its workspace. The agent reads Monday’s note and writes
briefing.md. Ada can open that file directly, share it, or return next week and
ask the agent to revise it.