> For the complete documentation index, see [llms.txt](https://docs.publicai.io/publicai-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.publicai.io/publicai-documentation/publicai-trajector-cli/reading-output.md). Agents can also search and read this documentation through its [MCP server](https://docs.publicai.io/publicai-documentation/~gitbook/mcp).

# Reading output

## Reading `status` and `doctor`

Two commands answer "is this thing working". `status` describes; `doctor` describes **and repairs**. Neither ever guesses.

### How a line reads

Both commands read from one scale, so a line means the same thing wherever it appears.

**The first line is the verdict.** `status` opens with it, before the version and the blocks, and `enable` ends with the same line:

```
Recording: on (3 project(s))
```

The other four readings are `Recording: PAUSED on this device`, `Recording: STOPPED on this device (spool full)`, `Recording: STOPPED on this device (routing table unreadable)`, and `Recording: off in this project`.

**Every marked line opens with its severity.**

| Prefix     | On a terminal       | Meaning                             |
| ---------- | ------------------- | ----------------------------------- |
| `error:`   | red, `✗`            | Wrong, and a decision is yours      |
| `warning:` | yellow, `!`         | Worth reading; recording continues  |
| `fixed:`   | green, `✓`          | Was wrong, and `doctor` repaired it |
| `ok:`      | green, `✓`          | Checked, nothing wrong              |
| `note:`    | no glyph, no colour | A fact that asks nothing of you     |

`doctor` marks every line it prints. `status` marks only what is wrong — `error:` or `warning:` — and leaves the rest of its lines unmarked, so a screen with nothing wrong has no marked line on it. Within a `status` block, what is broken is printed first.

**A problem is three lines**: what stopped, why, and the one command that ends it, on a line of its own so it can be copied whole.

```
  error: Recording is paused everywhere
    why:  the consent record at /home/you/.config/trajector/consent.json could not be read (consent: unreadable consent record: unexpected end of JSON input)
    fix:  trajector enable
      (with --no-proxy if you use it)
```

The `fix:` line carries a command and nothing else; what the command line cannot carry follows under it. Where nothing trajector runs can end it — a port another process holds, for instance — there is no `fix:` line, and what to do is stated under the problem instead.

**Colour and glyphs are for terminals only.** Colour is used only when a terminal is reading, and the glyphs `✓ ✗ !` only where the locale states UTF-8; elsewhere they are `+ x !`. `NO_COLOR`, `TERM=dumb`, and the global `--no-color` flag each turn the colour off and keep the glyphs. Output to a pipe or a file is plain ASCII with no escape sequences, so it can be read by a script or pasted into a report.

**Exit codes.** `status` exits `1` when it printed anything at error severity, `0` otherwise. `doctor` exits `1` when an `error:` is left over after its repairs.

### `status`, block by block

```
Recording: on (3 project(s))
trajector 0.4.0

Device
  Signed in.
  Images and documents: uploaded.
  Automatic upgrades: last checked 2026-10-13T09:02:17Z, up to date.

Project /path/to/project
  Contributing; recording is on for this project.
  Remote Control: inside this project, /remote-control will not be available. …
  Calls the local proxy did not witness are rewarded at a lower rate than witnessed ones. …
  Judged from configuration readable on this machine, Claude Code will load trajector's hooks in this project
  Session files: 4 session(s) registered; last read 2026-10-13T09:12:41Z; 0 B not read yet.
  Sessions started under another spelling of this project's path, or under a directory name Claude Code was told to use instead, are stored under names this device does not compute and are not collected.
  Claude Code settings: showThinkingSummaries on (set by trajector).

Proxy
  Running at 127.0.0.1:41100: version 0.4.0, up 4m12s.
  Recorded since it started: 3 (SSE degraded: 0, dropped: 0).

Spool
  184.2 KiB of 2.0 GiB used.

Uploads
  Last upload: 12 record(s) (612.4 KiB) at 2026-10-13T08:41:02Z.
  Records waiting to upload: none.
```

#### Device

| Line                                                                                            | Meaning                                                                                                                         |
| ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| "Signed in."                                                                                    | The device is paired                                                                                                            |
| "Not signed in. Run `trajector login`…"                                                         | No device token                                                                                                                 |
| "error: the device token store could not be read"                                               | The keyring or the fallback files are unreadable; the `fix:` line is `TRAJECTOR_TOKEN_STORE=file trajector login`               |
| "error: Recording is paused everywhere"                                                         | Something suspended recording on every project; the `why:` line says what, the `fix:` line what ends it                         |
| "Images and documents: uploaded."                                                               | Their content goes up with the rest of the record — the default                                                                 |
| "Images and documents: placeholders only; …"                                                    | `upload_images_and_documents` is `false` in `config.json`: each goes up as a placeholder                                        |
| "error: Images and documents: placeholders only, because config.json cannot be read."           | `config.json` exists but does not read; see below                                                                               |
| "Automatic upgrades: last checked …, up to date."                                               | The last automatic check found no newer release; "upgraded to X" or "managed by Homebrew" when it found one                     |
| "Automatic upgrades: on; no check has run yet."                                                 | The check is on and has not run since it was turned on                                                                          |
| "Automatic upgrades: off (…)."                                                                  | No automatic check: `auto_upgrade` is `false` in `config.json`, `config.json` could not be read, or this is not a release build |
| "Automatic upgrades: off until you accept the current data agreement (run `trajector enable`)." | The agreement you accepted predates the one that describes the check                                                            |
| "warning: Automatic upgrades: the last attempt at … failed: …"                                  | The check or the install failed, and the line says why. Recording is not affected; `trajector upgrade` tries it by hand         |

The Device block always says what goes up of images and documents, because redaction cannot see what they show — see Data and privacy. With their upload turned off, the line also names the one copy the setting does not cover:

```
  Images and documents: placeholders only; their content is not uploaded (upload_images_and_documents is false in config.json). Notebook images that older Claude Code versions keep are uploaded as they are; see PRIVACY.md.
```

A `config.json` that cannot be read stops every other command, but not `status`. It names the file and the failure, and says what that does to a running proxy:

```
  error: Images and documents: placeholders only, because config.json cannot be read.
    why:  reading /home/you/.config/trajector/config.json: unexpected end of JSON input; images and documents go up as placeholders until it reads.
```

There is no `fix:` line: repair or remove the file, and the next `status` shows the setting it holds. While the file cannot be read, automatic upgrades are off too.

#### Project

The heading is the project root `status` resolved from your current directory.

| Line                                                             | Meaning                                                           |
| ---------------------------------------------------------------- | ----------------------------------------------------------------- |
| "Contributing; recording is on for this project."                | Injection and routing table agree                                 |
| "Contributing; recording is paused for now (see Device above)."  | Injection and routing table agree, and a device-wide pause stands |
| "Not enabled. Run `trajector enable`…"                           | Nothing is injected and nothing is granted                        |
| "warning: the injected settings and the routing table disagree." | The two records of consent do not match — run `doctor`            |

The lines under it state the project's recording shape and what it costs, what a call the proxy did not witness is rewarded at, whether Claude Code will load trajector's hooks here, and the project's session files, below. Two more lines appear when they apply:

```
  Upstream: https://your-relay.example (third-party origin).
  The upstream moved from https://old-relay.example at 2026-08-10T08:12:00Z (base-URL configuration change).
```

The first shows whenever traffic goes somewhere other than the official endpoint. The second appears after trajector noticed your base-URL configuration change and followed it.

#### Proxy

| Line                                                                                                                                  | Meaning                                                   |
| ------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| "Running at …: version X, up Y."                                                                                                      | Our proxy holds the port                                  |
| "Not running; it starts on demand with the next session."                                                                             | Normal when you are not in a session — it is not a daemon |
| "error: port occupied by a process that is not the trajector proxy…" or "error: the holder of the proxy port did not answer a probe…" | Something else is on the port — see Troubleshooting       |
| "error: could not verify the proxy at …"                                                                                              | Ours could not be verified; usually a stale admin token   |

{% hint style="warning" %}
**`Recorded since it started` counts from when the proxy started, not from midnight.** The proxy exits after 30 minutes with neither traffic forwarded nor a session file gaining lines — it waits two hours instead while a session's process is still running — and is restarted by the next session, so this number resets more often than the label suggests. It counts what the proxy recorded only, not what was read from session files. A low number here does not mean recording is broken — check `Spool` and `Uploads`.
{% endhint %}

`SSE degraded` counts streamed responses that could not be reassembled into the equivalent non-streaming object; those records are kept as raw stream text and marked, not dropped. `dropped` counts captures that were abandoned — the forwarded request was unaffected either way.

#### Session files

Per enabled project, `status` also reports the second source: how many sessions are registered, when one was last read, and how much is not read yet, followed by the standing notice that sessions started under another spelling of the project's path are not collected.

```
  Session files: 4 session(s) registered; last read 2026-09-20T09:12:41Z; 12.4 KiB not read yet.
```

`Session files: none registered yet.` means no hook has reported one. No line here names a session or a session file.

When the search for a project's session files could not list a directory — a session's `subagents/workflows/` directory or one of its run directories — the line names it, so the subagent conversations in it are not silently missed:

```
  Not looked at: … could not be listed, nor anything below it.
```

`status` shows what the last search that registered the project's session files could not list; `doctor` searches again and shows what it finds now.

A project enabled with `--no-earlier` also carries the way back to its earlier files:

```
  Earlier sessions were skipped at enable; run `trajector enable` again (with --no-proxy if you use it) to collect them.
```

#### Spool

Usage against a 2 GiB quota. When the quota is reached, new captures are dropped rather than evicting what is already there, and the line tells you to upload.

A second line appears when this build met a segment whose shape its redaction does not cover and kept that segment back:

```
  12 segment(s) from 2 session(s) (48.1 KiB) are held on this machine because their shape is new to this build; they are not uploaded.
```

Held segments sit outside the quota, nothing uploads them, reading went on from the next segment, and recording was not paused. `trajector doctor` moves them back for upload once a build reads them cleanly; `trajector forget <session-id>` deletes what is held for a session.

#### Uploads

Last successful upload, last error if there was one, and an error if any batch is quarantined:

```
  error: 3 record(s) in 1 rejected batch(es) are quarantined and will not be retried automatically
    why:  the service refused them or this machine could not read them, and neither is retried on its own
    fix:  trajector doctor requeue <batch-id>
      Name --all in place of a batch id to take every quarantined batch at once.
```

A standing refusal from the service is stated here too, with when uploads stopped:

```
  Uploads are paused since 2026-09-20T14:32:00Z until 2026-09-20T14:47:00Z: the service refused this client access. Captured data is kept.
  Uploads are paused since 2026-09-20T14:32:00Z: the service refused this device's credential. Captured data is kept.
```

Each is followed by the line that ends it. The first retries itself and names when the next attempt is due; the second waits for `trajector login`. Only one of the two stands at a time. Neither is marked as an error, because nothing on this machine is broken.

#### Service

This block only appears while the service has a notice standing for this device:

```
  Notice from the service: …
```

When the service withdraws a notice, it disappears from `status` and `doctor` after the next upload the service acknowledges.

### `doctor`, line by line

```
trajector 0.4.0 doctor

  ok: automatic upgrades: last checked 2026-10-13T09:02:17Z, up to date
  ok: proxy running at 127.0.0.1:41100 (version 0.4.0, up 4m12s)
  ok: injection and routing agree for this project
  ok: Judged from configuration readable on this machine, Claude Code will load trajector's hooks in this project
  ok: every session file of this project is registered (4 session(s))
  ok: capture spool writable (184.2 KiB of 2.0 GiB used)
  ok: no rejected batches quarantined
  ok: live proxy confirms this project routes and records

Everything checks out.
```

Every line carries one of the five prefixes above. Exit is `1` when any `error:` remains, so `doctor` works in a script. `trajector doctor --all` prints the same lines in parts: the device's once under `Device`, then each enabled project's under its root.

#### What it repairs on its own

* Puts the previous binary back when an upgrade was interrupted before the new build accepted it.
* Starts the proxy, or replaces a proxy from an older build — including a hung proxy of ours that holds the port and answers nothing.
* Rewrites a damaged injection in the shape the grant records: token and session hooks restored.
* Adds a session hook missing from an injection made before that hook existed, and writes nothing else of the file: `fixed: completed the session hooks in … (1 added)`.
* Lifts a device-wide recording pause once it has read the session files again and every line it read was whole: `fixed: recording resumed: this build read the session files again and every line it read ended in a newline`. After an upgrade it lifts a pause the previous build set: `fixed: recording resumed after upgrade: it was paused by …, and this build is …`.
* Asks for session files this device registered but never read: `fixed: asked for 2 never-read session file(s) of this project to be read`.
* Registers session files no hook reported, and asks for those too: `fixed: registered 1 session file(s) of this project that no hook reported, and asked for them to be read`.
* Moves a held segment back for upload once this build reads it cleanly.
* Removes a stale injection whose token no longer records.
* Follows a base-URL configuration change to a new upstream.
* Re-adds the project-discovery hint to your user settings.
* Adds the missing rule to `.gitignore`.

#### What it hands back to you

* Both consent records exist but disagree about the project's identity.
* `CLAUDE_CODE_USE_BEDROCK` / `CLAUDE_CODE_USE_VERTEX` is set — those channels are not supported, so the project is not being captured.
* A base URL moved to a plaintext non-loopback address, which is refused: a non-loopback upstream must use `https`.
* The spool is unwritable or full.
* Batches are quarantined and you have to choose `requeue` or `discard`.
* Sessions of the project were written after its grant that no hook reported, and nothing readable on this machine explains why: `warning: could not determine why the hooks did not report 1 session(s) of this project`, with the causes it cannot check listed under it. Sessions written *before* the grant are a `note:`, not a problem, and `doctor` does not exit `1` over them.
* Another process holds `127.0.0.1:41100` and answers nothing — the line names the command that names the holder on this platform, and `trajector doctor` as the step after the port is free.
* A settings layer or managed settings keep Claude Code from loading trajector's hooks; the line names the layer that decided it, not a file path.

#### Environment notes

On WSL and Windows `doctor` adds an `ok:` line about the topology:

```
  ok: running under WSL: Claude Code must also run inside WSL; a Windows-native claude cannot reach this trajector
  ok: Windows: if a firewall prompt appears for the proxy, allow loopback access; the proxy only ever binds 127.0.0.1
```

These are notes, not problems.
