Code calling is all you need
Summary
Argues that using code generated by LLMs to call external tools (code calling) is more efficient and capable than traditional JSON-based function calling, but requires secure sandboxing. The author is building a framework for this approach.
Similar Articles
What is Codemode
Armin Ronacher explains Codemode, a new Pi 1.0 feature that lets LLMs orchestrate complex tool calls from JavaScript running in a sandboxed WASM/QuickJS harness environment, revisiting his earlier "code is all you need" argument for agent tool design.
Quoting Jeremy Morrell
Jeremy Morrell suggests that LLMs and modern sandbox primitives create opportunities for extensible software on the web, allowing users to safely extend applications and gain enhanced capabilities.
Mistral Patent for "Code implemented tool calls"
Mistral has been granted a patent for a method that uses an LLM to generate code blocks encapsulating tool calls, executing them in a sandbox and pausing for client-side results when needed.
Your LLM shouldn’t be your coding-agent workflow
Argues that LLMs should be used for reasoning within coding-agent workflows, while deterministic infrastructure handles queues, state, retries, and recovery, so the process doesn't break when usage limits hit.
Giving LLMs exec() power is a security nightmare. I built a open-source AST-based guardrail to stop malicious agent execution.
Introduces ast-guard, an open-source AST-based security tool that prevents malicious code execution from LLM-generated Python strings by parsing them into an abstract syntax tree and applying node-level whitelisting and context-aware safety checks.