Skip to main content

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:
The deployment declaration asks for a persistent workspace and uses the user ID as the instance key:
This is the portable contract proposed by the paper. A framework can express the same requirements in its own format.

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 to notes.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.