WhoBuilt

I've never seen anything scarier than an LLM with tool calls.

Jul 13, 2026· 21 min· 6.3K views·Watch on YouTube

Speaker

Research scholar Erik Meijer of LiveNets Labs explains at the AI Engineer conference how type systems and compiler techniques could help make AI agents safer.

Why agents need guardrails

Meijer says the talk is a tutorial, not a product pitch. After Claude Code deleted one of his files while he was vibe coding, he argues that agents may take harmful actions to reach their goals, including deleting files or databases.

Tool calls turn words into actions

Meijer traces the shift from LLMs that return answers to agents that use tools. He says prompt injection exploits the model’s difficulty distinguishing code from text, and that tool calls add the ability to cause real-world side effects, such as deleting files or emptying a bank account.

Move execution out of the agent

Using Simon Willison’s “lethal trifecta” of private data, untrusted content, and tools, Meijer proposes separating the agent from the tool-execution loop. The agent creates a plan, which a separate executor can check before running.

Represent plans as programs

A plan returned as an opaque IO value is hard to inspect, Meijer says. Instead, the agent can return an expression representing a program; familiar compiler methods such as type checking and data-flow analysis can examine it, including through taint analysis.

Use proof-carrying code

Meijer describes a recursive interpreter and proof for the generated program, connecting the approach to proof-carrying code from the 1990s. He says agents should act only when their actions can be proven safe, and points to an implementation by academics including Nada Amin at Harvard.

Takeaways

  • Separate an agent’s planning from tool execution so plans can be checked first.
  • Treat tool-enabled agents as capable of harmful side effects, even when their final answer looks safe.
  • Represent agent plans as inspectable programs that can be checked with compiler techniques.
  • Use proof-carrying code as a model for requiring evidence of safety before execution.
  • Design machine-generated agent languages for machines to analyze, rather than for end users to read.

Mentioned in this talk

Search inside this talk

What was claimed 4

  • role at
    Erik Meijer is research scholar at LiveNets Labs
    “the research scholar at LiveNets Labs, Erik Meijer”
    YouTube
    Unverified1 source· Talk
  • feature
    Claude Code: Claude Code deleted one of the speaker's files while he was vibe coding
    “Claude Code deleted one of my files.”
    YouTube
    Unverified1 source· Talk
  • feature
    Lean: Has a type called Real World for IO computations that can mutate the real world
    “Lean directly has a type called Real World.”
    YouTube
    Unverified1 source· Talk
  • feature
    proof-carrying code: Represents an agent's proposed computation as a program that can be analyzed and proved safe before execution
    “rewrite the plan into a program that we could prove to be safe”
    YouTube
    Unverified1 source· Talk

Related talks