Shared state, no drama: Scaling state-modifying agents with MCP workspaces
Blog post from AI21 Labs
AI21 Maestro's TTC-first agentic framework leverages parallel execution of multiple reasoning paths to effectively tackle read-only tasks, but faces challenges when applied to tasks that involve state mutation, such as coding. This is due to conflicts arising when multiple agents simultaneously modify the same environment, leading to issues like file corruption and conflicting changes. To address this, AI21 extended the Model Context Protocol (MCP) with a Workspace layer, introducing five domain-agnostic primitives—initialize, clone, merge, compare, and delete—that provide workspace isolation without requiring tool rewrites. Implemented with git worktrees, this approach allows multiple subagents to work in parallel, promoting safe experimentation and speculative problem-solving by providing isolated workspaces where each subagent can independently execute, test, and merge its changes. This innovation not only resolves the conflicts encountered in state-mutating tasks but also sets a precedent for scalable, multi-agent systems that can apply these principles across various domains, enhancing the capacity for exploration and experimentation.