# Monty adds Python Code Mode to Everruns agents

> Choose a Python tool interface with isolated Monty workers, policy-checked operations and durable approval continuations on Framework and Server.

Source: <https://everruns.com/docs/changelog/2026-11-25-monty-python-code-mode/>

Date: 2026-11-25
Products: Framework, Platform
Category: Feature

![Everruns plus Monty: Python Code Mode for agents.](https://everruns.com/docs/_astro/integration@2x.C2heMPRp_x8pS8.webp)

Agents can now use Monty as an optional Python execution interface on Framework, Server workers and agentd executors. Programs call authorized tools and save their continuation when approval pauses execution. A private effect journal replays recorded outcomes and refuses to repeat an operation with an unknown result.

```rust
// Cargo: everruns features monty, openai.
use everruns::{Agent, OpenAI, PythonCodeMode};


let agent = Agent::builder()
    .provider(OpenAI::from_env()?)
    .model("gpt-6.2-sol")
    .capability(PythonCodeMode)
    .build()?;
```

Provision the pinned worker, Linux isolation and private storage described in [Python Code Mode](https://everruns.com/docs/framework/python-code-mode/). Bashkit’s existing Python runtime is unchanged; compare [execution options](https://everruns.com/docs/framework/execution-options/) to decide whether a direct Python interface and saved continuations fit your agent.

The shared Code Mode and MCP-scale eval studies include a Monty comparison arm, with effect-based approval/resume scoring and separate hosted boundary checks.