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
claudeis looked up on thePATHthatduo(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/localand in the Claude Code extension of VS Code, Cursor or Windsurf. - Run
claude --versionandcodex --versionin 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/codexIn 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.
| CLI | Sign in | Check |
|---|---|---|
| Claude Code | claude, then /login (or claude auth login) | claude auth status |
| Codex | codex 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
$SHELLonce, 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 doctorwarns when the implementer has no edit permission configured. codex execis read-only unless configured otherwise: setsandbox_modein~/.codex/config.toml, orcodex.role_args.implementer: [--sandbox, workspace-write].- A resumed run keeps the configuration it started with; pass
--reload-configto 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.
| File | Path |
|---|---|
| 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
/discusswork in any folder. Only a pipeline (/pipeline,duo run) and/resumeneed the workspace to be inside a Git repository, because they snapshot and diff it. Rungit initfirst, orduo 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 execrefuses to start outside a repository, so AgentDuo passes--skip-git-repo-checkfor conversation turns. It changes nothing inside a repository and grants no permission.duo doctorchecks 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.pngreads 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
Pathrather thanPATH. AgentDuo reads them the same way, includingPATHEXT. - npm installs Codex as
codex.cmd(beside acodexscript for Git Bash that Windows cannot start). AgentDuo finds the.cmdthroughPATHEXTand starts it through the shell, as Node requires for.cmdand.batfiles. - 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.
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.appdoes the same.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
.debinstalls to/opt/AgentDuowith an AppArmor profile that allows user namespaces and confines nothing else, and makeschrome-sandboxroot:rootmode4755where 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
| Message | What 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.z | A 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.
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.