# ed memory doctor

> Asks the backend to check each service it depends on.

- Canonical URL: https://getedith.pro/docs/cli/memory/doctor
- Updated: 2026-12-02

Asks the backend to check each service it depends on.

Usage:

```
ed memory doctor [--json] [--endpoint <url>]
```

Options:

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `--json` | flag | off | Emits one JSON document on stdout. |
| `--endpoint` | URL | resolution order | Uses this Memory API base URL. |

`--json` shape:

```json
{
  "checks": [
    { "detail": "connected", "name": "postgres", "ok": true, "severity": "blocker" },
    { "detail": "installed", "name": "pgvector", "ok": true, "severity": "blocker" },
    { "detail": "connected", "name": "redis", "ok": true, "severity": "optional" },
    { "detail": "not configured, fusion order kept", "name": "reranker", "ok": false, "severity": "optional" }
  ],
  "degraded": true,
  "ok": true
}
```

Each item in `checks` has the dependency `name`, its own Boolean `ok`, a
human-readable `detail` from the backend, and a `severity`:

| Severity | Meaning |
| --- | --- |
| `blocker` | Memory cannot do its job without it. |
| `degraded` | One capability is lost, the rest still works. |
| `optional` | Off by choice; nothing is broken. |

`ok` is true when no `blocker` check is failing, so an unconfigured reranker
does not make Memory unhealthy while an unconfigured reasoning provider
does. `degraded` is true when any check at all is failing, including optional
ones. `/v1/health` answers 200 when `ok` and 503 otherwise.

The full check set is Postgres, migrations, pgvector, Redis, vault
writability, embeddings, speech-to-text, reasoning, reranker, grounding,
vision, Notion, GitHub, media tooling and personas. Embeddings verifies both
the Ollama version and a real model response. A successful model response is
cached for five minutes so repeated health polling does not keep loading the
model. Vision checks that the configured model appears in `/api/tags`. Media
tooling requires `ffmpeg` and `ffprobe`; `exiftool` is reported when present
but is not required. The vault check creates, writes and removes a temporary
file.

Examples:

```
$ ed memory doctor
postgres  ok  connected
migrations  ok  12 of 12 migrations applied
pgvector  ok  installed
embeddings  ok  ollama 0.32.6, model qwen3-embedding:0.6b loaded
reasoning  ok  openai-compatible at http://ollama:11434/v1, model qwen3:1.7b
reranker  off  not configured, fusion order kept
github  off  no token; set it from the app or `ed memory connectors set`

$ ed memory doctor --json
{
  "checks": [
    { "detail": "connected", "name": "postgres", "ok": true, "severity": "blocker" }
  ],
  "degraded": false,
  "ok": true
}
```

A failing `blocker` is also summarised on stderr after the human-readable table:

```
$ ed memory doctor
reasoning  FAIL  no reasoning provider; set one from the app or `ed memory reason set`
1 blocking: reasoning
```

Behaviour: `doctor` decodes the health report even when the API returns HTTP
503. A reachable but unhealthy backend still exits 0 because health lives in
the payload, where scripts can inspect `ok`. Failure to reach the API exits 4.
`--json` writes only the report to stdout. In human mode the per-check table is
stdout and the blocking summary, when present, is stderr.

## Where to go next

- [`ed memory`](https://getedith.pro/docs/cli/memory), the rest of this group
- [All `ed` commands](https://getedith.pro/docs/cli)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
