Skip to content

EXboys/agent-doctor

Repository files navigation

Agent Doctor

Diagnose, back up, and repair local AI agent runtimes.

Agent Doctor helps developers and teams understand why Claude Code, Codex, OpenClaw, Hermes, and other local agent runtimes break, then safely repair them with redacted diagnostics, typed actions, backups, and audit reports.

License: MIT


Why Agent Doctor?

Developers and teams increasingly run several local AI agent runtimes:

Runtime Typical config
OpenClaw ~/.openclaw/openclaw.json
Hermes Agent ~/.hermes/config.yaml
Claude Code ~/.claude/settings.json
Codex CLI ~/.codex/config.toml

Each runtime has its own install path, gateway settings, skills manifest, policy surface, and failure modes. Agent Doctor gives you one local client to answer:

  • What is installed on this laptop?
  • Where do configs live?
  • Are runtimes pointed at the approved company gateway?
  • Which configs drifted away from the team profile?
  • Why did this employee's agent stop working?
  • What needs to be backed up before repair or policy remediation?
  • Can we safely restore the runtime to a compliant team baseline?
  Your laptop
 ┌─────────────────────────┐
 │ Agent Doctor            │
 │ doctor · repair · setup │
 └───────────┬─────────────┘
             │
   OpenClaw · Hermes · Claude Code · Codex

Teams can plug in an enterprise control plane (e.g. Evotown) for gateway keys, SkillHub, policy, compliance checks, and audit workflows — see docs/enterprise.md.


Status

🚧 Early MVP — Rust workspace + agent-doctor doctor + Tauri menubar shell. See docs/ROADMAP.md for remaining P0 items (repair, setup, sync, policy pull).

Repair safety and compliance are part of the product surface: diagnostic data is classified by sensitivity, secrets are redacted before AI analysis, and real repair execution must use typed actions with backups and audit reports. See docs/repair-safety.md.


Planned commands

# Discover installed runtimes, config paths, gateway wiring, and drift
agent-doctor doctor

# Back up, diagnose, and repair a broken or non-compliant runtime
agent-doctor repair openclaw

# Apply company profile (URL + API key + per-runtime config)
agent-doctor setup --url https://gateway.company.internal --key ...

# Pull private skill bundle from control plane
agent-doctor sync

# Cache policies from control plane
agent-doctor policy pull

Relationship to other tools

Project Scope
ClawPanel Rich GUI for OpenClaw + Hermes
ClawPal OpenClaw desktop config companion
Agent Doctor Team runtime diagnosis, backup, repair, policy checks, and compliance reporting

中文

Agent Doctor(企业本机 Agent 诊断、修复与合规工具) 用于在员工电脑上发现已安装的 OpenClaw、Hermes、Claude Code、Codex 等,备份配置、诊断故障、修复运行时,并验证团队网关、Skill 和 policy 配置是否合规。

详见 docs/zh-CN/README.md。企业控制面集成(可选)见 docs/enterprise.md


Development

# CLI
cargo run -p agent-doctor -- doctor

# Local CI checks (fmt / clippy / test)
make check
# or: ./scripts/check.sh cli

# Desktop menubar (requires Node.js)
cd desktop && npm install && npm run tauri dev

See docs/development.md, docs/ROADMAP.md, docs/install.md, cli/README.md, desktop/README.md, and CONTRIBUTING.md.

Install

Prebuilt CLI and desktop bundles are published to GitHub Releases.

# Latest CLI (pick the pattern for your OS — see docs/install.md)
gh release download --repo EXboys/agent-doctor --pattern 'agent-doctor-*-macos-arm64.tar.gz'
tar -xzf agent-doctor-*-macos-arm64.tar.gz && chmod +x agent-doctor
./agent-doctor doctor

License

MIT — see LICENSE.