Skip to content
Back to skills

Splice Desktop Policy

BSecurity

Configure, inspect, override, and troubleshoot Claude Code Desktop Policy (Claude Desktop 3P managed policy, `/etc/claude-code/managed-settings.json`, `processWrapper`, model picker, Code-tab context windows, and the `agy` ACP bridge) on Splice. Make sure to use this skill whenever changing Console Settings Claude Code Desktop Policy (`GET/PATCH /api/desktop/policy`, `~/.splice/state/desktop-policy-overrides.json`), enabling 3P gateway mode (`splice desktop on`) or side-by-side Desktop (`spli...

  • 20 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsbashdebugginggitapi

Works with

  • claude code
  • claude desktop
  • terminal
  • cli
  • api
  • mcp

Security analysis

B88/100
  • criticalSends environment variables or credentials to an external URL

Pro scans all 2 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add torad-labs/splice --skill splice-desktop-policy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Splice Desktop Policy?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Splice Desktop Policy
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/torad-labs-splice-desktop-policy/badge)](https://www.skillsdirectory.com/skills/torad-labs-splice-desktop-policy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: splice-desktop-policy
description: >-
  Configure, inspect, override, and troubleshoot Claude Code Desktop Policy
  (Claude Desktop 3P managed policy, `/etc/claude-code/managed-settings.json`,
  `processWrapper`, model picker, Code-tab context windows, and the `agy` ACP
  bridge) on Splice. Make sure to use this skill whenever changing Console
  Settings Claude Code Desktop Policy (`GET/PATCH /api/desktop/policy`,
  `~/.splice/state/desktop-policy-overrides.json`), enabling 3P gateway mode
  (`splice desktop on`) or side-by-side Desktop (`splice launch claude-desktop`),
  installing or checking `processWrapper`
  (`splice desktop wrapper --install|--check|--print`), fixing
  `[custom-3p] configuration warning` or `parentSettingsBehavior: "merge"`,
  debugging `code_window`/`code_window_1m` or `behavesAs`/`maxEffort`, running
  `agy` in the Code tab via `seatd`, or troubleshooting why Claude Desktop did not
  apply policy or mode changes.
---
<!-- splice-managed: splice-plugin -->

# Claude Code Desktop Policy on Splice

When Claude Desktop runs on Splice (`splice desktop on` or `splice launch claude-desktop`), Splice configures Desktop in third-party (3P) gateway mode pointing `inferenceGatewayBaseUrl` at `http://127.0.0.1:<control_port>/door` (default `3096`) and supplies a complete flat policy object.

Complete catalog of all 5 groups, 28 editable keys, 15 locked keys, and validation rules: [references/policy-catalog.md](references/policy-catalog.md).
Exact shipped defaults JSON: [references/ccd-policy.json](references/ccd-policy.json).
For general daemon/config/provider operations, use the `splice` skill.

---

## 1. Mandatory Full-Quit Reload Rule (Read First)

> **Claude Desktop reads its applied 3P configuration, managed settings, and `claude_desktop_config.json` ONLY at startup.**
>
> After **any** policy edit (`Settings -> Claude Code Desktop Policy` or `PATCH /api/desktop/policy`), `splice desktop on|off`, `splice desktop wrapper --install`, sign-in, added provider, `code_window` edit, or MCP mode toggle, you **must fully quit Claude Desktop and reopen it** (closing the window leaves the app running with stale config).
>
> Check `restart_required` in `GET /api/desktop/policy` or run `splice desktop` to verify whether Desktop has loaded the latest published configuration.

---

## 2. 3P Gateway Mode vs Side-by-Side Profile

- **Primary 3P gateway mode (`splice desktop on [--model <id>] [--yes]`):** Switches your main Claude Desktop installation onto Splice's `/door`, publishes your effective policy + model picker, and remembers the starting model. Use `splice desktop off` to restore your prior Desktop configuration.
- **Side-by-side profile (`splice launch claude-desktop`):** Opens an isolated **Claude (Splice)** profile (`~/.config/claude-splice` on Linux or `~/Library/Application Support/claude-splice` on macOS) beside your personal Claude Desktop without touching your personal profile. Policy overrides from **Settings -> Claude Code Desktop Policy** automatically reach both primary and side-by-side 3P profiles.
- **System-managed Desktop blocker:** If a system-managed Desktop file exists (`/etc/claude-desktop/managed-settings.json` on Linux, or managed preferences on macOS), `splice desktop on` refuses because system policy overrides the local `Claude-3p/configLibrary/` file.

---

## 3. Policy Layering (Lowest to Highest)

Splice builds Desktop's effective policy across five layers (`DesktopPolicyLayers` + `DesktopPolicy`):

1. **Built-in floor (`DesktopPolicy.given()`):** `projectsEnabled: true`, `autoModeEnabled: true`.
2. **Shipped defaults (`ccd-policy.json`):** Bundled in [references/ccd-policy.json](references/ccd-policy.json) — enables Chat, Cowork, Code tab, built-in browser (`allow`), projects, scheduled tasks, skill creation, extensions, local MCP servers, 30-minute MCP timeout (`1800`s), `coworkEgressAllowedHosts: ["*"]`, tool search, `modelPrefer1mContext: true`, `defaultModelEffort: "high"`, and `claudeAiImport`.
3. **Claude Code preference carry-over (read-only):** Reads `~/.claude/settings.json`, `~/.claude/settings.local.json` (local wins), and `~/.claude/plugins/known_marketplaces.json` without modifying them:
   - `effortLevel` -> `defaultModelEffort` (`low`, `medium`, `high`, `xhigh`, `max`; `auto` skipped)
   - `permissions.defaultMode` -> `codeDefaultPermissionMode` (`"default"` maps to `"manual"`; accepts `acceptEdits`, `plan`, `auto`, `dontAsk`, `bypassPermissions`)
   - `promptSuggestionEnabled` -> `promptSuggestionEnabled`
   - Reachable GitHub, git, and HTTP(S) marketplaces merge (deduplicated by `source` + address) into `allowedPluginMarketplaces`. Local folders, `sparsePaths`, and credentialed URLs are intentionally omitted.
   - **Not copied into managed policy:** Claude Code MCP servers, permission rules, status lines, and claude.ai logins (MCP servers and skills sync separately into Desktop's local profile).
4. **User overrides (`~/.splice/state/desktop-policy-overrides.json`):** Edited via **Console -> Settings -> Claude Code Desktop Policy** or `PATCH /api/desktop/policy`. Wins over layers 1–3 and publishes immediately to every 3P profile on the door. Partial `claudeAiImport` overrides merge over the base object.
5. **Locked Splice-owned keys (15 keys):** Gateway URL, credential helper, `inferenceModels`, `deploymentMode: "3p"`, `disableDeploymentModeChooser: true`, `modelDiscoveryEnabled: true`, `inferenceGatewayAutoModeServerChecks: false`, `inferenceModelPricingEnabled: false`, `inferenceStreamIdleTimeoutSec: 900`, `claudeCodeProcessWrapperEnabled: true`, `deploymentDisplayName: "Splice"`, and `X-Splice-Caller: desktop`. Never editable via overrides.

---

## 4. Reading & Changing Policy Overrides

Use **Console -> Settings -> Claude Code Desktop Policy** (`splice console`, then open Settings) or `/api/desktop/policy` with the loopback management key (`~/.splice/state/mgmt-key`, never printed):

```bash
# Inspect all 5 groups, defaults, effective values, overrides, locked keys, and restart_required
curl -fsS -H "Authorization: Bearer $(cat "${SPLICE_STATE_DIR:-$HOME/.splice/state}/mgmt-key")" \
  http://127.0.0.1:3096/api/desktop/policy

# Set one or more editable keys
curl -fsS -X PATCH \
  -H "Authorization: Bearer $(cat "${SPLICE_STATE_DIR:-$HOME/.splice/state}/mgmt-key")" \
  -H "Content-Type: application/json" \
  -d '{"defaultModelEffort":"xhigh","mcpToolTimeoutSec":2400}' \
  http://127.0.0.1:3096/api/desktop/policy

# Reset a key back to its underlying default (layers 1-3) by passing null
curl -fsS -X PATCH \
  -H "Authorization: Bearer $(cat "${SPLICE_STATE_DIR:-$HOME/.splice/state}/mgmt-key")" \
  -H "Content-Type: application/json" \
  -d '{"defaultModelEffort":null}' \
  http://127.0.0.1:3096/api/desktop/policy
```

- **Fail-closed validation:** Any locked key, unknown key, wrong JSON type, out-of-range integer, or credentialed marketplace URL rejects the entire PATCH with `400` and `{ "error": "...", "keys": { ... } }`.
- **Malformed overrides file:** If `desktop-policy-overrides.json` is invalid JSON on disk, `GET` reports `overrides_error` and `PATCH` returns `409 Conflict` until fixed or moved aside.
- **Applied config location:** `~/.config/Claude-3p/configLibrary/<id>.json` (Linux) or `~/Library/Application Support/Claude-3p/configLibrary/<id>.json` (macOS).

---

## 5. Managed `processWrapper`, `parentSettingsBehavior`, and `agy` ACP Bridge

Live model switching inside Desktop's Code tab and running Antigravity (`agy`) in Code both rely on **`seatd`** plus **Claude Code's** administrator-owned managed settings file (distinct from `/etc/claude-desktop/`):

- Linux: `/etc/claude-code/managed-settings.json`
- macOS: `/Library/Application Support/ClaudeCode/managed-settings.json`

Required keys:

```json
{
  "processWrapper": "<state>/desktop-launch",
  "parentSettingsBehavior": "merge"
}
```

- **Why `"parentSettingsBehavior": "merge"` is required:** When managed settings exist and Desktop connects with a 3P gateway key (instead of interactive claude.ai sign-in), Claude Code defaults to `"first-wins"`, which drops Desktop's 3P policy in Code sessions and triggers `[custom-3p] configuration warning` ("The policy from your inference configuration isn't fully applied on this computer").
- **Install or verify safely:**
  ```bash
  splice desktop wrapper --check      # verify processWrapper + parentSettingsBehavior (exits 0 when ready)
  splice desktop wrapper --print      # print wanted JSON and exact admin instructions
  splice desktop wrapper --install    # atomically merge both keys (preserves other admin keys + writes timestamped backup)
  ```
- **How `agy` ACP bridge works via `seatd`:** With `seatd` installed and `processWrapper` active, Desktop's Code tab routes `agy` models through `desktop-launch` -> `splice desktop acp` backed by `seatd` seats (so `agy` sessions also appear in `splice sessions` and `list_peers`). After installing `seatd` or running `splice desktop wrapper --install`, **fully quit and reopen Claude Desktop**.

---

## 6. Model Picker, `code_window` / `code_window_1m`, and `behavesAs` / `maxEffort`

- **Code-tab context windows:** Desktop's Code tab uses a **200,000-token** window by default, or **1,000,000 tokens** when picked as a 1M variant. Splice scales reported usage counts so Code compacts relative to each model's real window while discovery publishes the real ceiling in `max_input_tokens`.
  - Override defaults via `code_window` and `code_window_1m` in `splice.toml` (a model gets a 1M variant when its real window reaches `code_window_1m`). **Run `splice restart` AND fully quit/reopen Desktop** after changing them.
- **Reasoning selector (`behavesAs` + `maxEffort`):** Desktop builds its reasoning picker from `inferenceModels` (`behavesAs` + `maxEffort`) rather than discovery's `thinking` field.
  - For non-Claude models with named effort levels, Splice sets `behavesAs` to the newest served Claude Opus model and `maxEffort` to the model's cap across `low`, `medium`, `high`, `xhigh`, `max`.
  - Without a served Claude Opus model, that projection cannot render the reasoning selector for non-Claude models.
  - `maxEffort` is a ceiling over Desktop's ordered list and cannot represent gaps, `minimal`, or `ultra`; check `GET /door/v1/models` to verify exact provider levels.

---

## 7. Essential CLI Commands

```bash
splice desktop                                 # mode, door, default model, picker, whether Desktop reloaded
splice desktop --json                          # machine-readable Desktop state
splice desktop on [--model <id>] [--yes]       # enable 3P gateway mode (then quit + reopen Desktop)
splice desktop off                             # restore prior Desktop config (then quit + reopen Desktop)
splice desktop rotate-key                      # rotate Desktop key only (does not touch terminal or mgmt keys)
splice desktop wrapper --check                 # check managed processWrapper and parentSettingsBehavior
splice desktop wrapper --install               # merge managed processWrapper + parentSettingsBehavior with backup
splice launch claude-desktop                   # run isolated Claude (Splice) beside personal Desktop
```

Files in this skill

  • SKILL.md11 KB
  • references/policy-catalog.md10.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.