What it does
Create a Shortcut (formerly Clubhouse) story with a markdown description of the run, upload each frame via `/files`, and link the resulting file ids back onto the story. Supports creating new stories or attaching files to an existing `SHORTCUT_STORY_PUBLIC_ID`.
When to reach for it
- Engineering teams on Shortcut who want video evidence on every bug story
- Feature discovery: open a `feature` story with reference-clip frames attached
- Hosted Shortcut mock / staging: override `SHORTCUT_API_URL` for integration tests
Install
npm i -g peepshowUse it
SHORTCUT_TOKEN=... \
SHORTCUT_PROJECT_ID=1234 \
SHORTCUT_STORY_TYPE=bug \
peepshow ./bug-repro.mov --sink shortcutMake it automatic
Register the sink once — every run fires it afterward. Scope by --when so it only runs for matching videos.
peepshow sinks add shortcut
peepshow sinks add shortcut --when extension=mp4,mov
peepshow sinks add shortcut --when path=/Volumes/Work/Configuration
SHORTCUT_TOKENAPI token, sent as `Shortcut-Token` header. requiredSHORTCUT_PROJECT_IDNumeric project id. Required unless `SHORTCUT_STORY_PUBLIC_ID` is set.SHORTCUT_STORY_PUBLIC_IDAttach to an existing story; skip the create step.SHORTCUT_STORY_TYPE`feature` | `chore` | `bug`. Default `bug`.SHORTCUT_API_URLOverride for self-hosted / staging. Default `https://api.app.shortcut.com/api/v3`.
Use with an LLM agent
Every peepshow sink reads its config from env vars and receives a single JSON payload on stdin. An LLM agent (Claude Code, Cursor, Windsurf, Gemini, Codex) can drive the Shortcut sink automatically when three things are true:
- the env vars below are exported in the agent's shell (or a project
.envit can load), - the
peepshowCLI is onPATH— install withnpm i -g peepshow, - a peepshow auto-sink is registered for the run (optional but recommended — makes invocation zero-argument).
1. Set the environment
# Add to ~/.zshrc, ~/.bashrc, or a project .env the agent can load
export SHORTCUT_TOKEN="..."2. Register as an auto-sink
peepshow sinks add shortcut
peepshow sinks add shortcut --when extension=mp4,mov3. Example LLM session
You → drop a
.movinto Claude Code.Claude → auto-invokes
/peepshow:slides ./clip.mov. peepshow extracts frames + audio, theShortcutsink forwards the run to a new issue with the frames attached. Claude replies with a summary and a link to the created record.
Transcript appears in the issue body, giving triage a copy-paste-able record of what was said.
Write your own
A sink is any executable that reads the --emit json payload on stdin. Shell, Node, Python, Go — the spec's in docs/PLUGINS.md. Register persistent ones with peepshow sinks add-cmd 'your-command'.