Provides a safe, non-interactive interface for controlling peky sessions, panes, and automation workflows.
Install
mkdir -p .claude/skills/peky && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9536" && unzip -o skill.zip -d .claude/skills/peky && rm skill.zipInstalls to .claude/skills/peky
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use when operating peky 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.Key capabilities
- →Target sessions and panes
- →Automate CLI commands
- →Manage daemon state
- →Execute non-interactive tasks
How it works
Communicates with the peky daemon to execute commands or send text to specific sessions and panes.
Inputs & outputs
When to use peky
- →Automating CLI tasks in peky
- →Managing session focus
- →Sending commands to specific panes
- →Non-interactive project execution
About this skill
peky
Overview
Use this skill to operate peky 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
peky <command> --helpbefore running. - Use
--yesfor 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
peky session focus --name <session>first. - Prefer pane IDs for precision. Use
pane list --jsonand pick the paneid. - Shortcut: use
--pane-id @focusedto target the currently focused pane. pane adddefaults to active pane. For deterministic automation, pass--pane-idor--session+--index.
Targeting: Session vs Project vs Pane ID
- Find session names
peky session list
- Focus the session you intend to operate on
peky session focus --name "<session>" --yes
- Send to a specific pane (recommended)
peky pane list --session "<session>" --json
peky pane send --pane-id "<pane-id>" --text "hello world" --yes
- Send to the whole session or project
peky pane send --scope session --text "hello session" --yes
peky pane send --scope project --text "hello project" --yes
peky 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: usepane keyto 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
--rawto bypass. Use--toolto target only panes running a specific tool.
Examples:
# Run a shell command (executes immediately)
peky pane run --pane-id "<pane-id>" --command "ls -la" --yes
# Run on the currently focused pane (no lookup needed)
peky pane run --pane-id @focused --command "ls -la" --yes
# Type into a prompt without submitting yet
peky pane send --pane-id "<pane-id>" --text "draft message" --yes
peky pane key --pane-id "<pane-id>" --key enter --yes
# Target only Codex panes in a broadcast
peky pane run --scope all --command "hello" --tool codex --yes
# Send raw bytes (no tool formatting)
peky 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.
peky pane add --yes
peky pane add --session "<session>" --index 3 --orientation horizontal --yes
peky 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:
peky --fresh-config ...
peky --temporary-run ...
Daemon Management
peky daemon # foreground
peky daemon stop --yes
peky daemon restart --yes
peky daemon --pprof # requires profiler build
JSON + Automation
Use --json for machine output and --timeout to avoid hangs:
peky pane list --json
peky events watch --json
peky 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/peky
$PP version
Logs (macOS default)
If you need daemon logs:
tail -n 200 "$HOME/Library/Application Support/peky/daemon.log"
Troubleshooting Checklist (fast)
- "focused project unavailable" -> run
session focus --name <session> - Prompt hangs -> add
--yes - Wrong pane -> use
pane list --json, target byid - No daemon ->
peky daemonorpeky daemon start - Can't connect -> ensure same runtime env or stop old daemon
When not to use it
- →Manual interaction when automation is possible
- →Guessing flags without help
Prerequisites
Limitations
- →Scopes limited to session, project, or all
- →Requires focused session for project scope
How it compares
Enables deterministic, non-interactive control over TUI sessions compared to manual terminal usage.
Compared to similar skills
peky side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| peky (this skill) | 0 | 7mo | Review | Intermediate |
| pptx | 393 | 6mo | Review | Advanced |
| nano-pdf | 63 | 2mo | Review | Beginner |
| video-downloader | 101 | 7mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by regenrek
View all by regenrek →You might also like
pptx
anthropics
Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks
nano-pdf
openclaw
Edit PDFs with natural-language instructions using the nano-pdf CLI.
video-downloader
ComposioHQ
Downloads videos from YouTube and other platforms for offline viewing, editing, or archival. Handles various formats and quality options.
youtube-transcript
michalparkola
Download YouTube video transcripts when user provides a YouTube URL or asks to download/get/fetch a transcript from YouTube. Also use when user wants to transcribe or get captions/subtitles from a YouTube video.
using-superpowers
obra
Use when starting any conversation - establishes mandatory workflows for finding and using skills, including using Skill tool before announcing usage, following brainstorming before coding, and creating TodoWrite todos for checklists
browser-automation
browserbase
Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications. Triggers include "browse", "navigate to", "go to website", "extract data from webpage", "screenshot", "web scraping", "fill out form", "click on", "search for on the web". When taking actions be as specific as possible.