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

Organization settings

Organization settings are the org-wide configuration of your Watcher deployment. You manage them on the Analyzer's Organization page. They are server-side and apply to everyone in the organization. Client behavior resolves on each developer's machine instead. This includes blocking review thresholds and enforcement mode. You set these in the Watcher client's settings. Admins can distribute and lock those centrally too. Use managed client settings below.

The Organization page is visible only to users allowed to read organization settings. Editing requires org:settings:write; the role name alone does not permit edits.

Roles​

Watcher Cloud uses these default roles. Self-hosted deployments can customize their grants.

RoleIntended access
adminOrganization metrics, all session findings and content, organization settings, and review of session-content access requests. While the content restriction below is on, other users' full session content needs an approved request; flagged-call content remains readable.
org-viewerOrganization metrics and all session findings, plus flagged tool calls' inputs and results, and agent inventory. Other session content, including summaries, is limited to their own sessions unless approved. No organization-settings access.
memberTheir own sessions. No organization metrics or settings access.

Any signed-in user, whatever their role, can request temporary access to the content of one other user's session. A user with the review permission approves or denies it. See Content-access requests.

In proxy mode, roles come from your trusted auth proxy. In WorkOS-backed SSO, WorkOS supplies role assignments. Cloud customers can assign available roles but cannot edit their definitions. See role defaults and effective grants for the exact permissions, custom roles, and organization policy limits. Resolved client-settings access is separate from access to the Organization page.

Settings​

  • Display name. The organization name shown across the dashboard and in notifications.
  • Flag threshold. Sessions scored at or above this number are flagged for review. The default is 7. A session is flagged when any numeric score in one of its grades reaches the threshold. Blocking-review decisions whose score reaches it are alerted on as well.
  • Restrict admin session content access (the content restriction). Off by default. When enabled, it overrides blanket content grants, including admins' and API keys'. Users keep access to their own content and sessions with active approvals. The flagged-call grant still permits individual flagged calls' inputs and results. Aggregates and findings are unchanged; findings can still contain transcript excerpts. Users with sessions:access-requests:review can approve their own requests or revoke approvals. Users with org:settings:write can turn this setting off. API keys cannot hold approvals, so while it is on, they cannot read other users' full session content or run caller-selected graders on their sessions. Standard monitor grading and Deep Reviews are unaffected. Slack alerts are unaffected. Through the API, set restrict_cross_user_session_content to true or false with PATCH /api/v1/organization/settings.
  • Slack notifications. An on/off toggle plus an incoming-webhook URL. This is for the channel that receives flag alerts. When a session is flagged, Watcher sends at most one notification for it. The notification carries the grader's summary, the flagged scores, and a link back to your Analyzer. It does not include the session transcript. Flagged blocking-review decisions are alerted individually as they happen. Each alert also includes the permission request that was under review. This is the tool name, its arguments, and the working directory. Before sending, Watcher replaces credentials it recognizes in the summary, its title, and the permission request with [REDACTED]. It recognizes common formats, such as provider API keys, bearer tokens, passwords in URLs, private keys, and values assigned to secret-named variables. A secret in another format can still appear. Redaction applies only to the message sent to Slack. Stored grades and transcripts keep the original text, and so does the copy of the notification title and summary that Watcher stores with the session. The webhook URL is write-only. After saving, the page shows only that a webhook is configured and the URL's last four characters. The URL must use https://. It must not include a username or a port. Notifications are sent only when the toggle is on and a webhook is configured. Alerts are sent only for recently graded calls: a decision that reaches Watcher more than eight days after its call was graded raises none.
  • Slack alert details (under Data Privacy). Full details (default) sends the alerts described above. Findings and aggregates only uses the same access rules as Watcher: scores, decision explanations, action items, counts, attribution, and links remain available; session summaries and raw tool content are omitted. Findings can still contain transcript excerpts. This setting also applies to deployment-managed webhooks. Through the API, set slack_alert_detail to full or findings_only with PATCH /api/v1/organization/settings.

Full-detail Slack alerts can expose session content to channel members who lack Watcher content permissions. Restrict channel membership accordingly or choose Findings and aggregates only. This choice is independent of the content restriction; Analyzer links still require the viewer's usual permissions or approval.

Deployment-managed Slack webhook​

A self-hosted deployment can supply the Slack webhook URL itself by setting the SLACK_WEBHOOK_URL environment variable on the Watcher API and its background-job worker (which sends scheduled deep-review alerts), instead of an admin saving one in organization settings. Where to set it depends on how the deployment runs: it is the WATCHER_SLACK_WEBHOOK_URL entry in .env for the Docker Compose bundle (applied with docker compose up -d xylon-api xylon-operation-worker, since a plain restart keeps the old value) and the SLACK_WEBHOOK_URL key of the Kubernetes Secret the chart reads. The operation worker reads it too, to alert on flagged deep reviews, scheduled or requested. It is a self-hosting setting: Watcher Cloud never sets it.

When it is set:

  • It takes precedence over the URL saved in organization settings, which is not consulted at all (it stays stored, and applies again if the variable is removed).
  • The destination is fixed by the deployment. While the variable is set, it cannot be changed from the Analyzer, so use it when the deployment, rather than an admin, should own where alerts land.
  • The webhook URL becomes read only. Organization settings report that the webhook is managed by the deployment and show the last four characters of the deployment's URL, and requests that try to change or clear the URL are rejected.
  • The on/off toggle, alert details, and flag threshold stay in organization settings, so turning notifications off there still sends nothing.
  • The destination may be an internal address, such as a relay in your network that forwards to Slack. A URL saved in organization settings must resolve to a public address; this variable is set by whoever deploys Watcher, so it is not held to that. It must use https:// or http://, with no username and no port (an explicit :443 counts as a port). An https:// destination has its certificate verified on every send against the public roots the API image ships, so the relay needs a publicly trusted certificate. If the API runs behind an egress proxy (HTTPS_PROXY), list the relay in NO_PROXY or the POST goes through the proxy. A failed handshake or connection is logged on the API as Slack webhook request failed and nothing is delivered.
  • http:// is accepted for a relay on a trusted network that does not terminate TLS, and it is the weaker choice. It sends the notification, and the webhook URL itself, in cleartext with no certificate verification. The URL's path is the credential that lets anyone holding it post to the channel, so anything that can observe the traffic can take the destination over. Use http:// only on a network you trust to carry both, and prefer https:// everywhere else. The API logs a warning at startup naming the scheme and host, never the path. This applies to this variable only: a URL saved in organization settings must still use https://.
  • The API refuses to start on a value that breaks those rules, so the mistake surfaces at deploy time rather than as alerts that never arrive. Watcher never falls back to the URL saved in organization settings, because that would send your alerts to a destination the deployment did not choose.
  • Users with org:settings:read can see the URL's last four characters to identify the active destination.

Data retention​

The Data Retention tab controls how long Watcher stores session content. By default, automatic retention is disabled. Session content is retained indefinitely.

Turn on Scrub inactive sessions and set a retention period between 7 and 365 days. Watcher then removes content from any session whose latest recorded activity is older than that period. Unlinked grades are deleted once they are older than the same period, measured from when each grade was created. Turning the policy off retains session content and unlinked grades indefinitely from then on. It does not restore content or grades that have already been removed.

Scrub one session removes the stored messages and tool-call content for a specific session. This requires confirmation. The session record, historical activity, message count, and trajectory grades remain available. See Retention and deletion for the complete data lifecycle.

The same controls are available through the HTTP API. Set or disable automatic retention with PATCH /api/v1/organization/settings:

{
"session_content_retention_days": 30
}

Set session_content_retention_days to null to disable the policy. Scrub one session with DELETE /api/v1/sessions/{session_id}/content.

Agent inventory is not covered by the session retention policy. It deletes nothing yet; see Retention and deletion.

Managed client settings​

The Managed Settings page lets admins author the organization's Watcher client configuration once. They can distribute it to every developer machine. A self-hosted deployment can instead supply the document from a file, which then replaces the saved document everywhere this section mentions it (see Supplying the document from your deployment). The document is a YAML overlay on the client's built-in defaults. It carries the client's blocking review settings: tool thresholds, command rules, and the enforcement mode. It does not choose the grading models: blocking review always uses the managed monitors. Trailing review runs on the server. It is not configured by this document. Gateway hooks also resolve this saved document on the server. This includes its enforcement mode. Distribution to developer machines does not affect this.

Every save is kept as a new version. How a save reaches machines is the page's "Distribute via Watcher" toggle. This is inside its "Advanced settings" section.

Two options:

  • Toggle on (the default for new organizations). Each running client pulls the saved document every few minutes. It installs it as the machine's admin settings baseline. Saving is what rolls a change out. Review the document before you save it.
  • Toggle off. Watcher distributes nothing. Ship the saved YAML to ~/.apollo_monitor/settings.yaml on each machine with your MDM tooling instead. The document works identically however it is delivered. Ship exactly the saved version: Watcher grades calls on the server against the saved document, so a machine running a different file is judged by settings it does not have.

Organizations that predate this default keep the setting they already have. An organization that has been distributing through an MDM stays that way. Turning the toggle on hands the whole fleet the document currently saved. Read it first. Until an organization saves its first document the toggle changes nothing. With nothing to pull, clients keep the settings file they already have.

Individual values can be marked locked. This prevents the developer's local settings from overriding them. Unlocked values remain local defaults the developer can change. Reading the authored document in the management interface requires org:settings:read. Saving it requires org:settings:write. Clients can fetch the resolved document with the narrower org:managed-settings:read.

The document also covers profiles. An entry in its profiles map carries that profile's configuration. Per-profile overrides roll out through the same single document. For example, stricter thresholds under a focus profile. active_profile picks the machine default. It can be locked to pin every machine to one profile. The example below does this with the profile it defines. Add content_permission: locked to an entry to lock everything that profile sets in one line. The "Active profile" control is above "Advanced settings". It sets active_profile directly, without editing YAML. It offers three of the four built-in profiles: Default, Human in the Loop, and Auto. The fourth, Skip Permissions, turns blocking review off, so the control leaves it out. To pin it for the organization, set active_profile: skip-permissions in the YAML. When the YAML pins a profile the control does not list, the page shows that profile's name instead of a choice.

version: 1
active_profile:
value: focus
permission: locked
profiles:
focus:
name: Focus
tool_thresholds:
Bash:
flag_threshold: 2
deny_threshold: 5

Agent enablement​

agents.enabled turns monitoring on or off for each coding agent. An agent it leaves out stays on unless a developer turns it off. This example requires Claude Code, so developers cannot turn it off:

agents:
enabled:
claude_code:
value: true
permission: locked

This example bans Codex, so developers cannot turn it on:

agents:
enabled:
codex:
value: false
permission: locked

Developers can turn an unlocked agent on or off with watcher agents enable <agent> and watcher agents disable <agent>. The older list form, such as enabled: [claude_code], still works but is deprecated: it enables only the listed agents, and saving it returns a warning.

Watcher clients 0.42.0 and older ignore an agents.enabled map and monitor every supported agent until they are upgraded, so saving a map that turns an agent off or locks one also returns a warning. Before downgrading a client to 0.42.0 or older, rewrite its saved agent choices as a list and check watcher doctor hooks, or it can lose a saved disable.

Enforcement mode​

The document sets the enforcement mode under enforcement.mode, with the value enforce, observe, or paused:

enforcement:
mode:
value: enforce
permission: locked

The mode resolves only from the machine's admin settings baseline, the ~/.apollo_monitor/settings.yaml file this document becomes. A developer's own settings files cannot change it, whether or not it is locked. Changing it on one machine means editing that baseline file there, which is what the red-team drill does. With "Distribute via Watcher" on, the client's next pull replaces that edit with the saved document.

Locking tool thresholds​

Choose the lock's scope based on which local changes you want to permit. These settings belong in the organization's managed settings document.

Administrator settingEffect on a new tool
Lock only tool_thresholds.unknownProtects the fallback values. Users can still add a tool entry with different values if the collection permits additions.
Lock a glob such as "mcp__*"User-added entries inherit its locks only when it is the winning match after profile settings are applied. An admin-defined exact entry or a later profile glob can take precedence.
Lock tool_thresholdsIgnores local edits and additions to the whole threshold collection. Tools without an existing match use unknown.
Set permission: locked at the document rootLocks thresholds and all other settings against local changes. This also prevents new threshold entries.

For example, keep existing built-in thresholds and enforce flag 5, deny 7 for tools with no existing match:

tool_thresholds:
permission: locked
unknown:
flag_threshold: 5
deny_threshold: 7

A user can type a new tool entry into their local file, but Watcher ignores it. You do not need to know the tool's name in advance. A document that already has a root lock does not need this collection lock as well.

To lock matching MCP tools in the Default profile while leaving the rest of the collection editable:

tool_thresholds:
"mcp__*":
permission: locked
flag_threshold: 5
deny_threshold: 9

In the Default profile, a user-added mcp__proxyAllTools entry at 11/11 still uses 5/9. It inherits the locks from the winning administrator match. Use "*" instead of "mcp__*" to match all tool names without an admin-defined exact entry. The built-in profiles update that same "*" entry, so its locks remain in effect.

A later profile glob can take precedence over that baseline glob. Auto and Skip Permissions both add a later "*". With the "mcp__*" example above and a local mcp__proxyAllTools entry at 11/11, the results are:

Active profileFlag thresholdDeny threshold
Default59
Auto118
Skip Permissions1111

To preserve 5/9 across profile choices, add permission: locked directly under tool_thresholds in that example, or lock the document root. Those locks also prevent profiles from changing the threshold collection.

unknown and "*" are both supported and serve different purposes. A wildcard matches names; unknown supplies values only when nothing else covers the tool. With "*" present, unknown is unused. Neither the fallback nor a baseline wildcard replaces existing built-in exact entries. See how tool thresholds are selected.

Honoring .watcher-ignore files​

watcher_ignore_files.enabled decides whether clients honor .watcher-ignore files. These files keep the sessions started in one directory from being uploaded or LLM-graded. It is off by default. No directory is excluded until you turn it on. Turning it on gives every developer on the fleet that option in the directories they work in. Sessions a marker covers are not ingested. They never appear in the Analyzer; each of their calls is still reported, without content (see what reaches your deployment). Deterministic blocking review still applies to them.

Like the enforcement mode, the switch is machine-wide and admin-only. It resolves from the machine's admin settings baseline alone. A developer cannot enable it from their own settings file or from a profile. It takes the same value and permission form as any other managed value:

watcher_ignore_files:
enabled:
value: true
permission: locked

Agent inventory​

agent_inventory.enabled turns agent inventory on. It is off by default. While it is on, Watcher clients report the coding agents on their machines every hour, and gateway hooks record which clients send traffic. Whatever this key says, the heartbeat of each client using a person's credentials carries its endpoint health, which still 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). The switch on the Analyzer's agent inventory page edits this same key.

Like the enforcement mode, it is machine-wide and admin-only. It resolves from the machine's admin settings baseline alone, so a developer cannot change it from their own settings file or from a profile. It is on only when set to true:

agent_inventory:
enabled: true

The deployment reads the key from the saved document, or from the mounted file when one is in force, and refuses inventory reports while that copy is off. Clients read the copy on their machine. If you distribute the document through your MDM instead of Watcher, set the key in both places. See Turning it on and off.

A client too old to know the key ignores it and sends no inventory. It may warn that part of the organization settings was not understood.

Red-team drill​

The page also offers a downloadable red-team drill. This is a prompt written for an AI assistant running on a developer's machine. It carries the document above, how it is distributed, and the settings reference. Send it to a developer who has the client installed. Their assistant checks the install. It then works out the smallest change to that one machine. This change gets an ordinary command held for review. The assistant turns enforcement on if it is not already on. It lowers a tool's flag threshold if the organization's own is too high to hold anything ordinary. It then asks which threats the team cares about. It probes each one against the organization's real thresholds. Finally, it restores the machine.

What the drill can change on a machine is bounded by the document. A setting the document locks cannot be overridden from the machine at all. The drill is written to report that rather than route around it. It names the locked key. It asks an administrator to unlock it here. Unlocking allows local overrides on every machine receiving the document. Review the fleet impact before changing the lock. If nothing can be unlocked in time, the drill runs its threat probes without the demonstration.

In observe mode Watcher blocks no ordinary tool call (the one exception is in enforcement modes). A team running one cannot see what blocking review does without turning enforcement on somewhere. The drill does that on one machine instead of the fleet. Its configuration changes are local. They are reverted at the end. The session itself is ingested. This includes the probes. It is visible in the Analyzer like any other. The assistant reads each probe's result there, or asks the developer to open the session and read it back. Containment is instruction, not sandboxing. The prompt tells the assistant to keep every probe inside a scratch directory and to use dummy credentials. An assistant that departs from it is not prevented by Watcher.

Grading test, lint and build commands​

By default, built-in command rules approve common test, lint and build commands without grading. The rule ids are bash-python-tests (pytest), bash-js/ts-tests-lint (npm test, npm run test, lint or check, and npx jest, vitest, eslint or prettier), bash-compiled-language-tests (cargo test, check or clippy, go test, swift test), bash-python-linters (ruff, pyright, ty and mypy, directly or through uv run, which also covers flake8 and black) and bash-build-commands (make, npm run build, cargo build, go build, swift build). The repository decides what these commands run, through files such as a Makefile, conftest.py, package.json scripts or build.rs. Another built-in rule approves edits to ordinary source files such as conftest.py, so an agent can change one of those files and then run the command with neither call graded.

To have the whole organization grade these commands, set each rule's decision to triage and lock it:

version: 1
command_rules:
rules:
- id: bash-python-tests
decision: triage
permission: locked
- id: bash-js/ts-tests-lint
decision: triage
permission: locked
- id: bash-compiled-language-tests
decision: triage
permission: locked
- id: bash-python-linters
decision: triage
permission: locked
- id: bash-build-commands
decision: triage
permission: locked

The matching calls then go through triage and, unless triage approves them, gateway review. In enforce mode each graded call waits for its grade before it runs; in observe mode the agent does not wait for the grade, which is only recorded. The grader reads the recorded conversation: the user's messages and the agent's tool calls with their arguments. Source text the agent passed to a file write or edit is therefore in front of it. The grader does not open repository files itself and does not see tool output, so it misses code that arrived with the repository or that a command such as cp put in place. In a very long session, the middle of the conversation can be cut to fit the grader's input.

Each permission: locked pins that rule's decision: neither a developer's local settings nor a profile, including one this document defines, can change it back. A developer can still approve these commands in other ways: by selecting the Skip Permissions profile, by raising both their Bash tool thresholds to 11, or by adding their own allow rule that takes precedence. To close those too, also pin the active profile, lock the Bash thresholds and lock the whole rule list. A locked rule list also stops developers from adding or changing any command rule of their own.

version: 1
active_profile:
value: default
permission: locked
tool_thresholds:
Bash:
permission: locked
command_rules:
permission: locked
rules:
- id: bash-python-tests
decision: triage
# ...and the other four rules as above

Any other built-in rule switches and locks the same way; watcher settings show --json lists every rule id.

Supplying the document from your deployment​

On a self-hosted deployment, settings can be configured from a file mounted into the API container. The file locks the settings: the Analyzer shows the document read-only and the API refuses writes. Mount a managed-settings.yaml file into the API container at /etc/watcher/managed-settings.yaml. The API then serves that file as the organization's document. The file is the document for every organization the deployment serves. The Managed Settings page shows it read-only, with a status card that names the file and says whether it was found and its content is valid. Each locked control shows a lock and explains why when you hover over it. The "Distribute via Watcher" switch stays on and cannot be turned off. Saving the document or switching distribution through the API returns 409 with the code managed_settings_locked.

Use this when no single admin should be able to change the client settings or stop distributing them. Change control moves to wherever the file comes from, such as a reviewed git repository rendered into a Kubernetes ConfigMap.

How to supply the file depends on how the deployment runs:

  • Helm. Set managedSettings.existingConfigMap to the name of a ConfigMap that carries the document under the key managed-settings.yaml. Or set managedSettings.yaml to the document itself, and the chart creates the ConfigMap. Set one, not both.
  • Docker Compose. Put managed-settings.yaml in a directory of its own. Bind-mount that directory at /etc/watcher, read-only, on the API service. Do not mount the single file. A single-file mount keeps the old file, so a replaced file (for example after git pull) is not seen until restart. If you also mount server-config.yaml, move it into the same directory. Then mount that directory at /etc/watcher on xylon-operation-worker too, in place of its single-file server-config.yaml mount. The worker reads server-config.yaml from there and ignores managed-settings.yaml. compose.override.yml.example shows this combined form.

The API checks for the file when it starts. To turn this on, mount the file and restart or redeploy the API. Each API process decides for itself when it starts, so restart all of them together, both when adding the file and when removing it.

The API picks up a changed file without a restart. On Kubernetes a ConfigMap change can take a minute or two to reach the pod. Clients then pull the new document on their usual cycle of a few minutes. An invalid file stops the API from starting. Once running, an invalid rewrite, or a file that has been removed or cannot be read, is ignored: the previous content stays in effect and the status card shows what went wrong. To hand editing back to admins, remove the file and restart the API. The document admins last saved, and the distribution setting from before, then come back into force. To keep the file's content, save it through the Analyzer right after the restart.

Members​

The Members tab lists the organization's users. In WorkOS-backed SSO mode, admins manage members and their roles here. In proxy mode the roster is read-only. Membership and roles are managed by your identity provider and reverse proxy. Users appear after their first sign-in, or earlier when a gateway hook names them for a session or an agent inventory sighting.

API keys​

In WorkOS-backed SSO mode, the API Keys tab is where you create and revoke the organization's API keys. These are for the HTTP API and the Python SDK. In proxy mode there is no API Keys tab. API access is governed by your reverse proxy.

Choose grants using the permission reference and endpoint requirements. Check the session write scope before giving an integration ingestion access. Use Verify a credential to check the key's grants and intended endpoint.