Claude Code Plugins

Community-maintained marketplace

Feedback

Use when operating PeakyPanes from the CLI or TUI, especially for AI agents who need reliable, low-error procedures. Covers how to target sessions/panes correctly, use scopes, avoid confirmation prompts, and keep CLI/TUI/daemon in sync.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name peky
description Use when operating PeakyPanes from the CLI or TUI, especially for AI agents who need reliable, low-error procedures. Covers how to target sessions/panes correctly, use scopes, avoid confirmation prompts, and keep CLI/TUI/daemon in sync.

Peky

Overview

Use this skill to operate PeakyPanes safely and predictably from the CLI, especially when automating or controlling panes via an AI agent.

Quick Rules (read first)

  • Do not guess flags. Use peakypanes <command> --help before running.
  • Use --yes for side effects to avoid hanging prompts in non-interactive runs.
  • Scopes are only session|project|all. Never pass project names to --scope.
  • Project scope requires focus. If you see "focused project unavailable," run peakypanes session focus --name <session> first.
  • Prefer pane IDs for precision. Use pane list --json and pick the pane id.
  • Shortcut: use --pane-id @focused to target the currently focused pane.
  • pane add defaults to active pane. For deterministic automation, pass --pane-id or --session + --index.

Targeting: Session vs Project vs Pane ID

  1. Find session names
peakypanes session list
  1. Focus the session you intend to operate on
peakypanes session focus --name "<session>" --yes
  1. Send to a specific pane (recommended)
peakypanes pane list --session "<session>" --json
peakypanes pane send --pane-id "<pane-id>" --text "hello world" --yes
  1. Send to the whole session or project
peakypanes pane send --scope session --text "hello session" --yes
peakypanes pane send --scope project --text "hello project" --yes
peakypanes pane send --scope all --text "hello all" --yes

If --scope project fails, the focused session is missing or has no project path. Fix by focusing a session with a valid path.

Run vs Send

Use this to avoid confusion in Codex/Claude sessions:

  • pane run = execute now. Sends the command and a newline. Best for shell commands or anything you want to run immediately.
  • pane send = type only. Sends raw input without pressing Enter. Best when you need to compose input step‑by‑step or control submission.
  • Submitting after send: use pane key to press Enter when you decide to submit.
  • Tool-aware input (default): send/run uses pane tool metadata (Codex/Claude/etc) to format input (bracketed paste + submit). Use --raw to bypass. Use --tool to target only panes running a specific tool.

Examples:

# Run a shell command (executes immediately)
peakypanes pane run --pane-id "<pane-id>" --command "ls -la" --yes

# Run on the currently focused pane (no lookup needed)
peakypanes pane run --pane-id @focused --command "ls -la" --yes

# Type into a prompt without submitting yet
peakypanes pane send --pane-id "<pane-id>" --text "draft message" --yes
peakypanes pane key --pane-id "<pane-id>" --key enter --yes

# Target only Codex panes in a broadcast
peakypanes pane run --scope all --command "hello" --tool codex --yes

# Send raw bytes (no tool formatting)
peakypanes pane send --pane-id "<pane-id>" --text "raw bytes" --raw --yes

Adding Panes

pane add is the first-class command. It defaults to the focused session + active pane.

peakypanes pane add --yes
peakypanes pane add --session "<session>" --index 3 --orientation horizontal --yes
peakypanes pane add --pane-id "<pane-id>" --yes

Use pane split when you want an explicit split target and no defaults.

When the TUI is running

The CLI talks to the same daemon. You can run CLI commands from another terminal:

  • If the TUI was launched with --temporary-run, the CLI must share that runtime/config env. Otherwise it won't connect.

Fresh / Temporary Runs (safe testing)

Use these when you don't want to touch existing state:

peakypanes --fresh-config ...
peakypanes --temporary-run ...

Daemon Management

peakypanes daemon            # foreground
peakypanes daemon stop --yes
peakypanes daemon restart --yes
peakypanes daemon --pprof    # requires profiler build

JSON + Automation

Use --json for machine output and --timeout to avoid hangs:

peakypanes pane list --json
peakypanes events watch --json
peakypanes pane tail --json --lines 50

Stress + E2E (local + self-hosted)

Use the built-in stress battery for regression protection:

scripts/cli-stress.sh

Enable tool loops during stress (Codex/Claude):

RUN_TOOLS=1 scripts/cli-stress.sh

Tip: when using a local binary alias, always call $PP, not PP:

PP=./bin/peakypanes
$PP version

Logs (macOS default)

If you need daemon logs:

tail -n 200 "$HOME/Library/Application Support/peakypanes/daemon.log"

Troubleshooting Checklist (fast)

  • "focused project unavailable" -> run session focus --name <session>
  • Prompt hangs -> add --yes
  • Wrong pane -> use pane list --json, target by id
  • No daemon -> peakypanes daemon or peakypanes daemon start
  • Can't connect -> ensure same runtime env or stop old daemon