Skip to main content
Run agentx doctor before your first install, or whenever something looks wrong. It only reads: it never creates or changes anything in agentx home.
When a row is warn or fail, the report ends with an issues block instead, repeating each one with its fix:
The source_remotes and staged_imports rows appear only once the account repo exists; on a fresh machine there is nothing to read. The rows are grouped by what they check: System is git and the home directory, App is agentx’s own state, Clients is every detected agent configuration, with the count in the title. In a terminal the rows are coloured by status: green for ok, yellow for warn, red for fail, blue for info. Read the last block first: it repeats every warning and failure with its fix.

What it checks

Each row is ok, warn, fail or info, marked ✓, !, ✗ or •. Every warn and fail row is listed again at the end under <n> issues, with its fix as a hint: line under the detail.

Exit codes

  • 2: git is missing or older than 2.40. The hint names the fix; on Ubuntu 22.04, which ships git 2.34, install a newer git or upgrade the distribution. Every other command except version refuses to run until git is fixed.
  • 8: account.git in agentx home exists but is not a repository git can read. Check the directory, or move it aside.
  • 9: you stopped the run with Ctrl-C. See Output and exit codes.
  • 0: everything else, warnings included.

Script it

Add --json to get one doctor event per check with check, status, detail and, when there is a fix, hint:
Add --verbose to see every git command doctor ran and what git printed.