As impressive as this is, I can't help but conclude that the need for agents to write JavaScript programs to act out their actions represents a considerable limitation in current AI reasoning.
Wonder if you could glue together deep networks such that there's a big reasoning LLM model, and high-speed small network of a different type, and they share a subset of their activations. High bandwidth vector communication. You train them together.
edit to add: Seems this is a well-known idea in ML / robotics already.
On the contrary, having the intelligence write deterministic code that saves time and lowers error rate seems like a winning approach.