← All news

FDE Times: smolagents course — keep the code-agent idea, treat generated code as untrusted

A 5 November FDE Times review of Hugging Face’s ~54-minute DeepLearning.AI smolagents course (Thomas Wolf, Aymeric Roucher) says CodeAgent can bundle many tool calls into one snippet—but Hugging Face’s own docs warn that by default that code runs in your environment. For FDEs, Secure Code Execution and remote sandboxes matter more than the deep-research demo.

DeepLearning.AI’s Building Code Agents with Hugging Face smolagents (~54 minutes, intermediate) is taught by Hugging Face’s Thomas Wolf and Aymeric Roucher. FDE Times (5 November 2026) contrasts JSON tool-calling—one model round-trip per tool—with a CodeAgent that writes a short Python loop to fetch, compare and return an answer in one pass.

The course’s highest-value lesson for production work is Secure Code Execution. Hugging Face’s documentation states that CodeAgent runs LLM-generated code in your own environment by default, and that local Python sandboxes are not enough isolation when prompt injection can arrive via email, web pages or internal docs. Remote execution (E2B, Docker, Modal, Blaxel and similar) is the path to real fences; multi-agent demos often need the whole system inside the sandbox, not a notebook pattern.

Why it matters for FDEs: ask the customer’s security team which containers or sandbox services they allow before you pick a model. A small repo that compares CodeAgent vs ToolCallingAgent on one task, runs in Docker, and shows an eval table beats a course certificate when you claim you can take agents into production safely.

Source: fdetimes.net