Refinify refines your messages with AI before you send them. It's available for both Windows and macOS platforms.
- Windows: Uses AutoHotkey v2 for system-wide keyboard shortcuts
- macOS: Uses Hammerspoon for system-wide keyboard shortcuts
Both platforms provide identical functionality with platform-appropriate keyboard shortcuts.
Refinify takes the text from the currently active edit box in any application—such as Slack, Gmail, Notepad, etc. It sends your text to an AI model, receives a refined version, and appends it to the end of your original text. This way, you can compare both versions and choose which message to use.
- Place your cursor in the edit box with the text you want to refine. Slack, Gmail, etc.
- Right before sending the message press one of the keystrokes below to refine your text.
Ctrl-Alt-T(Cmd-Alt-Ton mac) will replace the original message with the refined message.Ctrl-Alt-R(Cmd-Alt-Ron mac) will append the refined message to the original message. Wait for 5 seconds and see the refined text appended to your original message.
Suppose you write a message in Slack:
helo, all, do you aware abiout this isue happend yesterda,?After Ctrl-Alt-T your edit box will contain:
Hello everyone, are you aware of the issue that happened yesterday?After Ctrl-Alt-R your edit box will contain:
helo, all, do you aware abiout this isue happend yesterda,?
Hello everyone, are you aware of the issue that happened yesterday?- ✅ Uses AI to make your messages clearer and more professional
- ✅ Works in any application with an editable text box
- ✅ Keeps your original text—compare with the refined version side-by-side
- ✅ Cross-platform support for Windows and macOS
- ✅ Single file installation for macOS (Hammerspoon)
- ✅ Preserves clipboard and restores original content
- ✅ Visual feedback with notifications (macOS)
- ✅ Error handling and user feedback
- ✅ Easy updates via git pull (macOS)
Choose your platform for detailed installation instructions:
- Install AutoHotkey v2 from https://www.autohotkey.com/download/ahk-v2.exe
-
Clone the repository to
C:\Users\your-username\refinify(recommended):git clone https://github.com/moisei-dev/refinify.git
-
Configure API Key Create
.env-secretsfile inrefinify-ahk/directory:OPENAI_API_KEY=your_openai_api_key_here_without_quotes -
Run Refinify
- Browse to
refinify-ahk/directory in Windows Explorer - Double-click
refinify.ahkfile - Notice the green "H" icon in the system tray (script is running)
- Browse to
Since the file is linked to the git repository:
cd refinify
git pull
# Reload Hammerspoon: Cmd+Shift+Rbrew install --cask hammerspoon-
Clone and link the Refinify file
# Clone the repo git clone https://github.com/moisei-dev/refinify.git ~/refinify # Create Hammerspoon config directory if needed mkdir -p ~/.hammerspoon # Link the refinify file ln -s ~/refinify/refinify-hammerspoon/refinify.lua ~/.hammerspoon/refinify.lua
-
Add to Hammerspoon configuration
# This command works for both new and existing init.lua files touch ~/.hammerspoon/init.lua && grep -q 'require("refinify")' ~/.hammerspoon/init.lua || echo 'require("refinify")' >> ~/.hammerspoon/init.lua
-
Configure API Key
echo 'OPENAI_API_KEY=your_actual_api_key_here' > ~/.hammerspoon/.env-secrets
-
Start/Reload Hammerspoon
- Launch Hammerspoon from Applications
- Allow accessibility permissions when prompted
- Reload configuration:
Cmd+Shift+Rin Hammerspoon console
-
Usage
- Place cursor in any text field (Slack, Mail, TextEdit, etc.)
- Press
Cmd+Alt+R(append) orCmd+Alt+T(replace) - Wait for AI to refine your text
Since the file is linked to the git repository:
cd ~/refinify
git pull
# Reload Hammerspoon: Cmd+Shift+R- Script not running: Check if green "H" icon is in system tray
- No response: Verify API key is correctly set in
.env-secrets - Permission errors: Run AutoHotkey as administrator if needed
- No response: Check that your API key is correctly set in
~/.hammerspoon/.env-secrets - Accessibility errors: Make sure Hammerspoon has accessibility permissions in System Preferences
- Module not found: Ensure
refinify.luais linked and your init.lua includesrequire("refinify") - API errors: Check the Hammerspoon console for detailed error messages
refinify/
├── README.md # This file - installation and usage guide
├── refinify-ahk/ # Windows implementation
│ ├── _JXON.ahk # JSON library for AutoHotkey
│ ├── refinify-generic.ahk # Core implementation
│ ├── refinify.ahk # Main entry point
│ └── .env-secrets.template # API key template
└── refinify-hammerspoon/ # macOS implementation
├── refinify.lua # Complete Hammerspoon implementation
└── .env-secrets.template # API key template