Read this in other languages: English, 简体中文.
A beautiful, Windows-native screen edge glow notification system for Codex CLI. Inspired by the macOS version of Boopa.
BoopaWin creates stunning visual light effects on the edges of your screen to let you know the exact state of your AI agent without needing to constantly check your terminal.
- 🟡 Working State: Continuous yellow/gold glow while the agent is processing.
- 🔴 Blocked/Question State: Pulsing red light when the agent is waiting for your approval or input.
- 🟢 Finished State: Breathing green light when the task is fully complete.
- 👁️ Smart Auto-Dismiss: Uses advanced UIAutomation to detect when you refocus your terminal window, instantly and automatically dismissing the notification.
- 🛡️ Zero Dependencies: Pure PowerShell & .NET Reflection implementation. No C# compilation issues, no third-party libraries, works out of the box on Windows.
- Download
boopa-notify.ps1andboopa-hook.ps1. - Place both files in your Codex configuration directory (usually
~/.codex/).
Open your ~/.codex/config.toml and add the following section (if it doesn't already exist):
[features]
hooks = trueOpen your ~/.codex/hooks.json (create it if it doesn't exist) and add the following hooks to route Codex events to BoopaWin:
{
"hooks": {
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "powershell -ExecutionPolicy Bypass -File C:\\Users\\YOUR_USERNAME\\.codex\\boopa-hook.ps1",
"timeout": 30
}
]
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "powershell -ExecutionPolicy Bypass -File C:\\Users\\YOUR_USERNAME\\.codex\\boopa-hook.ps1",
"timeout": 30
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "powershell -ExecutionPolicy Bypass -File C:\\Users\\YOUR_USERNAME\\.codex\\boopa-hook.ps1",
"timeout": 30
}
]
}
],
"PermissionRequest": [
{
"hooks": [
{
"type": "command",
"command": "powershell -ExecutionPolicy Bypass -File C:\\Users\\YOUR_USERNAME\\.codex\\boopa-hook.ps1",
"timeout": 30
}
]
}
]
}
}(Remember to replace YOUR_USERNAME with your actual Windows username!)
Codex requires you to explicitly trust new hooks before they will execute.
- Start your
codexCLI. - Type
/hooksand press Enter. - Select and Trust all the newly added events (
Stop,SessionStart,UserPromptSubmit,PermissionRequest).
- boopa-hook.ps1: The smart dispatcher. It intercepts JSON events from Codex via
stdin, determines the state of the agent, and launches the visual layer with the correct colors and animations. - boopa-notify.ps1: The visual powerhouse. It generates a transparent, click-through WPF overlay across all your monitors. It uses
System.Windows.Automationto reliably detect when you interact with your terminal, ensuring notifications only disappear when you're actually looking at them. - boopa-tray.ps1: The background system tray toggle. Places a green icon in your Windows Taskbar tray. Right-click the icon to easily enable or disable BoopaWin globally without touching any files.
- install-autostart.ps1: A helper script that automatically configures
boopa-tray.ps1to launch silently when you boot into Windows.
If you want the ability to easily turn BoopaWin on or off without using commands, you can enable the System Tray icon.
Simply right-click install-autostart.ps1 and select Run with PowerShell (or run it via the terminal).
This will automatically place a shortcut in your Windows Startup folder so the tray icon appears every time you turn on your computer.
If you only want to run it occasionally, run this command in your terminal:
powershell -WindowStyle Hidden -ExecutionPolicy Bypass -File "C:\Users\YOUR_USERNAME\.codex\boopa-tray.ps1"Once running, a small colored dot will appear in your system tray (bottom right).
- 🟢 Green Dot: BoopaWin is enabled.
- 🔘 Gray Dot: BoopaWin is disabled (Silent mode). Right-click the icon to toggle the state or double-click to quick-toggle.
You can easily tweak colors, animations, and speeds by editing the $color and $animation variables inside the switch block in boopa-hook.ps1.
A massive thank you to the original Eilgnaw/boopa project!
This Windows version (boopaWin) was entirely inspired by and developed based on the brilliant concept and design of the original macOS boopa. Without their pioneering work on screen-edge glow notifications for AI agents, this project would not exist.
🔗 Friends & Links: LINUX DO (linux.do)
Created to bring the beautiful Boopa experience to Windows users.