WhoBuilt

Give Your Agent a Computer

May 12, 2026· 1 h 9 min· 6.6K views·Watch on YouTube

Speaker

Nico Albanese of Vercel presents an AI Engineer workshop on building agents with the AI SDK, web search, and persistent Vercel Sandboxes.

Build a reusable agent

Albanese describes how AI SDK 6 supports a reusable ToolLoopAgent, keeping the agent definition separate from the route that streams its responses. He builds a small Next.js chat app with GPT-5.4 Mini, then changes its behavior through instructions.

Add tools and show their activity

Albanese adds provider-executed web search to give the agent current information, then uses typed UI messages to render the tool’s activity in the chat. He distinguishes custom tools, provider-defined tools, and tools that run on a provider’s infrastructure.

Use a persistent sandbox as the agent’s computer

Albanese argues that a file system gives an agent a place to keep plans and research, helping it stay on task and leave a record of its work. He demonstrates named Vercel Sandboxes that can be reused across requests, with the file system preserved when an instance is stopped and restarted.

Add memory and reusable scripts

The demo stores memories in a sandbox file and injects them into the agent’s instructions on later runs. Albanese shows early prompting problems, including saving trivial greetings and deleting memories, then refines the instructions and demonstrates a Python weather script the agent can reuse.

Scale the pattern with workflows and subagents

Albanese shows a coding agent built with the same AI SDK, AI Gateway, and durable workflows, where failed steps can retry. He says 23 people at Vercel use it, it processed 3.8 billion tokens in the previous month or two, and it helped produce close to 350 pull requests. A subagent used about 30,000 tokens to return a roughly 500-token summary to the main agent.

Takeaways

  • Keep the agent definition reusable and separate from the code that streams its responses.
  • Show tool activity in the UI so users can tell what the agent is doing.
  • Give agents a persistent file system for plans, research, and memory across sessions.
  • Treat memory instructions as behavior to test: the demo initially saved trivial events and deleted stored memories.
  • Use subagents for independent tasks and return concise summaries to limit work in the main context.

Mentioned in this talk

Search inside this talk

What was claimed 7

Related talks