How gemkids275/aishortcuts works
AI Shortcuts is a cross-platform desktop writing assistant: users select text (or start a chat), invoke a hotkey, choose or compose a command, send the prompt and any attachments to a selected AI provider, then replace the selection or continue in a response window. Commands can be customized and imported/exported; settings cover providers, shortcuts, language, and secure API-key storage. The graph includes the documented Windows/Linux and macOS workflows. Some platform subsystem links rely on README descriptions because their implementation files were not sampled.
Main entry points: WritingToolApp.py Windows/Linux app · CommandExecutionEngine.swift Command execution · CommandsManagerDialog.py Command manager UI · WindowManager.swift macOS window manager
Components 21
Activation and UI
- Windows/Linux app
Windows_and_Linux/WritingToolApp.py - macOS window manager
macOS/WritingTools/Services/WindowManager.swift
Command management
- Command manager UI
Windows_and_Linux/ui/CommandsManagerDialog.py - Command editor
Windows_and_Linux/ui/CommandEditorDialog.py - Command manager
Windows_and_Linux/models/command_manager.py - Command model
Windows_and_Linux/models/command.py - Command manager
macOS/WritingTools/Services/CommandManager.swift - Command model
macOS/WritingTools/Models/CommandModel.swift
Prompt and providers
- Command execution
macOS/WritingTools/App/CommandExecutionEngine.swift - AI providers
Windows_and_Linux/aiprovider.py - App state and providers
macOS/WritingTools/App/AppState.swift - Provider interface
macOS/WritingTools/Models/Providers/AIProvider.swift
Results and attachments
- Response window
Windows_and_Linux/ui/ResponseWindow.py - Attachments
Windows_and_Linux/models/attachment.py - Response window
macOS/WritingTools/Views/Chat/ResponseWindow.swift - Attachments and OCR
macOS/WritingTools/Services/OCRManager.swift
Settings and security
- Settings UI
Windows_and_Linux/ui/SettingsWindow.py - Secure key storage
Windows_and_Linux/models/secure_storage.py - App settings
macOS/WritingTools/App/AppSettings.swift - Keychain
macOS/WritingTools/App/KeychainManager.swift
Other components
- Desktop user
Connections 21
- Desktop user → Windows/Linux app: invokes hotkey
README.md - Desktop user → macOS window manager: invokes hotkey
README.md - Windows/Linux app → Command manager UI: opens commands
- Command manager UI → Command editor: edits commands
Windows_and_Linux/ui/CommandsManagerDialog.py - Command manager UI → Command manager: manages commands
Windows_and_Linux/ui/CommandsManagerDialog.py - Command manager → Command model: loads and saves
Windows_and_Linux/models/command_manager.py - Command manager → Command model: stores commands
macOS/WritingTools/Services/CommandManager.swift - Desktop user → Windows/Linux app: chooses command
README.md - Windows/Linux app → AI providers: sends prompt
Windows_and_Linux/WritingToolApp.py - Desktop user → Command execution: runs command
README.md - Command execution → App state and providers: resolves input and provider
macOS/WritingTools/App/CommandExecutionEngine.swift - App state and providers → Provider interface: selects provider
macOS/WritingTools/App/AppState.swift - Command execution → Provider interface: sends prompt
macOS/WritingTools/App/CommandExecutionEngine.swift - Windows/Linux app → Response window: shows result
README.md - Command execution → Response window: opens response
macOS/WritingTools/App/CommandExecutionEngine.swift - Desktop user → Attachments: adds attachments
README.md - Desktop user → Attachments and OCR: adds attachments
README.md - Settings UI → Secure key storage: stores API keys
Windows_and_Linux/ui/SettingsWindow.py - App settings → Keychain: persists API keys
macOS/WritingTools/App/AppSettings.swift - Windows/Linux app → Settings UI: opens settings
Windows_and_Linux/WritingToolApp.py - macOS window manager → App settings: presents settings
macOS/WritingTools/Services/WindowManager.swift