ashlr

/ashlr-doctor

Diagnose an ashlr-plugin install — checks plugin path, version, MCP servers, hooks, stats, genome, and settings in under 10 seconds.

When to use

When something isn't working: tools not appearing, status line missing, savings not accumulating, or a tool call returning an unexpected error.

What it does

Runs bun run scripts/doctor.ts from the plugin root and prints its output verbatim, so you can paste it into a GitHub issue. If the last line reports any warnings or failures, the agent offers to apply the fixes. Each ⚠ or ✗ line carries the exact command to run, and nothing is applied without your yes.

The report has these sections:

  • install — plugin root, Bun, node_modules dependencies, and the phantom CLI
  • companions — the other Ashlr tools on this machine: phantom (phm), phantom-secrets (phantom), locus, lexicon, ashlr-md (mdopener-mcp) and ashlr-stack (stack). Each gets --ashlr-handshake --json with a 2 second timeout and a minimal environment, so no token reaches it. These lines are informational and never count as warnings or failures.
  • mcp servers — each server and the tools it lists
  • runtime state — ~/.ashlr/stats.json, genome and manifest freshness, the attribution and editBatchingNudge settings, the tool allowlist, the status line, Pro sign-in, the ONNX model and the project hint
  • cloud — GET /healthz on the backend with a 3 second timeout. An unreachable backend is a warning only. ASHLR_API_URL overrides the URL, and ASHLR_API_URL_DISABLE=1 skips the check.
  • summarizer routing, hooks and hook performance (p50/p95 per hook)

bun run scripts/doctor.ts --json prints the whole report as JSON. /ashlr-doctor --errors also appends a Recent errors section from scripts/errors-report.ts.

Output

Abridged; paths, versions and counts vary by machine.

ashlr doctor · plugin v1.38.8 (latest: v1.38.8 · up to date)

install
  ✓ plugin root      ~/.claude/plugins/cache/ashlr-marketplace/ashlr/1.38.8
  ✓ bun              1.3.14
  ✓ node_modules     @modelcontextprotocol/sdk@1.32.2 · @ashlr/core-efficiency@0.3.0

companions
  · locus            not installed
      fix: optional: install locus (`locus`), see https://github.com/ashlrai/locus#readme

mcp servers
  ✓ efficiency       5 tools: ashlr__read, ashlr__grep, ashlr__edit, ashlr__flush, ashlr__savings
  ✓ bash             5 tools: ashlr__bash, ashlr__bash_start, ashlr__bash_tail, ashlr__bash_stop, ashlr__bash_list

runtime state
  ✓ settings         attribution:on editBatchingNudge:on
  ⚠ pro status       not signed in
      fix: run: /ashlr-upgrade

cloud
  ✓ cloud            healthy (84ms)

hooks
  ✓ session-start.ts
  ✓ pretooluse-read.ts

1 warnings · 0 failures

On this page