Skip to main content
Working with an agent? Give them a link to this page as markdown.

Client

The Watcher client is a single watcher binary installed on each developer machine. It hooks into the supported coding agents (Claude Code, Codex and GitHub Copilot CLI) to record sessions, upload them to your Watcher deployment, and enforce blocking review. This page covers installing and updating it, where its settings live, the command reference, and diagnosing problems with watcher doctor and watcher logs. To run the client inside a container alongside a coding agent, see Containers, or Dev containers for a dev container that reuses the sign-in already on the developer's machine. For an untrusted workspace, review the dev container hardening options. To keep one directory's sessions off your deployment, see Excluding a directory with .watcher-ignore. When your organization turns on agent inventory, the client also reports which coding agents are installed on its machine. Whatever that setting, its 15-minute heartbeat carries its endpoint health, which says for Claude Code, Codex and GitHub Copilot CLI whether each is installed, turned on in Watcher and has Watcher's hooks installed (see what is sent with inventory off).

Transcript uploads​

For Claude Code, Codex and Copilot, the client uploads transcripts in chunks and resumes from saved progress after restarts or network failures. This uses incremental ingest. Copilot targets 8 MiB per request and keeps larger events or dependent event sequences together after capping tool outputs. Tool arguments are not capped.

A tool output longer than 100,000 characters is capped when it is stored. Any image embedded in its text is replaced by a short marker first; if the text is still longer than 100,000 characters, its middle is removed and the first 75,000 and the last 25,000 characters are kept, around a marker that names how many characters were removed and the SHA-256 of the text they were removed from. An output packed with more than one image per 1,000 characters keeps its images, and only its middle is removed. A Codex tool search's result, the tool definitions it found, is cut by whole definitions instead: those that fit in the first 75,000 and last 25,000 characters are kept, around a marker naming how many were removed, so a single very large definition is removed whole. The Analyzer shows the capped output. The deployment applies the cap to whatever any client version sends, so the conversation is stored the same way whichever client uploaded it.

A graded tool call never sends a long transcript whole. When the deployment does not yet hold the conversation up to the call, the client first uploads what is missing, in the same chunks. If more than five chunks are missing, it grades the call from the conversation since the agent's last compaction, at most 48 MiB, and finishes the upload in the background. The deployment keeps that call's grades and links them to the call once the upload reaches it.

The installed remote collector also resumes Claude Code uploads from saved progress beside the transcript in .watcher. It does not perform blocking review.

Deploy server updates before client updates. See Update Watcher.

Install​

The client runs on macOS (Apple Silicon) and x86_64 Linux. Install it with the published installer, telling it which backend this machine reports to:

# Apollo's hosted cloud
curl -fsSL https://github.com/ApolloResearch/watcher-bin/releases/latest/download/install.sh | bash -s -- --cloud

# A backend your organization hosts (see Self-hosting)
curl -fsSL https://github.com/ApolloResearch/watcher-bin/releases/latest/download/install.sh | bash -s -- --watcher-api-url https://watcher.example.com

The installer reads the chosen backend's version and installs the client release matching the lower of that server or the installer itself. It verifies the release checksum, installs the binary as ~/.local/bin/watcher, records the chosen backend, and registers the agent hooks. The one consent prompt is for the Codex config.toml changes described on Supported agents; hook entries themselves, including Claude Code's, are installed without prompting. If ~/.local/bin is not on your PATH, the installer prints the command that adds it. Open a new terminal afterwards so watcher is found.

The latest installer caps the client at the configured server's version. A client newer than its server is not supported. A server supports clients from every release that was the latest release at any point in the previous calendar month or since. For example, a server released in October supports clients from any release that was still the latest on or after September 1. An older client is not supported until it updates. This can happen on a machine that was off for more than a month, or after a server upgrade that spans more than that range. To impose a lower cap within that range, use that release's installer:

curl -fsSL https://github.com/ApolloResearch/watcher-bin/releases/download/v<version>/install.sh | bash -s -- --watcher-api-url https://watcher.example.com

To remove everything (hooks, autostart, and the binary), run watcher uninstall.

Update​

Before every upgrade, read the release pages and their full changelog links for every version newer than the installed version and no newer than the target, including versions you skip. Check behavior changes and complete the steps that apply to your deployment before updating. The update guide explains how to identify the version range.

Update with:

watcher --version # what is installed now
watcher update # install the release matching the configured server
watcher --version # confirm

watcher update reads the configured server's version and installs that release, in either direction. It keeps your sign-in, settings, and local session data. A client running through its login agent runs the same reconciliation automatically every two to two-and-a-half hours, so those machines follow the server on their own.

Before it changes anything, watcher update checks the release with GitHub. It installs only from an immutable release, whose files can no longer be replaced, and only when the downloaded installer matches the SHA-256 digest GitHub records for that release. The check needs HTTPS access to api.github.com as well as github.com. If the check cannot run or does not pass, the command says why and leaves the installed client as it is. A client running through its login agent tries again about an hour later. Releases 0.35.0 and earlier are not immutable, so watcher update and watcher downgrade refuse them.

Installs that update differently:

  • Clients from releases that predate watcher update have no update command. Run watcher uninstall, then re-run the installer, once; later updates use watcher update. Sign-in and settings survive, because uninstall keeps ~/.apollo_monitor/ (see Per-machine settings).
  • Foreground-only clients (no login agent) have watcher update but no automatic check: run it yourself.
  • Mirror-backed installs do not self-update. Publish the approved release to the mirror and redeploy through your fleet tooling (see internal mirrors).

The client upgrade that adds subagent capture migrates local upload state automatically. This migration is one-way. Once a client has run that release, downgrading to an earlier release is unsupported: older clients cannot read the migrated upload state. Reinstalling an older client does not undo the migration, because uninstall preserves local data. This restriction also applies after a server rollback. Downgrading after a database repair has a privacy caveat of its own (see Local database failures).

For rollbacks that do not cross this migration, run watcher downgrade --version <version>. The requested version must be lower than the installed client and must match the configured server. Releases predating watcher update are unsupported downgrade targets.

For clients that have not crossed this migration, rolling back to a release earlier than 0.36.0 isn't automatic: watcher downgrade and the login agent's check both refuse it. Reinstall the client at the server's release on each machine instead:

watcher uninstall
curl -fsSL https://github.com/ApolloResearch/watcher-bin/releases/download/v<version>/install.sh | bash -s -- --watcher-api-url https://watcher.example.com
watcher doctor

If an update fails or leaves the client unhealthy, recovery is the same uninstall-and-reinstall: run watcher uninstall, re-run the installer, then check with watcher doctor. Local state under ~/.apollo_monitor/ survives both steps.

First run and sign-in​

Run watcher with no arguments to start the client's local services. The first such run installs the login agent and turns start-on-login on, then starts in the background and returns control to the terminal. It restarts after a crash and starts again when you log in. Use watcher --foreground to keep it attached to the current terminal without enabling start-on-login.

The client has no local web app. Sessions and their tool-call decisions are reviewed in your deployment's Analyzer, and watcher whoami prints the Analyzer link for the session it runs in (see Command reference). Settings are the files described under Per-machine settings. In a browser, http://localhost:8228 (or the port set by WATCHER_BACKEND_PORT) says how to sign in when the machine needs it. Otherwise it links to the Analyzer and lists where each feature of the former Watcher Live web app moved. While a browser or watcher login sign-in authenticates the machine, the page also has a Sign out button. Escalated tool calls are answered in the coding agent's own permission prompt, unless the agent is set to let its own reviewer answer them, as Codex's "Approve for me" does.

Later runs read the start-on-login setting rather than turning it back on, so watcher autostart disable holds. While it is off, watcher starts in the current terminal and says so.

Any run that starts the client in the current terminal first stops a client the login agent is already running on that same port, so the terminal one can take it. The login agent stays installed, and it starts the client again at your next login unless start-on-login is off. A terminal pointed at some other port with WATCHER_BACKEND_PORT leaves the background client alone, since that client is not the one holding the port being asked for.

How you sign in depends on your deployment's authentication mode, which the client discovers from the backend:

  • SSO deployments (Apollo cloud, and self-hosted in SSO mode): you sign in once, in a browser, through your identity provider. Run watcher from a terminal on a desktop while the machine is signed out, and it waits for the client to start, then opens a one-time sign-in address on http://localhost:8228 (or the port set by WATCHER_BACKEND_PORT). That page hands off to your identity provider. On macOS, Sign in to Watcher in the menu bar opens a fresh one. Only the menu bar and the watcher command can start this sign-in, so another program that reaches the port, such as a container, cannot sign the machine in to a different account. Once you have signed in, Open Analyzer takes its place and opens your deployment's Analyzer. A start without a terminal, such as the login agent starting the client at login, never opens a browser. Recording starts once you have signed in, and the running client keeps the credentials refreshed. Sign out at http://localhost:8228, or watcher logout, signs the machine out.

    Over SSH, or on Linux without a graphical display, watcher prints Sign in: run watcher login. instead of opening a browser. That covers a headless server or a VM you reach over SSH. watcher login prints a URL and a code you approve from a browser on any other device, and stores the same credentials. Machines nobody signs in to use an organization API key. See Signing in without a browser.

  • Header-proxy deployments: the client attaches headers taken from WATCHER_HEADER_* environment variables, which must be set in the environment that runs the installer (or watcher hooks install); there is no browser sign-in. Setup captures the values into a per-deployment file that later launches read, so they persist until you re-run watcher hooks install with new values, or remove the variables from the environment and run watcher hooks clear-headers (the command refuses while the variables are still set, because the next launch would re-capture them). See self-hosting.

A client that was working and later cannot authenticate says so rather than failing quietly. On SSO deployments the macOS menu bar shows Sign in to Watcher. In Claude Code and GitHub Copilot CLI the status line carries a warning: Watcher signed out: uploads paused when the machine has no usable credentials, and Watcher auth error: uploads paused when the deployment is rejecting the credentials it has. watcher doctor reports the same condition in its auth check. In Codex, an approval request that arrives while the client's hooks have stepped aside shows a warning with the request, and Codex's own approval flow decides it. Claude Code and Codex hooks step aside when the machine has no usable credentials, when the local Watcher service is not running outside enforce mode, or after repeated failures have paused grading. The warning suggests watcher login when the client is signed out, and watcher doctor otherwise. In enforce mode, a call that needs grading waits for a local Watcher service that is not running, and is denied if it does not answer in time. See When the Watcher client is not running. A deployment that is merely unreachable for one grade does not trigger this. That grade follows the configured failure decision, described under When grading fails.

Local database failures​

The client keeps its local state in one SQLite database on the machine. If that database becomes unreadable, Watcher may not be able to check some of the agent's tool calls. When database failures repeat over at least a minute, the client says so: the status line in Claude Code and GitHub Copilot CLI shows Watcher database error: tool calls may not be checked, the macOS menu bar shows DB error and posts a desktop notification (subject to macOS notification permissions), each affected Claude Code or Codex session shows one message saying that some of its tool calls may not be checked, and watcher doctor reports it under Local database. A single failure does not trigger it, and failures that stop before reaching that threshold are forgotten after 10 minutes without one.

In enforce mode, a Claude Code tool call that the database stops Watcher from grading gets the configured failure decision, as described under When grading fails. With escalate, the default, a human decides in Claude Code's permission prompt, or, in an unattended claude -p run with nobody to answer, the call is denied; with deny, the call is refused. Either way Claude Code shows a Watcher reason naming the database problem. Command rules and tool thresholds are not applied first, unlike when the Watcher server cannot be reached, so a call they would allow, such as a plain echo, also gets the failure decision.

With a failure decision of allow, Watcher's handling of the database failure does not approve the call: it gives no verdict, and Claude Code carries on with its own permission flow. Claude Code shows no Watcher reason then; Watcher logs the cause to the hook log, or to the hook's standard error when it can't write the log, and repeated failures of a damaged database can also raise the warning above. A snoozed session, or one excluded by .watcher-ignore, also falls through to Claude Code's own rules when Watcher can read that state.

A database Watcher can read but not write, because the disk is full or the database file or its folder is read-only (for example, left owned by root after a sudo command), is handled the same way; when Watcher asks or denies, its reason says that Watcher cannot write its local database. That failure does not raise the warning above and nothing repairs it, since the file is not damaged: free disk space or fix the permissions. A full disk can also show up as a disk I/O error or as "unable to open database file", which Watcher reports as an unreadable database instead. Those count toward the warning, but the record that counts them is kept under ~/.apollo_monitor, usually on the same disk, so the warning cannot come up while that disk stays full.

While the warning is up, the local service tries to repair the database a minute after it starts and every 15 minutes after that, except for an hour after a repair that ran out of time; watcher doctor database --fix runs the same repair at once, whenever it is run. The repair rebuilds the database in place from the rows it can still read, so pending tool-call decisions and other local state on undamaged pages normally survive. Rows on the damaged pages are lost. While the repair runs, tool calls wait for the database: a few seconds for a typical database, longer for a large one. In enforce mode, a Claude Code tool call that the repair holds up for more than about 20 seconds gets the failure decision described above.

Before it rebuilds the database, the repair copies the damaged file into ~/.apollo_monitor/db-repairs/, in a folder named by the time of the repair. The copy holds everything the database held at that moment, including tool-call inputs, and can hold text the database had already deleted; writes made after it are in the repaired database but not in the copy. The client keeps at most three copies, and while the local service runs it deletes copies older than 30 days. watcher doctor shows the most recent repair: when it ran, which tables lost rows and an estimate of how many, how many sessions it kept local in background recovery (below), and where the copy is.

Some records tell Watcher which sessions must not upload: sessions that a .watcher-ignore file excluded or that another Watcher user owns, the folder each session started in, .watcher-ignore decisions recorded by older clients, and which agent session started which. When damage reaches these records, the repair keeps every session they could have been about local in background recovery, as it keeps a session local after its .watcher-ignore file is removed (see .watcher-ignore). Watcher reads which sessions those are from the database's indexes. When the indexes cannot say, the repair does this for every session the database knows of. A new hook event in such a session still uses the current policy, so an active session keeps uploading, and once it is active again with no .watcher-ignore file covering it, background recovery may send its earlier work too, as for any excluded session. The exception is a session whose lost records said which folder it started in or which agent session started it: its hooks use those records to find .watcher-ignore files, so from then on the client treats the session as excluded altogether, as if a .watcher-ignore file covered it. Sessions that start after the repair are not affected, unless one of those sessions started them. If the indexes cannot say which sessions such records were about, the repair is refused (below). Client releases from before this repair do not know about these excluded sessions: after a downgrade to one, including one that follows a server rollback, such a session's hooks can send it for grading and upload its transcript again, unless a .watcher-ignore file covers the folder it is working in. Resuming it there can also let background recovery upload its earlier work.

The client refuses the repair, changes nothing, and the warning stays in these cases. watcher doctor database --fix says which one applies.

  • The damage reaches records that must not lose a row: the database's own list of tables, records that other records point at, and its id counters. Ask your administrator.
  • The damage reaches the records of which folder a session started in or which agent session started it, and the database's indexes cannot say which sessions they were about. A session whose records were lost entirely could otherwise resume with nothing to tell Watcher it must not upload. Ask your administrator.
  • watcher doctor warns that SQLite's file locking may not protect the database (see below). The repair relies on that locking to keep every other program out while it rewrites the file. Fix the setup first.
  • The disks lack free space: the repair needs about three times the database's size, two thirds of it under ~/.apollo_monitor and the rest beside the database.
  • SQLite refuses to read the file at all, for example because it is shorter than its header says. Ask your administrator.
  • The database stays in use without a pause for 15 seconds, or another repair is already running. The local service tries again at its next check.

Once raised, the warning stays until a repair succeeds or a full read-only integrity check of the database passes. The local service runs that check on each attempt, and watcher doctor runs it at once, so a warning left over from failures that have stopped clears on its own. If the failure record itself is damaged and can't be read, watcher doctor says so and removes it. Reinstalling the client keeps local data, so it does not repair the database. Before replacing a damaged database, keep a copy and ask your administrator: a new database starts without tool-call decisions that have not uploaded yet, and without the records that keep sessions excluded by .watcher-ignore, or owned by another Watcher user, from uploading.

watcher doctor also warns, under Local database, about setups in which SQLite's file locking may not protect the database, whether or not it has failed yet:

  • the database file has more than one hard link, so another program could open it under a different name;
  • ~/.apollo_monitor is on a network filesystem or a share a VM or container uses to reach the host's files;
  • Watcher runs with a SQLite older than 3.51.3.

Keep the database on a local disk, make sure every program that opens it uses the same path, and run the installed client.

Agent hooks​

watcher hooks install installs or repairs enabled agents' hooks and removes disabled agents' hooks. The installer runs it automatically. See Supported agents for coverage and default enablement.

Use watcher agents list to check status. Run watcher agents disable <agent> to turn monitoring off, or watcher agents enable <agent> to restore it. Names are claude_code, codex and copilot. Restart the coding agent after a change.

Choices survive profiles, updates and hook repair. They are saved in settings.local.yaml; administrator locks take priority. Disabling stops new transcript reads, but Watcher may still upload decisions it already recorded for that agent. If enablement setup fails or you decline consent, the choice stays saved; run watcher hooks install to finish. --yes accepts setup changes.

StatusMeaning
currentHooks and related settings are up to date.
needs setupEnabled; run watcher hooks install to repair hooks.
needs removalDisabled; run watcher hooks install to remove leftover hooks.
offDisabled, with hooks removed.
agent not installedEnabled, but the agent was not detected.

If the agent settings cannot be read, Watcher still starts with a warning and leaves existing hooks unchanged. watcher hooks install warns and installs hooks for every supported agent, while watcher agents enable and watcher agents disable stop with the error. Fix the error, run watcher doctor settings, then run watcher hooks install again. Older clients ignore agent mappings and can lose local choices on rollback; see agent enablement.

Hook files are user-writable: ~/.claude/settings.json, ~/.codex/hooks.json and ~/.copilot/hooks/watcher.json. CODEX_HOME and COPILOT_HOME override the latter two homes. See Copilot setup and MDM protection.

Because an agent can write these files and Watcher's own settings under ~/.apollo_monitor/, the built-in command rules ask a person to approve an agent's direct edits to them, including edits made through a symlink, a hard link or a relative path. A profile that turns review off for a tool, such as Skip Permissions, also turns this off for that tool. A script or build step the agent runs can still change the files, so protect them with your MDM where that matters.

watcher hooks remove removes every agent's hooks and the login agent, and keeps Watcher's data. Uninstall scripts can rely on it. It saves no disable choice, so to keep one agent off, use watcher agents disable <agent> instead. watcher uninstall removes Watcher. Stopping the client leaves hooks installed.

How sessions reach your deployment​

The client uploads conversations to the deployment recorded at install time. Claude Code, Codex and Copilot upload after tool calls and at the end of each agent turn. A session can appear in the Analyzer while it is still running. There is no periodic batch export to wait for. Uploads also carry the machine's hostname, which labels the session in the Analyzer. Inside a container, that is the container's hostname.

When an upload fails, the client retries it in the background. This also covers a session that has since closed, and a final assistant answer with no tool-call decision waiting. The client checks for due retries every 30 seconds. Failed uploads back off to at most 15 minutes between attempts. A long upload that the deployment is still accepting when a retry's time runs out continues straight away instead, until it is complete or stops making progress. After about a day of failures, the client stops retrying that session until the agent's next hook event. A pending retry is dropped once its session file is deleted or has not changed for about a week; the agent's next hook event queues it again. For these retries the client keeps only a reference to the session file; it does not save another copy of the conversation.

While a running Claude Code session is part-way through compacting its conversation, an upload can hold back the newest entries until the agent writes its next turn, for at most five minutes after the compaction. The next turn's upload sends them, or else the first background retry after those five minutes. A session that has ended, or whose Claude Code process has exited, is sent without waiting.

Retries keep the original deployment, so switching deployments does not send old sessions to the new one. With a browser sign-in, retries also keep the signed-in user. Signing out pauses them, and the week limit still applies while they are paused. Signing in as someone else does not send the previous user's sessions. API keys and credential helpers count as one user per deployment, so rotating a key keeps pending retries.

Tool-call decisions have their own background delivery pass. A developer can deny a call after the last conversation upload, with no later hook event to carry the decision. That pass catches up on missing history where needed and then uploads waiting decisions.

For tracked Claude Code and Codex conversations, the client also retries missing transcript uploads independently of tool-call decisions. Root and child conversations use the same recovery path, including conversations that made no tool calls.

The one exception is a directory an administrator has allowed you to exclude with a .watcher-ignore file. Sessions that file covers are not uploaded at all, so they stay on the machine and never reach the Analyzer. Once a hook or the background pass has found a session excluded, the background pass uploads nothing for it, even if the file is later removed, until the session is active again with no file covering any folder it worked in. Watcher does not upload the tool-call decisions it recorded while a session was excluded. Each tool call made while the file covers a session is still reported as a content-free tool-call record with reason watcher_ignore, described in What reaches your deployment.

Calls Watcher did not grade​

Some tool calls reach the agent without Watcher grading them: the client is signed out or its credentials are rejected, its local service is not running, grading is paused after repeated timeouts, the agent's transcript cannot be read or is still empty, a hook fails before deciding, or a .watcher-ignore file covers the session. For Claude Code and Codex, the client records each such call it observes and sends it as a tool-call record: the call's time, tool name, the agent's own ID for the call, and the reason it was not graded. Each request of records also names the agent and the agent's own conversation ID, and is sent with the signed-in person's credentials, so the session it creates or joins is attributed to them. A record says the call was observed, not that it ran, and never holds the call's input, output or working directory. Once the deployment holds the call's conversation, the record becomes an ordinary tool call in the Analyzer, keeping the reason.

A record waits on the machine while it is signed out and is sent once someone signs in; records made while signed out go to whoever signs in next. If a different person signs in, records made under the previous person's sign-in are discarded rather than sent under the new one. Records keep the deployment they were made for, and are discarded unsent after 30 days. A Codex call the client cannot identify by the agent's own call ID is counted on the machine and never sent as a record.

Each request of records names the client's installation, so the agent inventory page can count each machine's records. The client's endpoint health reports how many are still waiting to be sent. GitHub Copilot CLI calls are never sent as records.

The backend keeps recordings under different owners separate, even when their native conversation IDs match. An attributed Aperture gateway capture can join a client's session when both record for the same developer. See Two recorders.

If the client has recorded an ownership refusal for a conversation, it stops uploading that conversation. It shows the agent a one-time notice and lists the refusal in watcher doctor. Blocking review still grades and answers its tool calls. Complete watcher login with your intended identity to retry refused conversations. For proxy authentication, check the identity in your headers, then run watcher hooks install.

Which backend that is, is a per-install setting:

watcher target set --url https://watcher.example.com # your own deployment
watcher target set --cloud # Apollo's hosted cloud

watcher build-info prints the version and the backend target a launch would resolve, and watcher doctor (below) verifies the target is reachable and accepting this machine's requests.

Per-machine settings​

Blocking review resolves from settings on each machine: which graders run, the per-tool flag and deny thresholds, and the enforcement mode. Admins can distribute and lock these org-wide with managed client settings instead of configuring every machine by hand. The concept pages explain what each setting does; on the machine they live in layered YAML files under ~/.apollo_monitor/:

  • settings.yaml is the admin baseline. Values set here apply machine-wide, and the enforcement mode is read only from this file. On deployments that distribute managed client settings via Watcher, the running client pulls the org's document every few minutes and replaces this file with it, so hand edits do not stick; otherwise an administrator or an MDM profile writes it. Admins can lock individual values so local edits cannot override them.
  • settings.local.yaml holds the developer's own overrides.
  • Each settings profile is an entry under profiles in whichever of those two files defines it, so a profile's admin values live in settings.yaml. A developer's own edits made while a non-default profile is active still land in settings.<profile>.local.yaml.

A settings profile is a named bundle of these review settings that can be switched as a unit. The client ships with Default, Auto, Human in the Loop, and Skip Permissions profiles, and a deployment can add its own. watcher profile list shows what is available, watcher profile current the active one, and watcher profile set <name> switches; it accepts a profile's id, its display name, or any of its alternative names. Human in the Loop's id is permissive; you can also write human-in-the-loop. Both work in a settings file's active_profile, though a profile an organization pins for every machine is named there by its id. The client also installs a /watcher command in Claude Code and a $watcher skill in Codex. Both run these profile commands for you, for example /watcher profile auto.

watcher settings show prints the effective settings. It shows the active profile, the enforcement mode, and whether snooze is allowed. A table lists each tool's flag and deny tool thresholds and which of them your organization locked. Below it come the settings files the client reads, each marked present or absent. Last come local values that do not take effect, because your organization locked them or because only the organization can set them. Then come your rule changes: each command rule your local files add or change, with the fields each change sets. watcher settings show --json prints every effective setting. In that output each flag_threshold and deny_threshold is an object with a value and a permission of locked or modifiable. The same output lists your rule changes under local_rules and the problems watcher doctor settings reports under settings_problems. Problems loading a settings file, and other settings problems, are printed on standard error, and the command still exits 0. It works while the client is stopped.

Beyond settings, ~/.apollo_monitor/ holds the client's other local state: a local database of sessions, pending decisions and transcript upload/grading progress, client logs, the installation ID file installation.json, the agent inventory state files in inventory/state/, one per Watcher deployment the client has reported to (when the client last scanned, last had a report accepted and scans next), the records of calls Watcher did not grade waiting to be sent (in the local database, or in db/missed_calls.spool/ while the database is unavailable), heartbeat schedule files in heartbeat/, one per Watcher deployment (when the next heartbeat or retry is due), and the sign-in credential, auth-header and short-lived browser sign-in state files, written with owner-only (0600) permissions. watcher uninstall intentionally keeps this directory and prints a reminder; remove it manually to wipe a machine's local Watcher data (nothing already uploaded to the deployment is affected).

Changing your own settings​

To change a value your organization has not locked, edit ~/.apollo_monitor/settings.local.yaml, and create it if it does not exist. The client reads the file again on the next tool call, so there is nothing to restart. While a profile other than Default is active, that profile's values take precedence over this file. Agent choices saved as a mapping in the root local file apply across all profiles, subject to administrator locks. To change another value under the active profile, edit settings.<profile id>.local.yaml in the same folder instead, such as settings.auto.local.yaml for Auto or settings.permissive.local.yaml for Human in the Loop. A file named after an alias, such as settings.automatic.local.yaml, is ignored. watcher settings show lists the exact path as the local_profile file.

This example asks you about more Bash commands, denies those that score 9 or higher, and approves just test without grading:

version: 1
tool_thresholds:
Bash:
flag_threshold: 4
deny_threshold: 9
command_rules:
rules:
- id: allow-just-test
tool_name: Bash
name: Allow just test
category: file_directory
regex: '^just test$'
decision: allow
priority: 300

Tool thresholds. The gateway grader scores each call from 1 to 10. A score at or above deny_threshold denies the call, and a score at or above flag_threshold escalates it to you. 0 means always and 11 means never. Both at 11 allows the tool without grading, a deny threshold of 0 denies every call, and a flag threshold of 0 with a deny threshold of 11 asks about every call. These three also switch off the tool's command rules, deny rules included. With other values, allow rules still approve their commands before grading. When both thresholds are between 1 and 10, the flag threshold must be lower than the deny threshold. Name tools as watcher settings show lists them, such as Bash, Edit or apply_patch.

Command rules. Give a new rule every field in the example, and a unique id. To get the fields right, copy a built-in rule from watcher settings show --json. regex is searched for in each part of a shell command, ignoring case, so anchor it with ^ and $ to match a whole command. For Edit and Write rules it is searched for in the file path. decision is allow, triage to grade the call, human to ask you, deny, or "off". Quote "off", because YAML reads a bare off as false. For each part of a command, the first matching rule in priority order decides, lowest number first. So your allow rule takes effect only when no built-in rule with the same or a lower number also matches; check the built-in rules' numbers in the same output. An allow rule approves a shell command only when every part of it is allowed, so just test && ./deploy.sh still goes to grading.

Changing a built-in rule. Add an entry with the built-in rule's id and only the fields you change, such as decision or regex. watcher settings show --json lists every built-in rule with its id. This example turns off the built-in rule that approves read-only file commands such as ls. Those commands then go to grading:

version: 1
command_rules:
rules:
- id: bash-read-only-filesystem
decision: "off"

To reset your rule changes, run watcher settings reset rules. It shows what it will change, asks you to confirm, and removes the command_rules section from settings.local.yaml, from its profiles: entries and from each settings.<profile id>.local.yaml. --profile <id> resets one profile only, where default means the changes outside profiles:, which apply under every profile. --yes skips the question. The command rewrites each file it changes, which removes the file's comments, and first copies the file to a new folder under ~/.apollo_monitor/settings-backups/. If your organization locked command rules, your entries do not take effect, and watcher settings show lists them under "Local values that do not take effect".

Never delete settings.local.yaml to start over. When that file is missing, the client imports any settings an old client version kept in its local database, which can bring back rules and thresholds you no longer use. Reset the rules instead, or edit the file down to version: 1.

Checking a change. Run watcher doctor settings after each edit. It checks every profile's settings. It reports a file that does not load, a value outside the allowed choices, a rule missing tool_name, name, category, regex or priority, and a change to a rule id that does not exist. It also reports a priority that is not a whole number, an unquoted off and a regex that does not compile. Its warnings cover a threshold outside 0 to 11, a flag threshold that is not below the deny threshold, and a tool name that differs from a built-in tool's only in case, spaces, - or _. A local threshold outside 0 to 11 also causes a settings load error when its profile is active. A broken command rule is an error when it affects the active profile's approvals. Rule problems that apply only under another profile, or to a disabled rule, are warnings.

An entry whose id matches no built-in or organization rule counts as a new rule, so it needs every field unless its decision is "off". A settings file that does not load, a rule error, or a rule missing one of those fields turns off every approval from command rules, built-in rules included. Doctor then reports "Command-rule approvals are off" above the problems that cause it. A regex that does not compile, or that contains a conditional group ((?(), turns off approvals for its rule's tool. Then run watcher settings show: check that the table shows your tool with the values you set, and that your rule appears under "Your rule changes".

Repairing mistakes. watcher doctor settings --fix shows the changes it would make, asks you to confirm, and then makes exactly those changes. Afterwards Watcher approves nothing it would not approve with the broken entries deleted:

  • A change to a rule id that does not exist is deleted.
  • A bad field in a change to an existing rule is removed, so the rule's own value applies. If the rest of that change could let the rule approve more, such as decision: allow on a rule that grades, the whole change is deleted instead, and you can add back what you meant.
  • A new rule of your own that cannot be used is turned off with decision: "off", and its decision is kept as last_decision.
  • An unquoted off becomes "off" on an allow rule. On a deny, human or triage rule it is removed instead, because turning that rule off could approve commands it now stops.
  • An entry in command_rules.rules that is not a rule, or a command_rules section the client ignores, is removed.

It leaves thresholds, tool names, files that do not parse, files with a version other than 1, symlinked files and your organization's settings.yaml as they are. A problem in a rule your organization defines is the organization's to fix, even when your own file changes that rule. It also leaves an entry alone when changing it would change how another profile, where the entry works, decides, or when the change would have no effect. Like reset rules, it rewrites each changed file without its comments after backing it up, and --yes skips the question. A run that cannot ask, such as one from a script, prints the changes, writes nothing and exits 1 unless you pass --yes. When the changes uncover another problem it can repair, it says so, and the next run shows that change before making it.

Environment variables​

Almost everything about the client is configured through the settings files above. A few things are not, because they have to be in place before the client can read a settings file at all: which backend to talk to, which port to listen on, and how to trust your TLS.

Where you set them decides whether they take effect. The agent hooks run as short-lived subprocesses that the coding agent spawns, and they inherit nothing from your shell. A variable reaches them only because watcher hooks install bakes it onto the hook command lines as it writes them. So for anything in the first group below, set the variable in the environment that runs the installer (or watcher hooks install): your shell's startup file, or ~/.config/environment.d/watcher.conf on Linux. Re-run watcher hooks install after you change it. Changing the variable alone leaves the already-installed hooks on the old value.

Read by the hooks, so they must be set when hooks are installed:

VariableDefaultWhat it does
WATCHER_API_URLthe recorded targetThe backend this machine reports to. Overrides whatever watcher target set recorded, both for this launch and for the hooks installed by it. A value with no scheme is read as https://. Prefer watcher target set for a lasting change; use this to point one launch somewhere else.
WATCHER_BACKEND_PORTThe packaged client's recorded port, else 8228The port the local service listens on, and the address a browser opens to sign in. Change it when something else on the machine already owns 8228. The packaged client records the port it last bound in ~/.apollo_monitor/backend-port, and watcher, watcher doctor, and watcher hooks install reuse that port when this variable is unset, even while the client is stopped. On an SSO deployment, browser sign-in on a port other than 8228 works only if http://localhost:<port>/callback is registered as a sign-in redirect for your deployment; otherwise sign in with watcher login.
SSL_CERT_FILEthe system trust storePath to a CA bundle, for a deployment behind an internal CA or a self-signed certificate. Forwarded to the hooks only when it is set.
WATCHER_API_KEYnoneAn organization API key for the machine to authenticate with, instead of a browser sign-in. Mainly for unattended installs such as containers; a developer machine signs in instead. Captured authentication headers and a stored sign-in token take precedence over this key. Unlike the variables above it is not baked onto the hook command lines, so it must be set in the environment the agent runs in, where the hooks inherit it.
WATCHER_HEADER_*noneOne variable per header the client sends to your deployment, on header-proxy deployments. These are the exception to the rule above: rather than being baked onto the command lines, where they would show up in the process list, they are captured into an owner-only file that later launches read. See Sending additional headers.

Read by the client itself, so it must be set in whatever starts it:

VariableDefaultWhat it does
WATCHER_MENUBAR1Set to 0 and the macOS menu bar icon never starts. No effect on Linux.
WATCHER_BACKEND_WORKERS2Number of local HTTP worker processes. Must be a positive integer. Set to 1 to reduce memory use. A second worker can answer new requests while one worker is busy; background synchronization still runs once. Restart the client after changing this value.
WATCHER_BACKEND_RELOAD0Source development only: set to 1 for automatic reload when source files change. Reload mode uses one request worker and overrides WATCHER_BACKEND_WORKERS. No effect on the packaged client.

On macOS, the menu's "Run Watcher Doctor…" item opens the doctor report in a window at any time. The "Watcher found problems" item opens the same report. It appears while Watcher is signed in and an agent session can run tool calls without asking for approval (see Common failures). It also appears when a settings file fails to load or the last organization settings sync left a warning that watcher doctor settings reports as one, even while signed out. The client checks about every 30 seconds, so the item can take that long to appear, or to clear after a fix.

The menu bar icon's own "Hide Menu Bar Icon" entry closes it for the current run only; it is back at the next start. WATCHER_MENUBAR=0 is how you keep it away.

When the client starts on login it is given almost no environment: by default the login agent runs the binary directly with little beyond PATH. If the running client needs environment variables (WATCHER_MENUBAR, WATCHER_BACKEND_WORKERS, and also WATCHER_BACKEND_PORT and SSL_CERT_FILE where you have changed them, since the client uses those at runtime as well as at hook-install time), install the login agent with --launcher pointing at a wrapper script that exports them. Exporting a variable only in an interactive shell does not change the login agent's environment. See MDM rollout § Start on login.

Command reference​

Running watcher with no arguments starts the client under its login agent, enabling start-on-login on the first run. Every command supports --help.

CommandWhat it does
watcherStart the client in the background under the login agent, installing it and turning start-on-login on if this is the first run. Starts in the current terminal instead while start-on-login is off. On an SSO deployment, a run from a desktop terminal while signed out also opens the browser sign-in page once the client is up. watcher live start and watcher all start remain foreground aliases.
watcher --foregroundStart the client in the current terminal without installing or enabling the login agent. Stops a client the login agent is already running so this one can take the local port.
watcher --versionShow the installed client version.
watcher updateInstall the client release matching the configured server.
watcher downgrade --version <version>Install the configured server's explicitly selected older release.
watcher build-infoShow build details and the backend target a launch would resolve.
watcher whoami [<session ID>]Print the Analyzer link for a Claude Code session or Codex thread: the one the command runs in, or the ID you pass. Exits non-zero with a one-line reason when that session is not in Watcher.
watcher login / watcher auth loginSign in from the terminal without a local browser: prints a URL and a code to approve from a browser on any other device (SSO deployments; needs a server that offers device sign-in). See Signing in without a browser.
watcher logout / watcher auth logoutSign out: asks the deployment to end the stored sign-in's session, then deletes the stored credentials for the selected target. API keys and captured authentication headers stay. See Signing out.
watcher auth helper set / show / check / refresh / clearConfigure and diagnose a trusted CLI that supplies proxy bearer tokens. See External credential helpers.
watcher target set --cloud / --url <url>Record the backend this install reports to.
watcher agents listShow each supported agent's hook status and command name.
watcher agents enable <agent>Enable one agent and install its hooks. Names: claude_code, codex, copilot. --yes accepts config changes without prompting.
watcher agents disable <agent>Remove one agent's hooks and keep them off across restarts and updates.
watcher hooks installInstall or repair hooks for enabled agents and remove hooks for disabled ones. --yes skips the consent prompt (for unattended installs).
watcher hooks removeRemove all agent hooks and the login agent, keeping Watcher's data. Saves no disable choice; use watcher agents disable <agent> to keep one agent off.
watcher hooks clear-headersRemove the captured WATCHER_HEADER_* headers for the selected backend target (header-proxy deployments). Refuses while WATCHER_HEADER_* variables are still set in the environment: remove them first.
watcher profile list / current / set <name>List, show, or switch settings profiles.
watcher settings show [--json]Show the merged settings, which values your organization locked, the settings files read and your rule changes. Per-agent choices apply separately; use watcher agents list for agent status (see Per-machine settings).
watcher settings reset rules [--profile <id>] [--yes]Remove your command-rule changes from your local settings files after confirmation, backing each file up first. Never deletes settings.local.yaml (see Changing your own settings).
watcher rules test <tool> <input> [--json]Show which command rule or tool threshold decides a tool call on this machine, without running the call. Pass the command for Bash, the file path for Edit and Write, or the tool's input as a JSON object for other tools. See Command rule examples.
watcher decisions list [--session <ID>] [--limit <N>] [--json]List the 20 most recent tool-call decisions on this machine, newest first, with each call's input, the decision, the reason and its recorded outcome or human answer. --session shows only one Claude Code session or Codex thread, and --limit sets how many to show. The list includes decisions that never upload, such as those recorded while a .watcher-ignore file excluded the session.
watcher inventory show [--json]Scan this machine for coding agents and list them, then show the installation ID, whether this machine's settings turn on agent inventory, and when the client last scanned, last had a report accepted and scans next. --json prints only the current local scan. Uploads nothing, and works whether or not agent inventory is on.
watcher inventory reset-idGive this install a new installation ID, for example on a machine cloned from an image. If a report is being sent, it waits for it to finish first.
watcher autostart enable / disableTurn starting-on-login on or off in settings.
watcher autostart start / stopStart or stop the login agent now, without waiting for login. If the agent is already running but its backend doesn't answer, start restarts it and waits up to two minutes for it to answer (unless the client is still starting up, in which case it waits for it instead).
watcher autostart enabledExit 0 if autostart is enabled in settings, 1 otherwise (for scripts).
watcher autostart install [--launcher <script>] / uninstallInstall or remove the login agent itself (macOS LaunchAgent, Linux systemd user unit). By default the binary is its own launcher; pass --launcher to run a wrapper script that sets environment variables at login instead.
watcher doctorHealth checks for this install (see below). They never create Watcher's local database. Read-only, except that it clears or removes Watcher's own database-failure record (see Local database failures), and watcher doctor settings --fix and watcher doctor database --fix.
watcher doctor settings --fix [--yes]Repair the settings problems doctor can repair safely, after showing the changes and asking you to confirm (see Changing your own settings).
watcher doctor database --fix [--yes]Rebuild a damaged local database in place from the rows that can still be read, after asking you to confirm (see Local database failures). Exits with status 1 when it refuses.
watcher doctor dumpWrite a support bundle with best-effort redaction.
watcher logs [hooks|daemon|backend]Show client logs, merged across sources by default (see below). -n sets lines, -f follows, --since 2h sets a window, --errors filters.
watcher uninstallRemove hooks, autostart, and the binary.

watcher doctor​

watcher doctor is the first thing to run when sessions stop appearing in the Analyzer or blocking review stops intervening. It does not change configuration, except that watcher doctor settings --fix repairs settings problems and watcher doctor database --fix repairs a damaged local database, each after you confirm. On a deployment using an external credential helper, its authentication checks can invoke that helper and update the token cache.

What it checks​

The report has nine sections, and each can be run alone (watcher doctor auth):

SectionChecks
databaseWhether Watcher's local database keeps failing (see Local database failures). While that warning is up, it runs a full read-only integrity check of the database, which can take minutes on a large database or a slow disk, and clears the warning if the check passes. watcher doctor database --fix repairs a damaged database first. It also shows the most recent repair while its copy of the damaged file is kept. The report titles this section Local database.
targetA backend target is recorded, and any environment override agrees with it.
authBackend reachability, authentication mode, the selected credential, sign-in refresh status, and a live authenticated request where supported. API-key authentication on SSO deployments skips that live check.
hooksThe installed agent hook config matches what the current client would install.
daemonThe local services respond on their port, and whether autostart is installed and enabled.
enforcementNo open agent session runs with an approval policy that bypasses blocking review (for example a Codex session launched with --dangerously-bypass-approvals-and-sandbox). Such a session is still recorded, but Watcher cannot grade or block its tool calls before they run. One to four such sessions are a warning; five or more are an error.
uploadsRecent transcript uploads rejected with HTTP 413 in available hook logs (last 24 hours), and conversations refused because a different Watcher user already records them, and unconfirmed Copilot final recordings. HTTP 413 means an upload exceeded an API or reverse-proxy size limit.
settingsThe active settings profile, the enforcement mode and the snooze state. Run from a directory, it also reports whether a .watcher-ignore file excludes that directory. A settings file or value that fails to load is an error, a deprecated agent list in your own settings file is a warning, and a warning from the last organization settings sync is a warning. A failed sync becomes a warning only after three failed attempts in a row, about ten minutes, and organization settings this client version does not understand are listed in the section without a warning. Sync warnings expire 15 minutes after the last completed sync attempt, whether that attempt succeeded or failed. Continuing failed attempts keep the warning current. It also checks every profile's command rules and thresholds for mistakes the client would otherwise apply without a word, such as a rule missing a field. This section is shown even when it passes.
decisionsHow long the oldest tool-call decision waiting to upload to the deployment has waited, whether any decisions are waiting on a session that never uploaded, whether any decisions ran out of upload retries, and how many decisions are kept on this machine because their session ended without keeping a transcript. Decisions more than seven days old are left out, as are sessions a .watcher-ignore file excludes and sessions the deployment refused for another Watcher user. The report titles this section Decision delivery.

Reading the output​

Each check reports ok, a warning, or an error, with a suggested fix in the message or on a Fix: line under it. By default, Agent Hooks, Settings, and any problems are shown. Other passing sections are named on one line; --verbose shows passing checks too, and --json emits the full report for scripts. The exit code summarizes the report: 0 healthy, 1 at least one error, 2 warnings only.

watcher X.Y.Z — target: https://watcher.example.com — auth mode: workos
Auth
✗ No sign-in credentials for this target. Run `watcher login`, or on macOS use
Sign in in the menu bar.

Agent Hooks
Claude Code: current
⚠ Codex: needs setup
Fix: Run: watcher hooks install
GitHub Copilot CLI: agent not installed

Settings
Active profile: Default (default)
Enforcement mode: enforce
Snooze: off (not allowed by your organization)
.watcher-ignore: not honored on this machine.

✓ Target, Daemon, Enforcement, Uploads, Decision delivery
1 error, 1 warning, 10 ok

Common failures​

FindingWhat it meansFix
No backend target recordedThe install never had a backend selected, so nothing can upload.watcher target set --url https://<your-watcher-host> (or --cloud).
Cannot reach the Watcher backend at host / The Watcher backend at host did not return its client configurationDoctor could not fetch the backend's client configuration. The finding names the host, says what it observed (a timeout and how long it waited, a name that did not resolve, a refused connection, a certificate or other TLS failure, a proxy failure, an HTTP status, or a reply that is not from Watcher), and lists the causes that fit.Follow the possible causes in the finding. If your organization reaches Watcher over a VPN, check that it is connected. If the certificate failed verification because the server uses an internal CA, set SSL_CERT_FILE to your CA bundle.
Cannot read captured hook headers / duplicate authentication fieldsThe saved headers file is malformed or contains the same authentication header more than once with different casing. Doctor skips backend authentication probes. Support dumps omit log excerpts when credential or header files cannot be read or parsed for redaction.Repair the file named in the finding, or remove the WATCHER_HEADER_* exports and run watcher hooks clear-headers.
No sign-in credentials for this targetNobody has signed in on this machine (or the target changed, which needs a fresh sign-in). When the finding adds that the hooks are disabled, nothing else on the machine can authenticate either: sessions are not recorded or graded, permission questions are not answered, and the coding agent's own permission prompt is all that gates its tool calls.Run watcher login, or on macOS use Sign in in the menu bar. See Signing in without a browser for remote machines. An unattended install can set WATCHER_API_KEY instead.
Authenticated probe failed with 401The backend rejects the selected credential: expired or revoked credentials, or stale auth headers overriding the sign-in.Follow the finding for the selected authentication method: run watcher login for sign-in credentials, or correct the configured authentication headers and proxy setup. Signing in does not replace captured authentication headers.
Credentials last refreshed N minutes agoThe running client should refresh credentials every few minutes and has stopped.Restart watcher; if it recurs, capture a watcher doctor dump.
Agent: needs setup / needs removalAn enabled agent needs hooks repaired, or a disabled agent still has Watcher config.watcher hooks install.
Transcript uploads rejected with HTTP 413A transcript or grading-hook upload exceeded a request size limit.Run watcher logs hooks --errors --since 24h for details and report the rejection to your Watcher administrator.
No backend responding on localhostThe hooks cannot reach the client. Watcher tries to replace stalled request workers without restarting the whole client. In enforce mode, tool calls that need grading are denied if the client stays unavailable. "Nothing is listening" means the services are down. "The port is held" means they are running but did not answer.Start watcher (or watcher autostart start if the login agent is installed, which also restarts a hung one). watcher logs daemon shows why the last start failed.
The login agent is loaded but has never been startedmacOS only. launchd loaded the login agent but deferred its first launch, so the client will not start on its own. Doctor reports this even when another Watcher instance answers on the port.watcher autostart start.
Conversation is recorded under a different Watcher user; this machine's copy is not storedThe client has recorded an ownership refusal for this conversation and stopped its uploads. Blocking review still works.Run watcher login with your intended identity to retry refused conversations. On a proxy-authenticated deployment, check the identity in the gateway's headers or your WATCHER_HEADER_* settings, then run watcher hooks install. Matching identities can share recordings; different owners remain separate.
Session runs with approval_policy "never", or with sandbox "danger-full-access" or network accessThe agent was launched with approvals bypassed or a full-access sandbox (or resumed a session that was), so its tool calls can run without asking for approval and Watcher cannot intervene: it can only record them. While such a session is open and Watcher is signed in, the macOS menu bar icon shows a warning glyph (⚠) unless a sign-in or auth-error warning takes priority, and its menu gains a "Watcher found problems" item that opens this doctor report. Clicking the "Not enforcing" notification opens the session in the Analyzer once it has uploaded, and this doctor report otherwise.Start a new agent session instead of resuming that one, without approval or sandbox flags such as --dangerously-bypass-approvals-and-sandbox. A resumed Codex session keeps the approval policy and sandbox it last ran with, even over Watcher's settings.
Command-rule approvals are offA settings mistake listed below this finding stops every command rule from approving a tool call, so even commands such as ls go to grading. Under another profile it is a warning, which takes effect when you switch to that profile.Fix each problem listed, or run watcher doctor settings --fix to repair the ones it can. To start over, run watcher settings reset rules. For the organization's settings.yaml, ask an administrator.
Settings load error naming a file and settingThe client could not load that settings file or value. It ignores what it could not load and uses the other settings layers instead.Fix the file and setting the finding names, then run watcher doctor settings. For the organization's settings.yaml, ask an administrator to fix the managed client settings or the MDM profile.
Organization settings sync, followed by a messageThe client could not fetch your organization's managed client settings for about ten minutes, could not read them, or applied only the parts this client version understands. The last case is listed in the Settings section without a warning. The message can also say that the enforcement mode changed but Codex still has its old saved policy. If the client could not fetch or read your organization's settings, it keeps the ones it already had. If it applied only part of them, each setting it ignored falls back to the built-in default, or to your local value when your organization did not lock that setting.Do what the message says. For the Codex policy, restart Watcher, and restart Codex before its next session. For settings this version does not understand, update the client. The client pulls the settings again every few minutes while it runs.
A tool-call decision has been waiting to uploadA decision this machine made has waited more than 30 minutes and has not reached the Analyzer. A short wait is normal while a session is active or an upload is retried. The section also counts decisions that answer a tool call the Analyzer does not have yet, such as a call still running or one the agent never finished writing; these wait until the call arrives, for up to seven days.Read watcher logs hooks for delivery errors, and run the full watcher doctor to check sign-in and the local services.
Tool-call decisions are waiting on sessions that never uploadedA decision has waited more than 30 minutes because its session's transcript has not reached the deployment. A session's decisions upload only after its transcript does, so a rejected or repeatedly failing transcript upload holds them back. When Watcher confirms that an ended Claude Code session's transcript is missing (for example after claude -p --no-session-persistence), it reports those decisions separately and checks again less often. The decisions can still upload if the transcript becomes available while they are eligible for delivery.Read watcher logs hooks for transcript upload errors, and run the full watcher doctor to check sign-in and the local services.
Tool-call decisions from the last seven days were given upThe client stopped retrying these decisions, so their current results will not reach the Analyzer. The section lists how many were given up for each reason, and how many of those came from subagent sessions; the warning includes the last upload error. The reason "the call is not in this session's transcript" means a decision was recorded under a session whose transcript does not contain its tool call.Fix the cause the error names, using watcher logs hooks for detail. Fixing it does not resend these decisions; a later change to a decision can queue it again.

The HTTP 413 warning reports rejections found in the last 24 hours of retained hook logs, not whether uploads are still failing. A later successful upload does not clear it. No warning is not proof that every session is fully uploaded.

Support bundle​

watcher doctor dump writes a text bundle: the full doctor report plus recent client logs. With an external credential helper, authentication is a local snapshot: the dump does not invoke the helper or probe upstream authentication. No session content is collected, and known secrets are redacted, but redaction is best-effort: review the file before sharing it, as the command's own output reminds you. --since 2h widens the log window (default one hour) and --output sets the file path. Attach it when reporting a client problem.

watcher logs​

watcher logs prints the client's own logs, so diagnosing a problem does not require knowing where the log files live. It covers three sources:

SourceWhat it holds
hooksThe agent hooks: one line per tool call evaluated, plus upload and sync errors.
daemonOutput captured from the client the login agent runs, including why a background start failed.
backendThe local client services' own log.
watcher logs # last 50 lines from all sources, merged
watcher logs hooks -n 200 # one source, more history
watcher logs -f # keep streaming new lines (Ctrl-C to stop)
watcher logs --since 2h --errors # warnings and errors from the last 2 hours

With no source argument, lines from all sources are merged in time order and prefixed with their source name. --level sets a minimum level (debug|info|warning|error|critical); --errors is shorthand for --level warning. The logs are read from files on disk, so the command works while the client is not running; the daemon source is the place to look when the client will not start. When output is piped rather than shown in a terminal, lines pass through as they appear in the log files. For JSON processing use watcher logs backend, the one source that holds only JSON records: the daemon source is captured process output that can mix JSON with plain text, the hook log is plain text, and the merged view prefixes every line with its source.

watcher logs output is not redacted. To share diagnostics outside the machine, prefer watcher doctor dump above, which redacts known secrets.