# Configure an Agent

**Agents** in the sidebar. An Agent saves a reusable configuration; it need not represent a specialized task.

| Place | What it does |
| --- | --- |
| Cards | One per Agent, in two groups by the always-on switch: **Chat** and **Always-on**. Shows avatar, name, description and **Default**. Always-on cards carry lines of surf in the card's colour, one field across them. |
| Header | Search by name, ID or description. **New Agent**: name and model; the ID is generated; it starts as Chat. |
| Choose a card | Quick settings beside the cards: name, description, model, reasoning effort, Always-on, **Try draft**, **New conversation**. |
| **Expand settings** handle, or **Manage** | Full editor; the cards fold into a list in the same two groups. Header chips open their sections. |
| **Collapse settings** handle or Esc | Back to the cards |

| Section | Changes |
| --- | --- |
| General | Display name, description, [avatar](#avatar), provider, model, reasoning effort |
| Programs | Automatic tool availability, selected programs or none |
| Skills | Available skills and exclusions |
| MCP | Allowed, excluded and required servers |
| Memory | Off, read only or read and write; readable and writable spaces |
| Context | Channel conversation isolation, idle reset, daily reset |
| Always-on | Wake to work on a standing goal and report ([Always-on Agents](https://fzkuji.github.io/OpenProgram/docs/capabilities/always-on-agents.html)) |
| Advanced | Channel identity, mention patterns, system prompt, which [AGENTS.md](https://fzkuji.github.io/OpenProgram/docs/capabilities/agents-md.html) files apply |

**Saving and model choice**

- Sections share one draft; **Save** writes all of it. Changing Agents or a destructive action offers Save, Discard or Cancel. A failed save keeps the draft.
- If another editor saved first, compare before choosing. Keeping your draft does not overwrite the newer version; review and save again.
- The model picker reads the provider catalog without changing another conversation. **Last used model** runs each conversation on your most recent model.
- An unavailable model or unsupported effort stays visible until you change it. Missing required MCP servers stop execution before a model request.

## Avatar

| Type | Choose |
| --- | --- |
| Character | One of 22 shapes and 8 colours |
| Generated | A style, then a variant |
| Upload | Up to 256 KB: PNG, JPG, SVG, WebP or GIF; animated files play |

- Without one, a character chosen from the ID; each built-in has one that fits its job. Change it in **General**.
- Shown on its card and editor, the composer chip and menu, the name above replies from a non-default Agent, the Always-on row of the [Activity panel](https://fzkuji.github.io/OpenProgram/docs/interfaces/web.html#conversation-activity), and channel bindings in Settings.
- Part of the draft; a duplicate keeps it.
- Characters blink, sway and look around, and look busy in the Activity panel while the Agent works. Picker tiles are still; reduced motion stills them all.

## Built-in Agents

Complete configurations saved as ordinary cards: edit, duplicate or delete them. The server installs those this instance has never had at startup; a deleted one is not recreated. One you have not changed picks up new versions on its own; one you have changed stays as you left it.

### For chat, always-on off

| Agent | Purpose | Capabilities |
| --- | --- | --- |
| Assistant (default, id `main`) | General; new conversations start on it | Every tool |
| Decision | Select one of the supplied options with `Agent.choose()` | One model turn, no tools, no automatic re-pick |
| Lightweight helper | Extract, classify, format, summarize, predict next messages | No tools |
| Coordinator | Plan dependencies, delegate authorized tasks, check results | Read, search, Agent coordination |
| Explorer | Search and read code, files and the web for another agent, and report what it found | Read, search, web; never writes |

Decision, Lightweight helper and Coordinator have no prompt of their own; the task comes from the call and its Context. Memory, Skills and MCP start disabled. Pick a low-cost model for the helper and a strong reasoning model for the coordinator: names guarantee neither. Predicted messages are suggestions, not authorization; a planning-only request does not authorize delegated execution.

### For work while you are away, always-on on

**Butler** is the general [always-on](https://fzkuji.github.io/OpenProgram/docs/capabilities/always-on-agents.html) Agent: every tool and read-write memory. Tell it what to watch or keep going; that conversation wakes when something is due, otherwise follows the [check-in ladder](https://fzkuji.github.io/OpenProgram/docs/capabilities/always-on-agents.html#check-ins), and reports only what is worth your attention.

| Job Agent | Job | Tools | Memory | Looks around when woken |
| --- | --- | --- | --- | --- |
| Chief of Staff | Keeps open work moving, routes tasks to other Agents, reports | Read, web, conversations, open work, messages to other Agents, reminders, Goals | Read and write | Yes |
| Spec Writer | Turns a request into a specification with acceptance criteria | Read, web, conversations, write files | Read only | No |
| Bug Reproducer | Finds the smallest failing case and pins it as a failing test | Read, shell, code navigation, worktrees | Off | No |
| PR Producer | Implements a specified change with tests in a worktree | Read, shell, edit, worktrees | Off | No |
| PR Verifier | Checks a change against its specification and tests; never edits | Read, shell, code navigation | Off | No |
| Research Desk | Follows topics, reads sources, keeps a cited brief | Web, PDF, write files, reminders | Read and write | Yes |
| Inbox Triage | Sorts new messages and drafts replies; nothing is sent | Read, conversations, write files, reminders | Read and write | Yes |
| Career Scout | Scans job boards, ranks matches, prepares applications | Web, browser, PDF, write files | Read and write | Yes |
| Knowledge Keeper | Distils finished conversations into memory, merges and corrects | Read, conversations, edit files | Read and write | Yes |
| Writer | Turns material into finished text in the requested form | Read, web, edit files, canvas, images | Read only | No |

Each has a prompt stating job, deliverable, what it never does, when it is done, how it works and its first task; only the tools it needs; memory on its own space. There is no fixed interval: each schedules its own wakes and follows the [check-in ladder](https://fzkuji.github.io/OpenProgram/docs/capabilities/always-on-agents.html#check-ins) if it set none. No conversation, no wakes, no cost.

- Producer and verifier are separate so the Agent that wrote a change never passes it.
- Agents that handle mail or posts stop at a draft; their prompts forbid sending.
- They cooperate by [messaging each other](https://fzkuji.github.io/OpenProgram/docs/capabilities/always-on-agents.html#hand-work-to-another-conversation) by Agent name or conversation title: one conversation per Agent, each clearly titled; tell the planning conversation which does what.

**From Python**

```
from openprogram import Agent
from openprogram.runtime.agent_registry import manager

helper = Agent.from_spec(manager.get("utility"))
result = helper("Extract the city from: the event is in Singapore.")

selector = Agent.from_spec(manager.get("decision"))
selected = selector.choose("Classify this message.", {"A": "Question", "B": "Statement"})
```

- `choose()` returns the selected ID, uses the current Context and DAG, disables tools and web search and never re-asks. An invalid answer raises `DecisionError`. Model and reasoning are caller configuration. `__call__()` stays available.
- `create_builtin_agents()` in `openprogram.runtime.agent_registry.builtin_agents` installs what was never installed, updates copies nobody has changed and leaves edited ones as they are. Assistant goes first, so it is the default on a fresh install. Server startup, setup and `openprogram chat` run it; registry reads never install.

## Start a conversation or try a draft

|  | **New conversation** | **Try draft** |
| --- | --- | --- |
| Uses | The saved configuration | The current draft, unsaved; snapshot taken at the first message and kept on resume |
| Long-term memory | As configured | Never written. Off stays Off; otherwise read only. |

### Change a conversation's Agent

The Agent chip beside the model in the composer. Lists Chat Agents, then [Always-on](https://fzkuji.github.io/OpenProgram/docs/capabilities/always-on-agents.html); **Manage Agents** opens this page.

| Case | Effect |
| --- | --- |
| Unsent chat | Applies from the first message. Each unsent conversation keeps its own Agent and overrides; a rejected first message keeps the selection. A model change applies only there. |
| Started conversation | Switches at once, except during a running turn. Later turns use the new instructions, capabilities and memory, and its model if it sets one. Earlier messages stay. |
| Saved instruction, capability or memory change | Applies to later executions with that Agent |
| Existing conversation's model | Kept from when it started or last switched Agent, with any explicit reasoning choice. Unset effort follows the Agent default. Explicit overrides stay. |
| Trial | Keeps its snapshot |
| Context reset settings | Channel conversations only; new chats and trials start with new history |

## Memory access

| Setting | Meaning |
| --- | --- |
| Off | No framework memory reads or writes |
| Read only | Reads, no extraction or new records |
| Read and write | The write destination must be in the readable spaces |
| **This Agent** | Separate memory for the Agent |
| **Shared legacy memory** | The pre-existing profile-wide store |
| **Require memory to be available** | Unavailable memory stops execution. Unset: execution continues and records the degradation. |

New Agents start Off; configurations without a memory field keep legacy shared access. Background extraction and derived results preserve recorded write restrictions, so turning memory on does not ingest earlier restricted turns. Turning it off or deleting an Agent keeps stored memory. These settings do not govern file tools. The [Memory page](https://fzkuji.github.io/OpenProgram/docs/capabilities/memory.html) edits the shared store, not each Agent's space.

## Limits on delegation

| Setting | Caps |
| --- | --- |
| `agent.max_spawn_depth` | `1`: your Agent may start helpers, a helper does its work itself |
| `agent.max_running_agents` | `6` helpers running at once in a conversation; the rest wait |
| `agent.max_tree_usd` | `2` dollars for everything one request delegates; then its helpers stop |
| `agent.stall_minutes` | `10` quiet minutes before a helper is reported stalled |
| `agent.max_agent_hours` | `2` hours before a helper is stopped |
| `agent.max_hops` | `4` times a message may be passed on |
| `agent.max_sends_per_hour` | `20` messages a conversation sends per hour |
| `agent.max_messages` | Messages in one chain; off by default |
| `agent.max_spawn_fanout` | Agents one turn may create; off by default |

`0` turns a limit off. A call past a limit is refused with the setting's name; a stopped or stalled helper is reported in the conversation that started it.

## Open work

**What counts as a commitment**

What the Agent still owes you in a conversation after the task at hand: a reply it waits on, a promised check, an unanswered draft.

| Open items | Detail |
| --- | --- |
| Shown in | Its instructions every turn, and the [Activity panel](https://fzkuji.github.io/OpenProgram/docs/interfaces/web.html#conversation-activity) |
| Changed by | The Agent, with the `open_work` tool. Ask it in chat to add, change or drop one, or mark one done in the panel. |
| Finished items | The latest 50 stay in history and leave the instructions |

Not a [task](https://fzkuji.github.io/OpenProgram/docs/interfaces/web.html#task-list), which plans the work at hand and ends with it. What another conversation should know belongs in [memory](https://fzkuji.github.io/OpenProgram/docs/capabilities/memory.html).

## Duplicate and delete

Duplicate copies the configuration under a new ID, not conversations or private memory. A `self` memory reference resolves to the new Agent's space; an explicit legacy shared reference stays shared. The default Agent cannot be deleted until another is made default.
