agent-pb

Stop selecting and copying text from your AI agent.

You wrote a query. A curl command. A code block. Now you need it in your clipboard. In Codex, say $pb. In other hosts, use /pb or plain language like copy that.

How it works

Copy the artifact. Skip the selection.

1

Work with your agent

Write code, build queries, generate commands. Whatever you're doing — keep going.

2

Invoke the clipboard helper

Use $pb in Codex, /pb in slash-command hosts, or plain language like copy that. The agent finds the most recent useful artifact and copies it to your clipboard.

3

Paste it wherever

⌘V into your terminal, editor, browser, Slack — wherever it needs to go. No selecting, no highlighting, no dragging.

Works everywhere

One clipboard workflow. Multiple agent hosts.

agent-pb works best as a Codex skill, but the same artifact-selection behavior is portable to Claude Code and other rule-based coding tools.

Claude Code

Plugin install with slash-style usage.

/pb

Codex

Install the bundled skill into $CODEX_HOME/skills and invoke it explicitly.

$pb

Cursor

Add to .cursorrules

"copy that"

Windsurf

Add to .windsurfrules

"copy that"

GitHub Copilot

Add to .github/copilot-instructions.md

"copy that"

What it actually does

Useful defaults for real coding sessions.

Install

Claude Code (plugin)

# add the marketplace and install
/plugin marketplace add ashrocket/agent-pb
/plugin install agent-pb@agent-pb

Codex

# install the bundled skill
mkdir -p "${CODEX_HOME:-$HOME/.codex}/skills/pb"
curl -sL https://raw.githubusercontent.com/ashrocket/agent-pb/main/skills/pb/SKILL.md \
  -o "${CODEX_HOME:-$HOME/.codex}/skills/pb/SKILL.md"
# then use it in Codex
$pb
$pb the AQL query
copy that

Cursor / Windsurf / Copilot

# copy the portable snippet to your rules file
curl -sL https://raw.githubusercontent.com/ashrocket/agent-pb/main/snippets/pb-rules.md >> .cursorrules

Some hosts may ask for approval before writing to the system clipboard. Something broken? File an issue. Want to improve it? PRs welcome.

Also by Ashley

🍉

agent-look

Screenshot scanner for Claude. Take a screenshot, say /look. No more dragging files around.