Skip to content
HUIAHUB
VideointermediateAgents & automation

Stop Giving Your Agent Tools. Give It a Sandbox - Mikyo King, Arize AI

by AI EngineerUploaded Posted 14:38 long30K views

Why watchFor developers building AI agents, Mikyo King explains code mode, how Phoenix uses sandboxes, the problems it introduces, and measured token and cost savings.

What this video covers

Mikyo King, head of open source at Arize AI, examines an alternative to traditional tool-calling agents: giving an agent a sandbox where it can write and execute code to work with tools.

At 0:36, King introduces the changing boundary between engineers and other users. At 1:52, he turns to the classic tool-calling agent and its limitations. Tool descriptions and raw responses can occupy large portions of the model's context, leaving less room for the task itself.

The 3:03 chapter introduces code mode. Rather than presenting every tool and its output directly to the model, this approach provides an execution environment where the agent can find tools, combine operations in code, and return selected information. At 4:37, King explains why this design can reduce context consumption.

At 6:11, the discussion moves to Arize AI's Phoenix implementation. King covers how Phoenix uses Bash, a Python sandbox, SQL, and UI control within its code-mode approach. This chapter connects the architecture to a specific implementation.

The 8:19 section examines the operational complications. Managing secrets, controlling permissions, maintaining durability, and dealing with double sandboxing introduce costs beyond the model's token usage. At 10:42, King discusses problems that remain unresolved.

Evaluation begins at 11:44 with Harbor. King uses it to examine code mode and reports the results at 12:55: 43% fewer tokens and 31% lower cost. These are results from the evaluation presented in the talk, not guaranteed savings across agent implementations.

The final chapter starts at 13:59 and presents King's takeaways from the architecture, Phoenix implementation, operational concerns, and evaluation.

Written by HuiaHub from the creator's title, description and chapters. All credit for the video goes to AI Engineer.

Key takeaways

  • Tool catalogs and raw responses can consume substantial agent context.
  • Code mode lets agents find and combine tools through code executed in a sandbox.
  • Phoenix uses Bash, a Python sandbox, SQL, and UI control.
  • Secrets, permissions, durability, and double sandboxing introduce operational complications.
  • The Harbor evaluation reports 43% fewer tokens and 31% lower cost.

Chapters

  1. 0:00Intro (opens YouTube at this moment)
  2. 0:36The line between engineers and everyone else is dissolving (opens YouTube at this moment)
  3. 1:52The classic tool-calling agent (opens YouTube at this moment)
  4. 3:03What is code mode? (opens YouTube at this moment)
  5. 4:37Why code mode works (opens YouTube at this moment)
  6. 6:11How Phoenix uses code mode (opens YouTube at this moment)
  7. 8:19The hidden costs of code mode (opens YouTube at this moment)
  8. 10:42Open problems (opens YouTube at this moment)
  9. 11:44Evaluating code mode with Harbor (opens YouTube at this moment)
  10. 12:55Results: 43% fewer tokens, 31% lower cost (opens YouTube at this moment)
  11. 13:59Takeaways (opens YouTube at this moment)

Sources

More videos

All videos