Configuration
AgentDuo reads YAML files: built-in defaults, your user config for every workspace, and a project config for one workspace. The chat, the desktop app’s Settings and VS Code change the same files, and each change says when it reaches work that is already going.
On this page
Where the configuration lives
| Layer | Where | Applies to |
|---|---|---|
| Built-in defaults | In AgentDuo itself (every key and its default) | Everything |
| User config | ~/.config/agentduo/config.yaml; $XDG_CONFIG_HOME/agentduo/config.yaml when that variable is set; %APPDATA%\agentduo\config.yaml on Windows | Every workspace, and conversations outside a project |
| Project config | <workspace>/.agentduo/config.yaml, or the file given with --config PATH | One workspace |
- Every key is optional: write only the ones you change.
duo initcreates.agentduo/config.yamlwith everything commented out, and.agentduo/.gitignoreso the runs folder stays out of Git. --config PATHreplaces the project file, not the user config: the user config is still read first.- The terminal, the desktop app and the VS Code extension read the same files, so a setting saved in one applies in the others.
- A misspelled or unknown key produces a warning and is ignored. A value of the wrong type is an error that names the file;
duo doctorchecks the configuration without calling a model.
Which value wins
Later layers win over earlier ones:
Override order
built-in defaults < user config < project config (or --config) < this session“This session” is a change made in the chat without --save or --global, or one made in the desktop app with Until app closes. It lasts until the chat or the app closes.
How layers merge
- Mappings merge key by key: a project file that sets only
claude.modelkeeps the rest ofclaudefrom the user config. role_argsmerge role by role, so a user-levelimplementerentry survives a project’splan_reviewerentry.- Lists (
args,gates,blocking_severities) replace the earlier value.claude.args: [--strict-mcp-config]drops the default--no-session-persistenceunless you list it too. - A key with no body (
codex:orgates:alone) keeps the earlier value. nullis a value of its own:model: nullin a project file means “the CLI decides” and hides a model set in the user config. To inherit, leave the key out.
Two layers
# ~/.config/agentduo/config.yaml
claude:
role_args:
implementer: [--permission-mode, acceptEdits]
# .agentduo/config.yaml
claude:
model: opus
role_args:
plan_reviewer: [--permission-mode, plan]
# in effect: model opus, and both role_args entriesChanging settings from the chat
The chat has the settings commands of Claude Code and Codex. Each one changes flags in claude or codex and nothing else. /settings claude … and /settings codex … are the canonical forms; /claude … and /codex … are shortcuts, taken as a setting only when the words fit one exactly (otherwise they are a question for that agent).
| Command | What it changes in the config |
|---|---|
Shift+Tab, /mode manual|acceptEdits|auto | --permission-mode in claude.role_args.implementer (Claude in the chat and as the pipeline’s implementer) |
/claude model <name|default> | claude.model |
/claude effort low|medium|high|xhigh|max|default | --effort in claude.args |
/claude permissions [allow|deny|remove <rule>] | --allowedTools / --disallowedTools in claude.args |
/claude add-dir <path> | --add-dir in claude.args |
/codex model <name|default> [effort] | codex.model, and -c model_reasoning_effort=… in codex.args |
/codex permissions read-only|auto|full-access|default | --sandbox in codex.args; full-access needs --yes |
/config | Shows what both agents run with now, and which files --save and --global write |
--save and --global
- Without a flag, a change lasts for this chat only.
--savewrites it to the project config (.agentduo/config.yaml, or the--configfile).--globalwrites it to the user config, for every workspace. It saves the change as made to that file alone, so nothing of this workspace’s config goes along.- If the project config sets the same key, the project still wins there: the chat says so.
--save --globalwrites both files. - Writing a file keeps its comments and every other key as they were.
duo
/claude model opus --save
/codex model gpt-5.5 high --global
/mode acceptEdits --save --globalEvery command and its options: Slash commands.
When a change applies
Each setting is either next call or next run. The difference matters only for work that is already going: a pipeline run, a discussion, or a run you resume.
| Kind | Settings | Reaches |
|---|---|---|
| Next call | model, effort, permission mode, allow and deny rules, add_dirs (--add-dir), args, role_args, bin, max_budget_usd, permission_prompts | The agent’s next call, including the next step of a run that is going; the run’s saved config.json is updated, so a resume keeps it |
| Next run | agents.* (who plays which role) and every limits.* | Only work started after the change: the next run, question or discussion. A run that is going, a discussion under way and a resumed run keep the values they started with |
A run never changes agents or limits halfway. When the chat resumes a stopped run, it starts from the run’s own config.json and replays the chat’s next-call changes on top; next-run changes are never replayed onto it.
Config files and duo resume
duo resume in the terminal continues a run with the config it started with, so an edit to config.yaml has no effect on it. Pass --reload-config to use the current files instead. Changes to Claude Code’s or Codex’s own settings apply either way. More in Decisions and resume.
Settings in the desktop app
Open Settings with the gear at the bottom of the sidebar. Configuration edits the same keys as the files, with a tab for each group:
| Tab | Keys | Applies |
|---|---|---|
| Claude Code | claude.model, claude.permission_prompts, claude.max_budget_usd, claude.args; under Advanced, claude.bin and each role’s role_args | Next call |
| Codex | codex.model, codex.args; under Advanced, codex.bin and each role’s role_args | Next call |
| Workflow roles | agents.* | Next run |
| Rounds & limits | Every limits.*, grouped as Rounds, Time and Size | Next run |
At the top, Apply changes to picks where a change is saved. It saves at once.
| Scope | Writes | Reaches |
|---|---|---|
| All projects | The user config | Every project, and conversations outside one; a project that sets its own value still wins there |
| This project | The project’s .agentduo/config.yaml | That project only |
| Until app closes | No file | Only this project’s open conversations, until the app closes (it needs a conversation open) |
- Each value shows where it comes from (the default, all projects, this project, until the app closes), and warns when the project overrides your user config.
- Reset removes the key from that file, so it inherits again. It never writes
null, which would mean the built-in default and hide the user config. - A change that would make the configuration invalid is not written. A file that is not valid YAML is left alone: Settings shows the error and its line, and opens the file for you.
- Options added from a menu (reasoning effort, permission mode or sandbox, allowed and denied tools, extra folders…) are written as flags into
args; Other flag… takes any other one. paths.runs_diris shown under Data & storage but not edited there: the workspace lock lives in it. Change it in the file with every AgentDuo closed.- A change made in Settings, or saved from a chat, reaches the other projects’ open chats too.
VS Code
- The chat’s Settings panel changes what the chat’s settings commands change. Two boxes below it save the changes to
.agentduo/config.yamlor to the user config, as--saveand--globaldo. - agentduo: Open Configuration opens
.agentduo/config.yaml. - VS Code has one setting of its own,
agentduo.nodePath: the Node (22.12 or later) that runs AgentDuo’s engine. Agents, models and permissions are in the config files.
Examples
Models and effort for AgentDuo’s calls only; your own Claude Code and Codex settings are unchanged:
.agentduo/config.yaml
# Models and effort for agentduo's calls only. null (or leaving a key out) lets each CLI's own settings decide.
claude:
model: opus
max_budget_usd: 5 # Claude stops a call that would cost more than this
args: [--no-session-persistence, --effort, high]
codex:
model: gpt-5.5
args: [--ephemeral, -c, model_reasoning_effort=high]Runs nobody watches, where Claude cannot ask:
.agentduo/config.yaml
# For runs nobody watches (CI, a background job): Claude cannot ask, so allow what the implementer needs up front.
# These flags reach Claude Code only in agentduo's calls; your own Claude Code settings are unchanged.
claude:
permission_prompts: deny # never relay a permission prompt; Claude denies what its settings do not allow
role_args:
implementer: [--permission-mode, acceptEdits, --allowedTools, "Bash(npm test:*)"]
gates:
- name: tests
command: "npm test"
required: trueNote
AgentDuo adds no permission rules of its own. What each agent may do comes from its CLI’s configuration and the flags you pass: Permissions.