# APP-4878 - fix TUI copy to use native clipboard

APP-4878 - fix TUI copy to use native clipboard is a Claude Code subagent that routes local TUI copies to the OS clipboard. SSH sessions use OSC 52.

- subagent · `type=agent` · Claude Code, Codex, Cursor · ★ 720 repo stars
- Author: dominikmartn
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Updated: 2026-11-10
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/app-4878-fix-tui-copy-to-use-native-clipboard

## What it does

This subagent changes local selection copying and `/export-to-clipboard` to use the OS clipboard through `arboard`. Remote sessions keep OSC 52, with SSH detected from `SSH_CONNECTION` or `SSH_TTY`.

Copy results have three states: a confirmed native write, an OSC 52 send that the host may reject, or an actual error. Warp denies OSC 52 clipboard writes by default, so that route cannot complete a local copy there. When no local clipboard is available, the local run falls back to OSC 52.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/agents/APP-4878---fix-TUI-copy-to-use-native-clipboard.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/APP-4878---fix-TUI-copy-to-use-native-clipboard.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/APP-4878---fix-TUI-copy-to-use-native-clipboard.md` — Cursor also reads .claude/agents/

## When to use it
- copy selected TUI text into the OS clipboard
- export conversation markdown through `/export-to-clipboard`
- separate local and SSH clipboard paths from environment variables
- show distinct feedback for native copy, OSC 52 delivery, and failure

## Example prompts
- Implement APP-4878 so selection copy in `crates/warp_tui` writes to the native OS clipboard locally.
- Fix `/export-to-clipboard` so local sessions copy the markdown through the OS clipboard and SSH sessions use OSC 52 with honest feedback.

## Similar
- [EXTRA - Native Computer Use](https://affpapa.org/en/nevibecode/mcp/extra-native-computer-use.md) — MCP server · ★ 7 repo stars
- [argent-react-native-app-workflow](https://affpapa.org/en/nevibecode/skills/argent-react-native-app-workflow.md) — skill · 32600 installs
- [react-native-app](https://affpapa.org/en/nevibecode/skills/react-native-app.md) — skill · 510 installs
- [native-app-performance](https://affpapa.org/en/nevibecode/skills/steipete-native-app-performance.md) — skill · 251 installs
- [native-app-designer](https://affpapa.org/en/nevibecode/skills/native-app-designer.md) — skill · 241 installs
- [native-app-planner](https://affpapa.org/en/nevibecode/agents/native-app-planner.md) — subagent · ★ 1167 repo stars

From the same set: [dominikmartn/harp](https://affpapa.org/en/nevibecode/by/dominikmartn/harp.md) — 62 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
