---
title: 'Live demo: running agent code with Agent Sandboxes in Pydantic Logfire'
description: >-
  Samuel Colvin connects an agent to Agent Sandboxes in Pydantic Logfire, has it
  call your own tools from the code it writes, and traces every run. Thirty
  minutes, with the last part kept for questions.
date: '2026-11-18'
dateDisplay: 'Nov 18, 2026'
duration: 30 min
status: past
tags:
  - Agent Sandboxes
  - Logfire
speakers:
  - Samuel Colvin
  - Laís Carvalho
canonical: 'https://pydantic.dev/events/agent-sandboxes-live-demo'
---

> Markdown version of [Live demo: running agent code with Agent Sandboxes in Pydantic Logfire](https://pydantic.dev/events/agent-sandboxes-live-demo) — the canonical HTML page.
>
> Nov 18, 2026 · 30 min · Speakers: [Samuel Colvin](https://pydantic.dev/authors/samuel-colvin.md), [Laís Carvalho](https://pydantic.dev/authors/lais-carvalho.md)
>
> All events: [/events.md](https://pydantic.dev/events.md) · Site index: [/llms.txt](https://pydantic.dev/llms.txt)

---

# Live demo: running agent code with Agent Sandboxes in Pydantic Logfire

Samuel Colvin connects an agent to Agent Sandboxes in Pydantic Logfire, has it call your own tools from the code it writes, and traces every run. Thirty minutes, with the last part kept for questions.

## What you'll learn

- Why code mode changes what agents need to run
- A live demo: connecting an agent, calling your own tools, and seeing every run traced in Logfire
- What the code your agent writes can and can't reach
- Q&A from the live audience

## About

Agents work better when they write a short script to call your tools. That script still has to run somewhere, and a whole container or VM is a lot of machine for ten lines of code.

Samuel Colvin, creator of Pydantic, gives a live walkthrough of Agent Sandboxes in Pydantic Logfire: a sandbox for the code your agent writes. Not a container or VM. An isolated interpreter written in Rust, powered by Pydantic Monty, our open-source interpreter.

## Who it's for

Engineers and platform teams building agents inside a product, especially agents that call many tools or work with large tool results.

## Try it yourself

Every Logfire plan includes 50,000 free Agent Sandboxes invocations a month. [Sign up](https://pydantic.dev/signup) to follow along.

A 30-minute session, including Q&A.

## Recording

Watch the recording on the event page: https://pydantic.dev/events/agent-sandboxes-live-demo
