All documentation pages

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

Configuration files
LayerWhereApplies to
Built-in defaultsIn 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 WindowsEvery workspace, and conversations outside a project
Project config<workspace>/.agentduo/config.yaml, or the file given with --config PATHOne workspace
  • Every key is optional: write only the ones you change. duo init creates .agentduo/config.yaml with everything commented out, and .agentduo/.gitignore so the runs folder stays out of Git.
  • --config PATH replaces 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 doctor checks 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.model keeps the rest of claude from the user config.
  • role_args merge role by role, so a user-level implementer entry survives a project’s plan_reviewer entry.
  • Lists (args, gates, blocking_severities) replace the earlier value. claude.args: [--strict-mcp-config] drops the default --no-session-persistence unless you list it too.
  • A key with no body (codex: or gates: alone) keeps the earlier value.
  • null is a value of its own: model: null in 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 entries

Changing 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).

Chat settings commands
CommandWhat 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
/configShows 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.
  • --save writes it to the project config (.agentduo/config.yaml, or the --config file).
  • --global writes 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 --global writes 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 --global

Every 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.

When settings apply
KindSettingsReaches
Next callmodel, effort, permission mode, allow and deny rules, add_dirs (--add-dir), args, role_args, bin, max_budget_usd, permission_promptsThe 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 runagents.* (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:

Configuration tabs
TabKeysApplies
Claude Codeclaude.model, claude.permission_prompts, claude.max_budget_usd, claude.args; under Advanced, claude.bin and each role’s role_argsNext call
Codexcodex.model, codex.args; under Advanced, codex.bin and each role’s role_argsNext call
Workflow rolesagents.*Next run
Rounds & limitsEvery limits.*, grouped as Rounds, Time and SizeNext run

At the top, Apply changes to picks where a change is saved. It saves at once.

Settings scopes
ScopeWritesReaches
All projectsThe user configEvery project, and conversations outside one; a project that sets its own value still wins there
This projectThe project’s .agentduo/config.yamlThat project only
Until app closesNo fileOnly 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_dir is 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.yaml or to the user config, as --save and --global do.
  • 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: true

Note

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.