switchboard-streamdeck: Instructions file for Claude Code

CLAUDE.md

switchboard-streamdeck CLAUDE.md is an instructions file for Claude Code from windaddict/switchboard-streamdeck. It costs 10,453 tokens per session, scanned A, original, MIT.

A macOS plugin that lets Elgato Stream Deck buttons and dials control actions, including Safari-related tasks.

In plain words
What is it for?
Use it to develop or maintain Stream Deck actions, control Safari targets, run AppleScript, preserve installed button settings during changes, and add new actions.
Why use it?
It provides a defined development structure and records important details about identifiers, AppleScript, testing, and adding actions.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions Claude Code; runs codex exec.

This is windaddict/switchboard-streamdeck's own configuration. It tells Claude Code how to work on switchboard-streamdeck itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything switchboard-streamdeck configures →

Reuse

Borrowing it

Nothing to install: this file belongs to windaddict/switchboard-streamdeck. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/windaddict/switchboard-streamdeck/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/windaddict/switchboard-streamdeck

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for switchboard-streamdeck CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/windaddict/switchboard-streamdeck/claude-md/github.svg)](https://agentmods.dev/instructions/windaddict/switchboard-streamdeck/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/windaddict/switchboard-streamdeck/claude-md"><img src="https://agentmods.dev/badge/instructions/windaddict/switchboard-streamdeck/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for switchboard-streamdeck CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/windaddict/switchboard-streamdeck/claude-md"><img src="https://agentmods.dev/badge/instructions/windaddict/switchboard-streamdeck/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10,453 This file is loaded in full into every session.
When invoked 10,453 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.10453 $0.10453
Opus 5.5 $0.04181 $0.04181
Sonnet 5.5 $0.02091 $0.02091
Haiku 4.5 $0.01045 $0.01045

Measured 26d ago against content hash bd4b32401750, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

switchboard-streamdeck CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 26d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 587 lines

How it starts

The opening of the file, as written. The whole thing — 587 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Switchboard — Stream Deck plugin (developer guide)

A macOS Stream Deck plugin (public name Switchboard, by Moving Average Labs). Built with the Elgato SDK v2 (TypeScript/Node). The plugin UUID is com.movingavg.switchboard (renamed from the legacy com.johnknox.safarijump). Don't change it casually — installed buttons reference it, so a change orphans configured keys unless migrated. scripts/rename.sh performs such a migration (it rewrites the UUIDs in the Stream Deck profile store so settings survive); see that script before ever renaming again. Sixteen actions today (the manifest is the source of truth — scripts/make-hero.py reads it).

Layout

src/
  plugin.ts                 # entry: registers every action, streamDeck.connect()
  actions/*.ts              # thin SDK glue per action (onKeyDown/onDialRotate/…)
  applescript/
    escape.ts               # escapeForAppleScript (shared)
    runner.ts               # runAppleScript via osascript; classifyError (TCC)
  mac/                      # PURE, tested logic (no SDK, no I/O)
    targets/safari ...      # see files below
  safari/                   # Safari tab logic (targets.ts, applescript.ts, runner re-export)
  mac/agent-*.ts            # AI Project (supersedes the three per-agent keys):
                            #   agent-project (one AgentKind/AgentState vocabulary,
                            #   per-kind approval-prompt matchers, decideAgentFace,
                            #   per-kind key face), agent-scan (ADAPTER over the three
                            #   existing scanners — never a fourth scanner)
  mac/deprecation.ts        # the badge on the three superseded key faces; DELETE
                            #   this whole file when those actions are retired
  mac/cursor-*.ts           # Cursor CLI detection: cursor-scan (pgrep -f the installed
                            #   versions path -> ps -o pid=,ppid=,tty=,args= -> lsof), cursor-project
                            #   (identity + turn_ended state + approval-prompt scrape + key face)
  mac/claude-*.ts           # Claude Code detection: claude-scan (ps→batched lsof +
                            #   shell-snapshot busy children = "N shells still running"; pgrep
                            #   misses ancestors), claude-state (title marker: braille=working,
                            #   ✳=waiting; tmux pane-tty map), claude-transcript (~/.claude/
                            #   projects freshness), claude-project (state decision + key face)
  mac/{coalesce,serialize,press-gate}.ts  # shared async plumbing (all unit-tested)
  mac/pasteboard-stash.ts    # Paste Snippet's clipboard save/restore: copies the
                            #   WHOLE pasteboard (every item, every type) into a
                            #   named stash pasteboard and back, so a gesture
                            #   borrows the clipboard instead of keeping it.
                            #   NEVER stashes a ConcealedType clipboard.
  mac/snippet.ts             # Paste Snippet pure logic: size cap, and the four key
                            #   faces — preview (the default, whatever the text's
                            #   provenance), masked (opt-in per key), blank
                            #   (whitespace-only) and over-cap. Key-face SVG.
  mac/clipboard-snippet.ts   # Paste Snippet's ⌘C/⌘V route: the capture poll, the
                            #   snippet write (build the item, THEN clear), the
                            #   per-write ownership token, and the gesture
                            #   orchestration that saves/restores the clipboard
  mac/ax-text.ts             # Paste Snippet's no-clipboard route, CAPTURE ONLY:
                            #   captureViaAx reads AXSelectedText on the frontmost
                            #   app's focused element via System Events. Framed
                            #   `ok\n<text>` / nosel / unsupported / err|<n> — status
                            #   on the first line, payload after the first newline, so
                            #   selection text can't corrupt the framing. insertViaAx
                            #   exists but is NOT on the live path: the AX write was
                            #   measured reporting success while inserting nothing
tests/*.test.ts             # vitest; one file per pure module
com.movingavg.switchboard.sdPlugin/
  manifest.json             # actions, layouts, icons, CodePath -> bin/plugin.js
  ui/*.html                 # property inspectors (sdpi-components bundled in ui/lib/)
  ui/lib/permissions.js     # shared PI Accessibility-warning banner (see below)
  layouts/*.json            # custom encoder (touchscreen) layouts
  imgs/actions/<a>/*.png    # icon.png/@2x + key.png/@2x per action
  bin/plugin.js             # rollup output — COMMITTED (self-contained bundle)
  bin/macos/{scroll,tile,axcheck}  # compiled Swift helpers — committed, UNIVERSAL
                            #   (arm64+x86_64), Developer ID signed + notarized
helper/{scroll,tile,axcheck}.swift # native helpers (scroll wheel / window tiling / AX probe)
scripts/
  build-helpers.sh          # build the 3 helpers universal; auto-sign if a Developer ID cert is present
  notarize-helpers.sh       # no-Fastlane notarize fallback
  make-hero.py              # regenerate docs/switchboard-hero.png from the manifest
  rename.sh                 # UUID migration tool (see Rename section)
fastlane/                   # Developer ID signing + notarization (see Releasing)

Read the full file on GitHub · 587 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 26d ago Changed · +2 lines · +43 tokens per session bd4b32401750
  2. 27d ago Changed · +1 lines · +21 tokens per session 98a00a7e698a
  3. 28d ago Changed · +49 lines · +1,039 tokens per session 900bb8e46471
  4. 2mo ago First seen · 535 lines · 9,350 tokens per session scan A 3507983dbc1a

Subscribe to this mod's changes

switchboard-streamdeck CLAUDE.md is an instructions file published in the GitHub repository windaddict/switchboard-streamdeck (6 stars, last pushed 27d ago), licensed MIT. It adds 10,453 tokens to every session, about $0.0418 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

switchboard-streamdeck CLAUDE.md compared with instructions from other repositories

switchboard-streamdeck CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
switchboard-streamdeck CLAUDE.mdwindaddict/switchboard-streamdeckInstructions file627d agoMITA10,453Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode