Workshop

Is Serverless a Misfit for Agentic AI?

WoAIS2 2026 — Second International Workshop on AI and Serverless

Bita Asoodeh, Amir Noohi, Antonio Barbalace

PDFCodeSoonDOISoon
0 citations0 downloads

Abstract

AI agents run model-written commands in the sandboxes that were built for serverless functions. The 60 agent systems that we survey use the same microVMs and containers as 41 serverless systems. It is disputed whether an agent's tool calls should also run as functions. One proposal treats agentic workflows as serverless applications, while agent platforms keep one sandbox per session. We measure it. We state the Function-as-a-Service (FaaS) contract as five properties and test each one on live and published sessions of frontier models on SWE-bench Verified and Terminal-Bench, with 14 functions in the same Firecracker microVM as a reference. The sandbox is not the obstacle, because it boots in about the same time and most tool calls are as short as function calls. The contract is the obstacle, because of state. With a new sandbox for every command, an agent solves 5 of 12 SWE-bench tasks instead of all 12. Keeping the working directory repairs code edits, but the agent loses 12 of the 51 Terminal-Bench tasks that it solves with one sandbox per session. Keeping the whole disk still loses 8 tasks, and 6 of them leave a server running. A session's sandbox, however, is idle for 81–91% of the session while the model replies, and freeing it means saving its memory, which takes 2.07 s. These results explain why agent platforms manage sessions and not calls. Sessions leave open how to size memory per command and how to reclaim idle time without losing state. We propose three mechanisms and measure their costs.

BibTeX

@inproceedings{asoodeh2026serverless,
  author    = {Bita Asoodeh and Amir Noohi and Antonio Barbalace},
  title     = {{Is Serverless a Misfit for Agentic AI?}},
  booktitle = {Second International Workshop on AI and Serverless (WoAIS2)},
  year      = {2026},
}