Skip to main content

Dual LLM Pattern

Dual LLM Pattern is an agent architecture proposed by Simon Willison in April 2023 that splits an AI assistant into a tool-holding privileged model and a tool-less quarantined model, so untrusted content never reaches the model that can act.

The design has three parts. The Privileged LLM takes trusted input from the user and can call tools that change state, such as sending email or editing a calendar. The Quarantined LLM processes untrusted content such as emails, web pages and documents, has no tool access, and is assumed to be compromised. A Controller, ordinary software rather than a model, triggers both, carries out the privileged model's actions and shows results to the user. Untrusted results are stored under variable names such as $VAR1, and the privileged model handles only the names, never the contents. The one exception Willison allows is quarantined output limited to a fixed set of values, such as a classification label.

The pattern targets the most dangerous form of 📝Prompt Injection, the confused deputy: an assistant tricked by text it reads into misusing the user's own permissions. Willison listed its limits in the original post: added complexity, future features that could leak untrusted text to the privileged side, social engineering of the user, chained prompts that carry an attack forward, and approval prompts that users click through out of dialog fatigue.

In 2025 📝DeepMind identified a further gap: the quarantined model can still be steered into returning a wrong value, such as an attacker's address in place of the intended recipient's, which the privileged side then acts on. Its 📝CaMeL system closes that gap with capabilities and data-flow policies (Willison, April 2025). A June 2025 design-patterns paper counts the Dual LLM pattern among six patterns for securing 🏷️#ai-agents.

This is the shape any BrianBot loop that reads the open internet should take. A model like 📝Jev, whose answers are typed choices and scores, fits the quarantined role by construction: its output has no room to carry instructions onward.

Contexts

MythOS is a product of Cooperating Citizens of One, Inc.

TermsPrivacyRefundsSub-processorsContact

© 2026 Cooperating Citizens of One, Inc. · MythOS since 2017 · Not affiliated with Anthropic.