Skip to content

Add Hammerspoon hotkey examples for dictation and meeting notes#222

Merged
alexkroman merged 6 commits into
mainfrom
claude/pensive-lovelace-2cv5sh
Jun 17, 2026
Merged

Add Hammerspoon hotkey examples for dictation and meeting notes#222
alexkroman merged 6 commits into
mainfrom
claude/pensive-lovelace-2cv5sh

Conversation

@alexkroman

Copy link
Copy Markdown
Collaborator

Adds two new example integrations that drive the AssemblyAI CLI from Hammerspoon hotkeys on macOS, making speech-to-text and meeting recording accessible without the terminal.

Changes

  • examples/dictation-hammerspoon/: A ~100-line Hammerspoon script that implements push-to-talk dictation (WisprFlow-style). Hold a hotkey to record, release to transcribe and insert the text at the cursor in any app. Uses assembly dictate which records immediately and prints the transcript on SIGTERM, enabling a clean hotkey-driven workflow.

  • examples/meeting-notes-hammerspoon/: A Hammerspoon companion to the justfile that records meetings with one hotkey. Captures system audio + mic with speaker labels, auto-names the file from its content, and writes a live Markdown note via an LLM. Pairs with assembly stream --system-audio --speaker-labels --auto-name --llm for a complete meeting-to-notes pipeline.

  • Documentation: Each example includes a README.md with setup instructions (CLI + Hammerspoon installation, permissions, configuration), usage examples, and customization options.

  • examples/meeting-notes-hammerspoon/justfile: Terminal-driven recipes (just record, just list, just search) that complement the Hammerspoon hotkey, allowing the same workflow from the command line.

  • Root README.md: Updated to reference both new examples in the feature overview.

Implementation details

Both scripts follow the same pattern:

  • Resolve the assembly binary through a login shell (Hammerspoon has a minimal PATH; Homebrew installs to /opt/homebrew/bin on Apple Silicon)
  • Use hs.task to launch the CLI as a background process
  • Bind hotkeys to start/stop recording via task lifecycle (SIGTERM triggers the CLI's clean-stop path)
  • Provide menubar indicators and optional system sounds for feedback
  • Include configurable settings (hotkeys, model, prompts, output directories) at the top of each script

The meeting-notes example additionally manages a live-updating Markdown file via --llm, which re-runs the prompt over the growing transcript as the meeting progresses.

https://claude.ai/code/session_01JFNUnmwzsAr7VL5NnaYwUj

@alexkroman alexkroman enabled auto-merge June 17, 2026 18:48
@alexkroman alexkroman added this pull request to the merge queue Jun 17, 2026
@alexkroman alexkroman removed this pull request from the merge queue due to a manual request Jun 17, 2026
claude added 2 commits June 17, 2026 19:38
Adds examples/wisprflow-hammerspoon, a push-to-talk dictation recipe that
drives `assembly dictate` from a Hammerspoon hotkey: hold to record, release
to SIGTERM the task and paste/type the transcript at the cursor in any app.
Includes the ~100-line Lua script and a setup README, and links it from the
main README's "Things you can do with it" section.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JFNUnmwzsAr7VL5NnaYwUj
Renames examples/wisprflow-hammerspoon to examples/dictation-hammerspoon
(script -> dictation.lua) and adds examples/meeting-notes-hammerspoon: a
one-hotkey meeting recorder built on `assembly stream` (system audio + mic,
speaker labels, --auto-name, live --llm notes), with the companion justfile
(record/list/search) it mirrors. Both link from the README's examples section.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JFNUnmwzsAr7VL5NnaYwUj
@alexkroman alexkroman force-pushed the claude/pensive-lovelace-2cv5sh branch from 6f58fe1 to 3107890 Compare June 17, 2026 19:38
@alexkroman alexkroman enabled auto-merge June 17, 2026 20:21
@alexkroman alexkroman added this pull request to the merge queue Jun 17, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 17, 2026
@alexkroman alexkroman enabled auto-merge June 17, 2026 21:50
@alexkroman alexkroman added this pull request to the merge queue Jun 17, 2026
Merged via the queue into main with commit 69c7803 Jun 17, 2026
19 checks passed
@alexkroman alexkroman deleted the claude/pensive-lovelace-2cv5sh branch June 17, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants