System-wide macOS grammar fix MVP with a menu bar app, a global shortcut, Accessibility-based text access, clipboard fallback, and either OpenAI or Gemini as the rewrite provider.
- Runs as a menu bar app.
- Uses
Control + Option + Shift + Gto rewrite the currently selected text in most apps. - Uses
Control + Option + Shift + Vto rewrite current clipboard text and paste it back, which is better for terminal-like apps. - Reads and rewrites through macOS Accessibility when possible.
- Falls back to copy/paste when the target app does not expose a writable Accessibility text value.
- In terminal-like apps where safe replacement is unreliable, it copies the rewritten result to your clipboard for manual paste.
- Skips secure fields.
- Stores the API key in your macOS keychain.
- Supports
OpenAIandGeminithrough the same app. - Lets you paste an API key from the clipboard and test the provider connection before saving.
- Lets you denylist apps by bundle ID.
cd /Users/sdevdeep/Desktop/poc/gramr-fix-anywhere
swift build
swift build -c release
./scripts/package_app.shQuick dev run:
swift run GramrFixAnywherePackaged app:
open dist/GramrFixAnywhere.app- Open the app.
- Pick
OpenAIorGeminiin Settings and add that API key. - Grant Accessibility permission when macOS prompts you.
- Select text anywhere and press
Control + Option + Shift + G. - In terminal-like apps, copy the rough text first and use
Control + Option + Shift + V.
gpt-5.4-miniis the OpenAI default model.gemini-2.5-flashis the Gemini default model.- Use the denylist for sensitive apps.
- If a target app does not support direct Accessibility rewriting, the app temporarily uses the clipboard and restores the previous clipboard content afterward.
- Prefix presets are built in:
/fixfor grammar/spelling cleanup/clearfor clarity/professionalfor a polished tone/shortto shorten/replyfor message/reply wording/promptto turn rough text into a stronger AI prompt