# Model Policy
<!--
ref: @protocol/model-policy
type: protocol
tags: [agent management, task execution, resource allocation, operational levels]
triggers: [set model level, switch execution mode, delegate tasks, manage agent performance]
trigger_prompt: When the user needs to adjust the operational level of agents based on task complexity, resource availability, or to optimize performance during different phases of work.
category: meta
last_reviewed: 2026-04-30
complements: [@protocol/orchestrate, @integrations/curly]
audience: [agent-author, claude-code-user, openclaw-user, terminal-only]
version: 5
updated_at: 2026-07-16T23:28:26.377Z
-->

Define and manage the operational levels of agent performance for optimal task execution.

## The four levels

| Level | Main agent | Easy / scans / sub-agents | Execution loops | When to pick |
|-------|------------|---------------------------|-----------------|--------------|
| **1** | Opus | Opus | Opus | Quality matters more than cost. No constraints. |
| **2** | Opus | **Sonnet / Haiku** | Opus | Default for normal work. Save tokens on routine delegation. |
| **3** | **Opus only at planning / decision checkpoints** | Sonnet | **Sonnet** | Conserving Opus aggressively. Reasoning preserved at checkpoints. |
| **4** | Sonnet | Sonnet | Sonnet | Opus tokens nearly exhausted, or task is mechanical. |

## How an agent reads the active level

The active level lives in `MODEL_LEVEL` in `~/.curly.conf` — a single source of truth shared with the rest of the curly ecosystem. On session start, an agent should:

```bash
source ~/.curly.conf 2>/dev/null
echo "Active model level: ${MODEL_LEVEL:-2}"  # default 2 if unset
```

Then act according to the table above. Concretely:

- **Sub-agent dispatch:** pass `model: "sonnet"` to the Agent tool at levels 2-4. (At level 1, prefer Opus for sub-agents too.)
- **Easy tasks:** file finds, greps, scans, mechanical edits, large-context document exploration → Sonnet/Haiku at levels 2-4.
- **Planning / reasoning / decision-making:** Opus at levels 1-3; Sonnet at level 4.
- **Execution loops:** Opus at levels 1-2; Sonnet at levels 3-4.

## Switching levels

Edit `~/.curly.conf` directly:

```bash
# In ~/.curly.conf
MODEL_LEVEL=3
```

New sessions pick it up at start. The agent re-reads on each turn (cheap — one local file).

A future slash command (`/model-level <n>`) will flip `~/.curly.conf` and `~/.claude/settings.json` atomically and echo the new active level.

## Why numbered levels, not free-form policy

A single number is fast to communicate and remember. Free-form policies ("use Sonnet when X but Opus when Y unless Z…") collapse into incoherence after the third clause. Four well-defined tiers cover the realistic tradeoffs:

- **L1** — maximum quality, no thought to cost
- **L2** — save on the obvious junk
- **L3** — save aggressively but keep reasoning sharp at decision points
- **L4** — emergency / mechanical mode

## Default

If `MODEL_LEVEL` is unset, assume **Level 2** — saves on routine delegation without dropping quality on the main agent's reasoning.

---

*Related: `@content/youtube/nate-herk/i-deleted-all-my-claude-skills-and-claude-got-smarter` · `@content/youtube/sean-kochel/this-free-tool-runs-5-ai-coding-agents-at-once` · `@content/youtube/aie/how-one-founder-manages-20-ai-coding-agents-at-once-ryan-carson-untangle` · `@knowledge/protocols/agent-context-file-hygiene` · `@knowledge/protocols/find-your-unknowns-with-the-model`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*