All documentation pages

Troubleshooting

Most problems come from the two CLIs AgentDuo runs: where they are, how they sign in, and what their own settings allow. Start with duo doctor (or Settings → Diagnostics in the desktop app): it checks all of that without calling a model.

On this page

Claude Code or Codex is not found

duo doctor lists claude CLI not found (bin: 'claude') or the same for codex when it cannot find a CLI. It checks only the CLIs your roles use.

  • A name such as claude is looked up on the PATH that duo (or the app) was started with. A value with a slash, or starting with ~, is taken as a path to the file itself.
  • If Claude Code is not on the PATH, AgentDuo also looks in ~/.claude/local and in the Claude Code extension of VS Code, Cursor or Windsurf.
  • Run claude --version and codex --version in the same terminal. If they work there and AgentDuo still cannot find them, set the full path in your configuration:

~/.config/agentduo/config.yaml

claude:
  bin: /opt/homebrew/bin/claude
codex:
  bin: ~/.npm-global/bin/codex

In the desktop app, the first-run check and Settings → Claude & Codex let you pick the binary instead; it is saved as claude.bin or codex.bin in your user configuration, which every interface reads.

Note

A line such as codex supports --json, … — missing: --output-schema means the CLI is found but too old or too new for the flags AgentDuo passes. Update the CLI, then run duo doctor again.

A CLI is not signed in

AgentDuo holds no credential: each CLI signs in on its own. When one is signed out, its calls fail, and /usage, the desktop app’s first-run check and its Account & Usage box say so.

How each CLI signs in
CLISign inCheck
Claude Codeclaude, then /login (or claude auth login)claude auth status
Codexcodex login/usage in a chat

Sign in in a terminal, then choose Recheck in the app, or start the chat again. Accounts and usage.

The app cannot find a CLI the terminal finds

An app opened from the Dock, Finder, the Start menu or a desktop launcher does not get your terminal’s PATH. The desktop app therefore builds the PATH the agents get from:

  • the PATH it was started with;
  • on macOS and Linux, your login shell’s PATH (it asks $SHELL once, with a 5-second timeout);
  • the usual install folders: Homebrew, ~/.local/bin, npm’s global folder, %APPDATA%\npm, nvm’s Node versions and others.

A binary picked in Settings always wins. Settings → Diagnostics shows the PATH the agents get and where each entry came from. If your shell takes longer than the timeout to start, or the CLI lives somewhere unusual, pick the binary instead.

A CLI installed with npm may also need its own Node.js on that PATH, even though the app itself needs none; Diagnostics shows that separately.

Tool calls are denied

AgentDuo passes no permission flags of its own: what an agent may do comes from Claude Code’s and Codex’s own settings. When a call is denied, the run shows a warning that names the tools and where to allow them, for example:

Warning

Claude was denied 2 tool call(s) (Edit, Bash); allow them in your Claude Code settings (permissions.defaultMode "acceptEdits" for edits; permissions.allow rules for Bash (e.g. "Bash(npm test:*)")) or via claude.role_args.implementer (a resumed run picks up config changes only with --reload-config)
  • Without a terminal to ask in (CI, background, piped output), Claude Code denies every tool call its settings do not allow. duo doctor warns when the implementer has no edit permission configured.
  • codex exec is read-only unless configured otherwise: set sandbox_mode in ~/.codex/config.toml, or codex.role_args.implementer: [--sandbox, workspace-write].
  • A resumed run keeps the configuration it started with; pass --reload-config to use your changes.

Permissions explains each mode and the prompts in the chat.

Configuration errors

A configuration file that is not valid YAML, or holds a value AgentDuo does not accept, stops a run before anything starts. duo doctor prints the error on its config: line; otherwise that line lists the files it read.

Where the configuration files are
FilePath
User (macOS, Linux)~/.config/agentduo/config.yaml (or $XDG_CONFIG_HOME/agentduo/config.yaml)
User (Windows)%APPDATA%\agentduo\config.yaml
Project.agentduo/config.yaml in the workspace

The desktop app leaves a file that is not valid YAML alone: Settings shows the error and its line, and opens the file for you. It never writes a change that would make the configuration invalid. Configuration.

Git repository errors

  • The chat and /discuss work in any folder. Only a pipeline (/pipeline, duo run) and /resume need the workspace to be inside a Git repository, because they snapshot and diff it. Run git init first, or duo init, which offers it.
  • In your home folder (the desktop app’s and the VS Code extension’s chats with no folder open), open a project folder for a pipeline instead.
  • codex exec refuses to start outside a repository, so AgentDuo passes --skip-git-repo-check for conversation turns. It changes nothing inside a repository and grants no permission.
  • duo doctor checks that Git is installed and whether the workspace is inside a repository.

Windows paths

  • In /attach, a backslash is the path separator on Windows, never an escape: /attach C:\Users\me\shot.png reads as typed. Put a path with spaces in quotes: /attach "C:\Users\me\My notes.pdf". ~\ is your home folder. Attach one path at a time.
  • Windows reads environment variable names in any case, and a copied environment may say Path rather than PATH. AgentDuo reads them the same way, including PATHEXT.
  • npm installs Codex as codex.cmd (beside a codex script for Git Bash that Windows cannot start). AgentDuo finds the .cmd through PATHEXT and starts it through the shell, as Node requires for .cmd and .bat files.
  • To set a path in YAML, use single quotes or no quotes: in double quotes, YAML reads a backslash as an escape.

%APPDATA%\agentduo\config.yaml

codex:
  bin: 'C:\Users\me\AppData\Roaming\npm\codex.cmd'

The installer or app is blocked

The published Mac app is not notarized and the Windows installer is not code-signed, so the system warns the first time. Do this only for a file you downloaded from the project’s GitHub releases.

  1. macOS: Gatekeeper

    Open System Settings → Privacy & Security, find the message about AgentDuo, choose Open Anyway and confirm. For a build you trust, xattr -dr com.apple.quarantine /Applications/AgentDuo.app does the same.

  2. Windows: SmartScreen

    On Windows protected your PC, choose More info, check the file, then Run anyway.

The download page walks through each system.

The app does not start on Linux (sandbox)

Ubuntu 24.04 and later restrict unprivileged user namespaces, which Chromium’s sandbox needs. AgentDuo never turns its sandbox off by itself, so an app that cannot start it does not open.

  • The .deb installs to /opt/AgentDuo with an AppArmor profile that allows user namespaces and confines nothing else, and makes chrome-sandbox root:root mode 4755 where user namespaces are unavailable. Install it if the AppImage fails.
  • An AppImage gets neither. Install the .deb instead, or add an AppArmor profile for the AppImage’s path.
  • As a last resort, and less safe, allow unprivileged user namespaces for the whole system: sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0.

Update errors

Update messages
MessageWhat it means
No AgentDuo release is published on GitHub yet.There is nothing to update to yet.
Could not reach GitHub. Check your connection.The check could not connect. It runs again later, or choose Check now.
GitHub is limiting requests for now. Try again later.GitHub rate-limited the check.
Get AgentDuo x.y.zA Mac app without a Developer ID signature cannot replace itself: it opens the release page so you can download the new .dmg.
  • A development build (npm run dev) and an app started with a profile of its own (AGENTDUO_DESKTOP_USER_DATA) never update from GitHub.
  • The .deb installs only when you choose Restart to update, through pkexec, which asks for your password.
  • The updater writes its lines to the app’s log, which Settings → Diagnostics shows.

How updates work.

Still stuck

Each run keeps its prompts, the agents’ raw output and an event log in its own folder: run files. The desktop app’s Settings → Diagnostics can export what it shows, without credentials, prompts or attachments.

Then report the problem, with the details it lists and nothing private.