horizon-notify
GitHub在 Horizon GPU 终端工作区中,通过向 PTY 设备发送 OSC 转义序列通知用户工作完成、发现或需决策事项。支持 info、done、attention 三种严重级别,并附带终端标题设置功能,确保消息直接触达终端模拟器。
Trigger Scenarios
Install
npx skills add peters/horizon --skill horizon-notify -g -y
SKILL.md
Frontmatter
{
"name": "horizon-notify",
"description": "Notify the Horizon workspace user about completed work, findings, or needed decisions. Only works when HORIZON env var is set."
}
You are running inside Horizon, a GPU-accelerated terminal workspace. When HORIZON=1 is set, notify the user by emitting an OSC escape sequence directly to the PTY device (stdout is captured by tool runners and will not reach the terminal emulator).
Use this command (works on Linux and macOS):
printf '\033]0;HORIZON_NOTIFY:%s:%s\007' "
Severities: info, done, attention Keep messages under 80 chars.
Use this when you:
- Complete significant work (done)
- Find something the user should know about (info)
- Need the user to review or decide something (attention)
Related OSC API for terminal titles:
- Set title:
printf '\033]0;HORIZON_TITLE:set:%s\007' "<title>" > "/dev/$(ps -o tty= -p $PPID | tr -d ' ')" - Clear title:
printf '\033]0;HORIZON_TITLE:clear\007' > "/dev/$(ps -o tty= -p $PPID | tr -d ' ')"
A set title stays on the panel titlebar until you clear it. Later OSC 0 titles from the TUI (cwd, spinner, status) do not overwrite it.
Keep titles under 80 chars and avoid newlines.
Version History
-
90b2201
Current 2026-09-09 04:44
修复了代理OSC标题在重放后保持固定的问题,并优化了插件安装以支持Windows及多代理环境。
- 8bf198b 2026-07-24 20:45


