Software engineers face a new set of challenges as increasingly capable AI agents begin working together on complex tasks. Katelyn Lesse argues that solving problems in infrastructure, permissions, security and monitoring will be essential to making powerful multiagent systems useful and trustworthy.

Agents have developed from basic chats with a human in the loop into systems that can run longer, tackle harder problems and operate in the cloud. Models are also improving at working together, while developers have built systems in which an orchestrator assigns work to subagents or gives them roles such as grading, advising or generating ideas.

Some teams are now building multiagent systems for demanding work, including research, discovery and hardware design. Systems with thousands of agents working persistently on these tasks raise new engineering questions, Lesse writes.

Infrastructure must accommodate workloads that can surge, pause and wait on tools, model inference, other agents or human input. Lesse says agents are typically isolated, stateful, single-instance workloads, unlike the stateless replicated applications or stable sets of stateful pods Kubernetes was designed to handle. Some need to start quickly, others must avoid wasting compute, and some require enormous scale.

Lesse points to AI infrastructure companies developing filesystems and sandboxing offerings, as well as Google's Agent Substrate runtime, as examples of work in the area. “There's a ton left to figure out,” she writes.

Authentication and authorization pose separate challenges. Workload identity using short-lived certificates rather than static keys, a practice developed in the microservices world, offers building blocks for identifying agents that take actions. But deciding what agents should be allowed to do is less settled.

Many agents act on behalf of a person, using that person's identity and credentials. Systems need to distinguish actions taken by an agent from those taken by the human, and address how people can meaningfully approve an agent's actions when multiagent systems may work for weeks. Auto-approval for tool calls can help, Lesse writes, but more permission controls are needed. Agents acting under their own identities raise further questions, including how one agent should trust another.

Security and isolation are also critical when agents run untrusted code or process untrusted content. Lesse warns that vulnerabilities in widely used core software become more dangerous when thousands of persistent agents depend on it. She calls for stronger protections for kernels, browsers, runtimes and common libraries.

A compromised agent could also pass injected instructions to others, potentially leaving information in memory for future agents to trust. Lesse says strongly isolated sandboxed environments can limit the risks, including how much of a system is exposed if one agent is compromised.

Finally, systems need monitoring and ways to stop them. Lesse calls for OTel tracing across agents, with safeguards preventing agents from changing their own traces or those of others, and kill switches that can halt the system and revoke its credentials. Detecting when a system is veering off course may be difficult: persistent attempts to solve a problem can resemble malicious behavior, such as repeated attempts to reach a domain outside an allowlist.

Lesse says engineers worried that their skills may become less relevant can help address these open problems. She argues that their work could determine whether multiagent systems can be used to tackle difficult problems and produce beneficial outcomes, such as curing diseases.