Data and diagnostics
AgentDuo keeps everything it writes in your workspace’s runs directory, as plain files you can read: each run’s plans, reviews, report and the logs of every CLI call. Nothing is sent anywhere but to the two CLIs.
On this page
The runs directory
By default it is .agentduo/runs in the workspace; paths.runs_dir moves it. AgentDuo creates it with a .gitignore of *, so its data stays out of Git, and every snapshot excludes it.
| Path | What it is |
|---|---|
<run id>/ | one pipeline run, e.g. 20261031-101500-add-refresh-tokens |
conversations/<id>/ | one chat conversation: conversation.json once something was said, its logs, and its attachments/ |
LATEST | the id of the latest run, which duo resume picks |
.lock | the workspace lock: one pipeline at a time, holding the process id |
Warning
Change paths.runs_dir only with every AgentDuo closed: the workspace lock lives there.
Run files
Everything about a run lives in .agentduo/runs/<run id>/:
| File | What it holds |
|---|---|
state.json | the run’s state, rewritten after every step; it makes the run resumable |
config.json | the configuration the run started with (duo resume --reload-config replaces it) |
report.md | timeline, gate results, diff stat, unresolved issues, warnings, cost and tokens |
events.jsonl | the run’s events, one JSON object per line, each with its time |
plan.v<n>.md, plan.v<n>.json, plan.md | each version of the plan, and the latest one |
critique.r<n>.json, plan-feedback.md | each round’s critique, and all of them as Markdown |
approval.r<n>.json, plan.final.md | the planner’s sign-off and the final plan |
review.r<n>.json, review.json | each code review, and the latest one |
gates/ | the output of each gate, one .log per gate and round |
attachments/ | copies of the files attached to the task |
logs/ | every CLI call, below |
Each agent JSON carries the task id, round, timestamp, Git SHA and plan version.
The logs of each call
Each CLI call writes files named after its step, round and attempt (<step>.a<attempt>.*) in logs/:
.prompt.md: the prompt as the agent got it (attached images are listed, never their bytes);.cmd.json: the command line;.events.jsonl: the CLI’s raw event stream;.stderr.txt: its error output;.output.jsonor.answer.md: the answer AgentDuo read;.answers.jsonl: your answers to Claude’s permission prompts;.attachments.json: the files the call got.
A step that failed with an error leaves logs/error-step<n>.txt. Conversations keep the same call logs in their own folder.
Attached files
- AgentDuo copies each attached file, bytes unchanged, into
conversations/<id>/attachments/, or into a run’sattachments/for a pipeline task, so/resumeneeds neither the original nor the chat. - The copies are never part of a snapshot or of the diff the reviewer sees.
- A file waiting to be sent is dropped by
/newand when the chat closes; a sent one stays.
More: attached files.
duo doctor
Terminal
duo doctorChecks your setup without calling a model:
- Node (22.12 or later), Git, and whether the workspace is inside a Git repository;
- the configuration files and the output schemas;
- each CLI: found, its version, and the protocol flags AgentDuo needs;
- permission notes, such as a Codex implementer relying on your Codex sandbox;
- each gate’s command, and whether the runs directory is ignored by Git.
Run it after installing or upgrading Claude Code or Codex. The desktop app shows the same checks in Settings → Diagnostics.
Desktop app diagnostics
- Settings → Diagnostics shows the versions, the PATH the agents get and where each entry came from, both CLIs’ status,
duo doctor’s checks and the app’s recent log lines, including the updater’s. - Export writes exactly what the preview shows. It leaves out credentials, prompts, attachments and the environment; your home folder is written as
~, and long tokens become[redacted]. - Settings → Storage (read only) shows where runs and conversations live and where the app keeps its own data.
| System | Folder |
|---|---|
| macOS | ~/Library/Application Support/AgentDuo |
| Windows | %APPDATA%\AgentDuo |
| Linux | ~/.config/AgentDuo |