# Your coding agent on your desk

> Install the plugin for Claude Code, Codex, OpenCode, pi, DeepSeek Harness or Antigravity CLI, and a resident tells you when your agent is done or needs you, and takes your words back to it.

Run a coding agent in Terminal or your editor, and **pixling-proxy** keeps its resident up to date on your desk. Leave the terminal, work in another window, and still see when the agent finishes or waits for you.

## Plugin, skills, or MCP alone

| Approach | Tool access | Behavioral prompts | Automatic hooks (bubbles, wake, reactions) |
| --- | --- | --- | --- |
| **Plugin (`pixling-proxy`)** | Uses the `pixling` CLI beside the agent | None required | Yes: auto-binds a resident, mirrors replies, relays permission prompts, wakes on reply, and runs optional reactions |
| **Agent skills** | Agent calls the `pixling` CLI via shell commands | Yes: teaches when to speak, ask, show states, and share residents | No |
| **MCP alone** | Direct `pixling_*` MCP tool calls | Server defaults plus your instructions | No |

All three combine cleanly on the same resident.

### Updates in a bubble

What the agent writes appears in a bubble above the resident, as it works and when it finishes a turn.

### Permission prompts on your desk

When the agent needs permission to run something, the resident asks. Answer with `Allow` or `Deny`, or type what to do instead. With no answer within a minute, the agent asks in the terminal as usual.

### Reply from the bubble

Press **Write** on the resident's bubbles, type, and press `Return`: your words go to the agent, and it starts working on them even if it was idle.

### One resident per session

Each session brings its own resident, so agents working side by side each report through their own. The agent spends nothing on this and needs no instructions: the plugin works beside it.

```text title="Where bubbles, reactions, and replies appear"
  ┌─────────────────────────────┐
  │ Agent reply / Allow · Deny  │  ◀── mirrored updates & permission prompts
  │ [Write…]   (type + Return)  │  ◀── type here to reply and wake the session
  └──────────────┬──────────────┘
       ✨  (o_o)  ◀── optional reaction emoji & motion above the resident
```

## Set it up

The plugins require **Node.js 22.19 or later** and talk to Pixling through the linked `pixling` CLI.

1. **Enable CLI connection**

   Open **Settings** › **Connect** in Studio and turn on **CLI connection**. Leave **MCP connection** off unless you also want the agent to call MCP tools itself.

   - **Claude Code**: Copy and run **① Add the Pixling marketplace** and **② Install the plugin** in Terminal, then skip straight to step 3 (`pixling-proxy` finds `/Applications/Pixling.app` automatically).
   - **Pixling outside Applications or calling `pixling` directly**: Open **Use pixling from Terminal (Link into PATH)** at the bottom of **Connect** and run the **Link into PATH** command once.

2. **Install the plugin for your host**

   Pick your host below (skip if you already ran ① and ② for Claude Code above):

#### Claude Code

```sh title="Terminal"
claude plugin marketplace add pixling/agent-kit
claude plugin install pixling-proxy@pixling
```
Full steps on the [Claude Code](/docs/plugins/claude-code/) page.

#### Codex

```sh title="Terminal"
codex plugin marketplace add pixling/agent-kit
```
Then install `pixling-proxy` from `/plugins`. Full steps on the [Codex](/docs/plugins/codex/) page.

#### OpenCode

Add `"@pixling/opencode-proxy"` to `opencode.json`:
```json title="opencode.json"
{ "plugin": ["@pixling/opencode-proxy"] }
```
Full steps on the [OpenCode](/docs/plugins/opencode/) page.

#### pi

```sh title="Terminal"
pi install npm:@pixling/pi-proxy
```
Full steps on the [pi](/docs/plugins/pi/) page.

#### DeepSeek Harness

```sh title="Terminal"
dsh plugin --profile web add @pixling/dsh-proxy
```
Full steps on the [DeepSeek Harness](/docs/plugins/dsh/) page.

#### Antigravity CLI

```sh title="Terminal"
agy plugin install agent-kit/plugins/pixling-proxy
```
Full steps on the [Antigravity CLI](/docs/plugins/antigravity/) page.

3. **Start a new session and verify**

   Start a new session in your agent and a resident comes out on your desk. Check the setup anytime with `pixling doctor`.

> [!TIP]
> **MCP connection can stay off**
> The plugins use only **CLI connection**. Leave **MCP connection** off unless you also want the agent itself to call Pixling MCP tools on the same resident.

## Agent guides

- [Claude Code](/docs/plugins/claude-code/): One-line install, asyncRewake wakeups, and permission prompts.
- [Codex](/docs/plugins/codex/): Marketplace install, /plugins setup, and codex queue relay.
- [OpenCode](/docs/plugins/opencode/): Add @pixling/opencode-proxy to opencode.json.
- [pi](/docs/plugins/pi/): Install npm:@pixling/pi-proxy and relay from the desk.
- [DeepSeek Harness](/docs/plugins/dsh/): Add @pixling/dsh-proxy for Web and Desktop sessions.
- [Antigravity CLI](/docs/plugins/antigravity/): Install pixling-proxy with agy plugin install.

## How session residents work

- **Bound per session**: Each session binds its own resident as `client:<host>/<session id>`, with the namespace `claude-code`, `codex`, `opencode`, `pi`, `dsh`, or `antigravity`. The agent learns the pair at the start of the session, so it can also speak and ask through the same resident ([Give your agent a resident](/docs/connect/own-a-resident/)).
- **Stays when the session ends**: Ending a session does not put its resident away ([What stays and what goes](/docs/use/what-stays/#when-an-agents-session-ends)). Choose **Put away** from the resident's menu when you no longer want it; the plugin then stays quiet for the rest of that session.
- **No clutter from one-shot runs**: One-shot runs (`claude -p`, `codex exec`, `pi -p`, `agy -p`, headless dsh) get no resident, so workers an agent starts do not fill the desk.

## Combine with MCP or skills

The plugin covers the conversation. To have the agent also show states, glow, or share one resident among several agents, connect it over MCP ([Connect an agent](/docs/connect/)) or install the Agent Skills below. The agent then speaks through the same resident the plugin bound.

## Reactions

**pixling-proxy** can also have the resident react to each reply in a way that fits it: cheering when work finishes, drooping on a failure, and tilting its head when the agent asks a question. While the agent works, an emoji pops over the resident for what it is busy with.

Reactions stay off until you add an `emote` object in `~/.config/pixling/proxy.json` (even an empty `{}` if your key is already in `AI_GATEWAY_API_KEY`). Nothing else needs to be installed.

```json title="~/.config/pixling/proxy.json"
{ "emote": { "apiKeyEnv": "AI_GATEWAY_API_KEY" } }
```

> [!NOTE]
> **What leaves your Mac**
> Nothing leaves your Mac until you turn reactions on.
>
> - **What is sent**: Only the agent's reply, with nothing else from the conversation.
> - **Where it goes**: By default, `typesafe-ai/jev` through the Vercel AI Gateway using your own key.
> - **Fallback**: Until enabled, and whenever the judge cannot be reached, the resident moves for the reply like any other message.

A resident whose motion is off still shows its emotes and light, without the turns and shakes.

With a `voice` object and a [Fish Audio](https://fish.audio) key as well, the resident also speaks the parts of each reply worth hearing aloud: a result, a question to you, or what happens next. Only those parts are sent to Fish Audio. See [Voice](https://github.com/pixling/agent-kit/blob/main/plugins/pixling-proxy/README.md#voice) for settings.

<details>
<summary>All <code>emote</code> options</summary>

| Key | Default | Meaning |
| --- | --- | --- |
| `endpoint` | `https://ai-gateway.vercel.sh/v4/ai` | AI Gateway-compatible endpoint (`POST <endpoint>/evaluation-model`); `https:` or `http:` to this Mac only |
| `model` | `typesafe-ai/jev` | Evaluation model |
| `apiKey` | none | API key directly. Prefer `apiKeyEnv` if you share your settings |
| `apiKeyEnv` | `AI_GATEWAY_API_KEY` | Environment variable holding the key when `apiKey` is unset |
| `threshold` | `0.5` | Confidence threshold (`0` to `1`) for triggering a reaction |

</details>

## Settings

All settings are optional and live in `~/.config/pixling/proxy.json`. Every key also has an environment variable, such as `PIXLING_PROXY_ASSET=No.1,No.2,No.7` or `PIXLING_PROXY_PERMISSION_WAIT_MS=0`.

```json title="Rotate residents and localize permission prompts"
{
  "asset": ["No.1", "No.2", "No.7"],
  "permissionWaitMs": 60000,
  "language": "ja"
}
```

Set only what you want to change under `show` to control what appears on the resident and how often:

```json title="Show tool calls at most every 10 seconds"
{ "show": { "tools": "all", "everyMs": 10000 } }
```

In a `show.tools` list, `*` matches any characters and `!` hides. **The last match decides**, and a list starting with `!` starts from every tool:

```json title="Filter tools by pattern or exclusion"
{ "show": { "tools": ["Bash", "run_command", "mcp__*", "!mcp__pixling__*"] } }
{ "show": { "tools": ["!Read", "!Grep"] } }
```

- **Host tool names**: Each host names its tools its own way: a shell command is `Bash` on Claude Code and Codex, `run_command` on Antigravity CLI, `shell` on OpenCode, and `bash` on pi and dsh. Unmatched names are ignored, so one list can cover several hosts.
- **Batching with `everyMs`**: Checked when something happens, so nothing shows during one long tool call. The final reply and permission questions never wait.

<details>
<summary>All settings, <code>show</code> options, host <code>reasoning</code> support, and environment variables</summary>

### Top-level keys

| Key | Default | Meaning |
| --- | --- | --- |
| `asset` | `No.1` | New-session resident: `No.N`, exact name, ID, a list, or `random`. A list or `random` picks one Field Guide resident per session |
| `show` | see below | What shows on the resident, and how often |
| `permissionWaitMs` | `60000` | Milliseconds a permission prompt waits on the resident before falling back to the host. `0` turns prompts off |
| `receive` | `true` | Let you type to the resident and relay it to the agent |
| `unattended` | `false` | Also bind a resident in one-shot runs. Shows replies only |
| `language` | from `LANG` | `en`, `ja`, `zh-Hant`, or `ko`, for the permission question |
| `turnEndWaitMs` | `0` | Codex and Antigravity CLI: hold each turn open this long for your answer on the resident |
| `codexQueue` | `true` | Codex: relay what you type with `codex queue`. Off, it arrives with your next prompt |

### Keys under `show`

| Key | Default | Meaning |
| --- | --- | --- |
| `reply` | `true` | Reply at the end of each turn |
| `text` | `true` | What the agent writes between tool calls |
| `reasoning` | `"none"` | `"summary"` shows host reasoning summaries; `"all"` includes full reasoning. Shown as a quote when provided |
| `tools` | `"none"` | `"all"`, or a list of tool names. Only the name shows, never the input |
| `everyMs` | `0` | Minimum gap between updates; intermediate events batch together. Replies and permission prompts never wait |
| `maxChars` | `4000` | Longer text is cut and ends with `…`. The resident takes at most 4000 characters |

### Host support for `reasoning`

| Host | `reasoning` |
| --- | --- |
| Claude Code | `summary`, and rarely. `showThinkingSummaries: true` in its settings gives more |
| Codex | `summary`, with `model_reasoning_summary` set. Often nothing, and a heading at most |
| Antigravity CLI, OpenCode, pi, dsh | `all`, depending on the model |

### Environment variables for `show`

- `PIXLING_PROXY_REPLY`, `PIXLING_PROXY_TEXT`: set to `0` to turn off.
- `PIXLING_PROXY_REASONING`: `none`, `summary`, or `all`.
- `PIXLING_PROXY_TOOLS`: `all`, `none`, or a comma-separated list such as `Bash,Edit`.
- `PIXLING_PROXY_EVERY_MS`: minimum interval in milliseconds.

</details>

## Skills

The Agent Skills teach an agent to use the resident on its own: speak, ask, show a state, and share one resident between several agents. They use the CLI, so any agent that runs shell commands can use them:

```sh title="Terminal"
npx skills add pixling/agent-kit
```

## Diagnose

The plugins log what they do (never message text) to `~/.cache/pixling-proxy/proxy.log`. Set `PIXLING_PROXY_DEBUG=0` to turn logging off.
