How Mistral Managed Agents Work in Production Mistral added Managed Agents to Mistral AI Studio on November 5 in public preview, built on a new Python Agents SDK, with Mistral running the agent loop, storing each session's history and waiting for approvals, and with hooks, subagents, sandboxes and three run modes. Mistral's documentation states that under `agents serve` the control plane still stores sessions and routes each to a worker while Mistral serves model calls, and that deployed sessions run on Temporal so an interrupted tool call is not re-run but the model receives an error about a minute later and may call the tool again — meaning a tool with side effects can run twice and needs an idempotency key. Mistral says Managed Agents reaches private cloud and on-premises deployments at the end of November. All guides https://www.omnara.com/guides How Mistral Managed Agents Work in Production Where sessions and data live, what survives a crash, a deploy, or a long wait, and how they compare with Omnara On this page On November 5, Mistral added Managed Agents https://docs.mistral.ai/studio/agents/overview to Mistral AI Studio, built with a new Python Agents SDK. Mistral runs the agent loop, keeps each session's history, and waits for approvals, the way Anthropic's Claude Managed Agents and OpenAI's Agents API do. It adds hooks, subagents, sandboxes, and three ways to run the same agent, including on Mistral's infrastructure. It's in public preview. What decides whether it fits a production agent is in the details. You need to know which parts Mistral runs no matter how you deploy, how long a session and an approval can last, and what a crash or a redeploy does to a running turn. Those details are spread across Mistral's docs, so this post collects them in one place. What Managed Agents Is An agent is a Python object. Tools are typed Python functions, and a permission policy decides which calls run, which ask a person first, and which are refused: Hooks run before and after each turn, model call, and tool call. They can rewrite inputs or outputs, skip a call, retry the model with feedback, or reject a response, and they keep state across turns. Subagents run in the background and report back to the agent that started them, which replaces the handoffs of Mistral's older Agents API. One design choice stands out. By default the model doesn't call your tools one at a time. It writes TypeScript https://docs.mistral.ai/studio/agents/learn/agent/tools in a built-in run typescript tool and calls them from that code, so it can chain several calls in one step. You can switch a tool to direct calls when you need to. For commands, an agent gets a sandbox. MistralSandbox gives each session its own Linux container on Mistral's cloud, with no network access by default. Local Docker and a lighter sandbox also exist, though only MistralSandbox isolates commands when Mistral hosts the agent. Where It Runs, and What Mistral Keeps The same agent runs three ways. The difference is where the loop and your tools run, and where the session lives: The middle column is the one to read closely. With agents serve , your worker runs the loop and the tools inside your network, but Mistral's docs say its "control plane still stores the sessions and routes each one to a worker, and Mistral serves the model calls." https://docs.mistral.ai/studio/agents/learn/where-it-runs/run-modes The agent's configuration goes to Mistral by default too. Self-hosting moves the work, while the state stays with Mistral. Running the whole Studio platform yourself is a separate Enterprise offering with its own gated docs. Mistral says https://x.com/MistralAI/status/2118370261657383184 Managed Agents reaches private cloud and on-premises deployments at the end of November. What Survives a Crash, a Deploy, or a Long Wait Underneath, deployed sessions run on Temporal, so every finished model call and tool call is recorded and the loop replays from that record. That's why Mistral asks you to use agents.now , agents.uuid4 , and agents.sleep instead of the standard library inside the loop: a replay has to make the same choices. Crashes. When a worker dies mid-turn, the turn "usually resumes from its last finished step once a worker is back. It can also fail, or stay Running until its time limit." https://docs.mistral.ai/studio/agents/learn/where-it-runs/run-modes The interrupted model call runs again. The interrupted tool call doesn't, but about a minute later the model gets an error for it and may call the tool again. Mistral's docs say plainly that a tool with side effects can run twice, so every such tool needs an idempotency key. Deploys. agents deploy builds a pushed commit from a GitHub repository. Each new commit becomes a new agent with a new id, and open sessions run their next message on the new code. A turn that's running during a redeploy "can fail, or stay Running " https://docs.mistral.ai/studio/agents/learn/where-it-runs/agent-lifecycle , so the docs suggest redeploying when nothing is running. Rolling back means deploying the earlier commit. Session limits. A session ends after 24 hours by default, or after 4 hours idle. Deployed on Mistral, the maximum is a week. With agents serve , it's a year. A session that hits a limit can't resume. Approvals. An approval waits one hour https://docs.mistral.ai/studio/agents/learn/agent/approvals by default. If nobody answers, the call doesn't run and the turn continues. An environment variable raises the timeout, and the wait counts toward the session's idle limit. Approvals can be answered from your code or by a person from any process or client that opens the session, and when two people answer at once, one answer counts and both see which. Data, Models, and Price Data. Mistral's zero data retention https://docs.mistral.ai/admin/monitor-comply/zero-data-retention doesn't apply to Agents, Conversations, or traces sent to Studio. Agents aren't available on Mistral's EU or US regional endpoints, and the docs note that "regional inference does not make the Mistral control plane regional." https://docs.mistral.ai/inference/regional-inference Mistral's sandboxes run in the Netherlands by default. Traces include prompt and completion content after pattern-based redaction, which the docs warn can miss secrets, and viewing them in Studio Observability needs an Enterprise plan. Models. Agents default to Mistral's models, such as Mistral Large 4. Mistral also hosts GLM 5.3 and DeepSeek V4.1 Flash, and the agent reference lists "openai" and "anthropic" as providers, though the docs don't explain how to set them up. Mistral reports Large 4 at 41% on Terminal-Bench 4.0 https://mistral.ai/news/mistral-large-4-oss/ . Price. Model tokens bill at Mistral's API prices. Mistral hasn't published a price for the agent runtime, managed deployments, or MistralSandbox containers. Managed deployments need a pay-as-you-go or Enterprise plan, which Mistral's workflow docs cap at 3 and 10 running deployments. Source. The Agents SDK on PyPI is Apache 2.0, but it depends on Mistral's agent harness, a compiled package licensed as proprietary. There's no public source repository for the SDK, and the control plane is closed. Coming From the Agents API Managed Agents is Mistral's third agent product in about two years, after Le Chat agents in 2024 and the Agents API in 2025. The Agents API client.beta.agents and client.beta.conversations is "about to be deprecated" https://docs.mistral.ai/studio/agents/agents-api , with no date yet. Moving over changes more than the client calls. The Agents API's built-in web search, document library, and image generation become tools you write that call the Conversations API. The code interpreter becomes a sandbox. Handoffs, where one agent took over the conversation, become subagents that report back. Version pinning becomes deploying the commit you want. Where Managed Agents Fits Managed Agents has real strengths, and most of them come from treating the agent as code. - A loop you can program. Hooks at every step can rewrite, retry, skip, or reject, and guardrails are hooks that run first. That's closer to a framework like Mastra than to a hosted API, with Mistral keeping the sessions durable. - Fewer round trips on tool-heavy steps. Because the model calls tools from TypeScript it writes, one step can chain several calls instead of spending a model call on each. - A front end you don't build. A deployed agent opens in Vibe Code Web at chat.mistral.ai/managed-agents/