Intermediate1h16m

Building Coding Agents with Tool Execution

Instructors: Tereza Tizkova, Francesco Zuppichini

E2B logo

Earn an accomplishment with PRO · Updated Jan 10, 2026

  • Intermediate
  • 1h16m
  • 9 Video Lessons
  • 5 Code Examples
  • 1 Graded Assignment PRO
  • Earn an accomplishment with PRO
  • Updated Jan 10, 2026
  • Instructors: Tereza Tizkova, Francesco Zuppichini
  • E2BE2B
  • Learn more aboutMembership PRO Plan

What you'll learn

  • Build coding agents that write and execute Python code, manage files, and handle errors through iterative feedback loops.

  • Run agent code safely in isolated E2B cloud sandboxes and understand the tradeoffs between local, containerized, and cloud execution environments.

  • Create specialized agents: a data analyst that explores datasets and visualizes insights, and a full-stack agent that builds complete web applications.

Course recap

PRO

This course, built in partnership with E2B, teaches how to build coding agents from scratch that generate and execute code safely in cloud sandbox environments. Unlike agents with predefined tool sets, coding agents can write arbitrary Python code, giving them access to every built-in function and installable package. The course progresses from a simple agent with code execution and file system tools to a full-stack agent that builds complete Next.js web applications inside sandboxes, with runtime context summarization to manage long conversations.

Concept map

Concepts in Building Coding Agents with Tool Execution and the courses that connect to themBuilding Coding Agents with Tool ExecutionBuilding Coding Agents wi…AI AgentsSandbox environmentsContext engineeringTool executionRuntime summarizationBuilding Code Agents with Hugging Face smolagentsBuilding Code Agents with…Claude Code: A Highly Agentic Coding AssistantClaude Code: A Highly Age…Building AI Browser AgentsAI Agents for Image and Video GenerationAI Agents for Image and V…Agent Memory: Building Memory-Aware AgentsAgent Memory: Building Me…Context EngineeringConcepts in Building Coding Agents with Tool Execution and the courses that connect to themBuilding Coding Agents with Tool ExecutionBuilding Coding…AI AgentsSandbox environmentsSandbox environ…Context engineeringContext enginee…Tool executionRuntime summarizationRuntime summari…

Key concepts

  • AI AgentsCoding agents defined as LLMs calling tools in a loop with context, writing and executing arbitrary code
  • Sandbox environmentsMicroVM-based isolated environments (like AWS Firecracker) that provide kernel-level isolation for untrusted code execution
  • Context engineeringKeeping context small while providing relevant information; includes tool output truncation, pagination, and runtime summarization
  • Tool executionStructured JSON schemas that describe tools, with execute functions that run code and return results
  • Runtime summarizationCompressing 70% of oldest messages using an LLM to maintain context quality in long sessions

Lesson highlights

  1. 1.Introduction — What coding agents are and why sandbox execution matters
  2. 2.Inside a Coding Agent — LLM selection, context management, tool design, and execution environments
  3. 3.Your First Coding Agent — Building an agent with code execution, file read/write tools, and multi-step loops
  4. 4.Tool Execution Environments — Local vs Docker vs sandbox (microVM) trade-offs
  5. 5.Running Code in the Cloud — E2B sandbox APIs for creating, managing, and interacting with remote environments
  6. 6.Data Analyst Agent — CSV exploration and visualization agent with Gradio UI
  7. 7.Full Stack Agent — Multi-file editing agent that builds Next.js web apps with runtime summarization
  8. 8.Hands-On Project Introduction — Building and deploying your own sandbox agent
  9. 9.Conclusion — Course recap

About this course

Join our new short course, Building Coding Agents with Tool Execution! Learn from Tereza Tizkova, Growth, and Francesco Zuppichini, Machine Learning Engineer at E2B.

In this course, you’ll build agents that write and execute code to accomplish tasks, going far beyond predefined function calls. Instead of limiting your agent to a fixed set of tools, you’ll let it access Python’s entire ecosystem, and write multi-step code sequences. Plus, you’ll learn to run this generated code safely in sandboxed cloud environments, protecting your systems from potentially harmful operations.

In detail, you’ll:

  • Understand coding agents and build your first one – Learn what makes coding agents different from other AI agents, then build an agent that executes Python code, manages files, and handles errors through feedback loops.
  • Choose and configure safe execution environments – Compare local execution, containers, and sandboxed microVMs, then run your agent’s code in secure E2B cloud environments with built-in isolation and resource controls.
  • Build a data analyst agent – Create an agent that explores CSV datasets, generates summaries and visualizations with Pandas, and answers questions through a Gradio chat interface.
  • Deploy a full-stack coding agent – Build an agent that edits multiple files and generates complete Next.js web applications in a sandbox, while managing long contexts through runtime summarization.

Start building agents that can code their way through complex tasks safely and efficiently.

Who should join?

AI builders familiar with Python and LLMs who want to build agents that can write and execute code. Basic understanding of AI agents is helpful but not required.

Course Outline

9 Lessons・5 Code Examples
Unlock certificates

Elevate your learning experience with Pro

Upgrade to Pro and gain unlimited accomplishments on your resume

Learn More

Instructors

Tereza Tizkova

Tereza Tizkova

Francesco Zuppichini

Francesco Zuppichini

Machine Learning Engineer at E2B

Additional learning features, such as quizzes and projects, are included with DeepLearning.AI Pro. Explore it today

Want to learn more about Generative AI?

Keep learning with updates on curated AI news, courses, and events, as well as Andrew’s thoughts from DeepLearning.AI!