How kaiwalyakoparkar/open-paw works
Open Paw is a macOS menu-bar voice companion whose primary flow is hotkey or buddy activation, speech capture and transcription, agent-harness streaming, then on-screen text and spoken replies. A separate explain-this flow captures and marks a screenshot before sending it with a voice prompt to the selected harness. The map includes the documented Hermes, Claude, and Codex options, session handling, and speech/screen subsystems. Some wiring is documented in the README or SOURCE INDEX rather than shown in full source excerpts; those evidence limits are reflected in the cited edges.
Main entry points: CompanionManager.swift Companion orchestration · AgentHarness.swift Harness selection · GradiumSTTClient.swift Gradium transcription · HermesAPIClient.swift Hermes client
Components 29
Buddy interaction
- App lifecycle
OpenPaw/OpenPawApp.swift - Companion orchestration
OpenPaw/CompanionManager.swift - Floating buddy
OpenPaw/UI/BuddyWindow.swift - Buddy display
OpenPaw/UI/BuddyView.swift - Voice status UI
OpenPaw/UI/VoicePillView.swift - Harness setup
OpenPaw/UI/OnboardingPanel.swift - Wake hotkey
OpenPaw/Hotkey/GlobalHotkey.swift - Push-to-talk
OpenPaw/Hotkey/HoldToTalkMonitor.swift
Voice pipeline
- Audio capture
OpenPaw/Voice/AudioCapture.swift - Gradium transcription
OpenPaw/Voice/GradiumSTTClient.swift - Voice activity logic
OpenPawCore/VADLogic.swift - Gradium speech playback
OpenPaw/Voice/GradiumTTSClient.swift - TTS synthesis
OpenPawCore/GradiumTTSSynthesize.swift
Agent harnesses
- Chat messages
OpenPawCore/ChatMessage.swift - Harness selection
OpenPawCore/AgentHarness.swift - Hermes client
OpenPawCore/HermesAPIClient.swift - Hermes stream parser
OpenPawCore/HermesSSEParser.swift - Claude CLI client
OpenPawCore/ClaudeCLIClient.swift - Codex CLI client
OpenPawCore/CodexCLIClient.swift - Pinned sessions
OpenPawCore/PinnedSessionStore.swift
Screen annotation
- Annotation overlay
OpenPaw/UI/AnnotationOverlay.swift - Screen capture
OpenPaw/Vision/ScreenCapture.swift - Image composition
OpenPaw/Vision/AnnotatedImageComposer.swift - Screenshot encoding
OpenPaw/Vision/ScreenshotEncoder.swift
Other components
- Mac user
- Gradium service
- Hermes gateway
- Claude CLI
- Codex CLI
Connections 34
- Mac user → App lifecycle: launches
README.md - App lifecycle → Companion orchestration: starts
OpenPaw/OpenPawApp.swift - Mac user → Wake hotkey: presses wake
README.md - Mac user → Push-to-talk: holds talk
README.md - Wake hotkey → Companion orchestration: signals
- Push-to-talk → Companion orchestration: signals
OpenPaw/CompanionManager.swift - Companion orchestration → Audio capture: captures audio
OpenPaw/CompanionManager.swift - Audio capture → Gradium transcription: streams audio
README.md - Gradium transcription → Gradium service: transcribes via
OpenPaw/Voice/GradiumSTTClient.swift - Gradium transcription → Voice activity logic: uses
OpenPaw/Voice/GradiumSTTClient.swift - Companion orchestration → Harness selection: requests response
OpenPaw/CompanionManager.swift - Harness selection → Chat messages: streams messages
OpenPawCore/AgentHarness.swift - Harness selection → Hermes client: selects
OpenPawCore/AgentHarness.swift - Harness selection → Claude CLI client: selects
OpenPawCore/AgentHarness.swift - Harness selection → Codex CLI client: selects
OpenPawCore/AgentHarness.swift - Hermes client → Hermes gateway: calls
OpenPawCore/HermesAPIClient.swift - Hermes client → Hermes stream parser: parses stream
OpenPawCore/HermesAPIClient.swift - Claude CLI client → Claude CLI: runs
OpenPawCore/ClaudeCLIClient.swift - Codex CLI client → Codex CLI: runs
OpenPawCore/CodexCLIClient.swift - Claude CLI client → Pinned sessions: persists session
OpenPawCore/ClaudeCLIClient.swift - Codex CLI client → Pinned sessions: persists session
OpenPawCore/CodexCLIClient.swift - Companion orchestration → Floating buddy: updates buddy
OpenPaw/CompanionManager.swift - Floating buddy → Buddy display: hosts
OpenPaw/UI/BuddyWindow.swift - Buddy display → Voice status UI: renders
OpenPaw/UI/BuddyView.swift - Companion orchestration → Gradium speech playback: speaks reply
OpenPaw/CompanionManager.swift - Gradium speech playback → TTS synthesis: fetches audio
OpenPaw/Voice/GradiumTTSClient.swift - TTS synthesis → Gradium service: synthesizes via
README.md - Mac user → Harness setup: configures harness
README.md - Mac user → Annotation overlay: requests explain
README.md - Annotation overlay → Companion orchestration: submits selection
- Companion orchestration → Screen capture: captures screen
OpenPaw/CompanionManager.swift - Companion orchestration → Image composition: composes marked image
OpenPaw/CompanionManager.swift - Companion orchestration → Screenshot encoding: encodes screenshot
OpenPaw/CompanionManager.swift - Companion orchestration → Harness selection: sends annotated prompt
README.md