文章标题:Show HN: Lumio – 在 MacBook 刘海屏中查看你的 AI 编程代理在做什么
正文: 你同时运行三个代理。一个已完成。一个在等你说“是”。一个十分钟前崩溃了。而你只有在切换窗口时才会发现。
所有代理。一个刘海屏。
Lumio 支持十六个 AI 代理。每个代理在刘海屏中以自己的颜色发光,并在办公室里拥有自己的小人。1.5 版新增:Crush、Hermes Agent 和 Kimi Code。
- GitHub Copilot
- Hermes Agent新增
- Kimi Code新增
需要你时它会呼叫。
一个代理完成或等待你的回答时:它在办公室里的小人会在刘海屏处呼叫你,按钮就在那里:允许、回复或打开。直接在刘海屏中回复:Codex 会立即收到,Claude Code 在你开启自动发送后也会立即收到。
每个代理都有一张桌子。
双击右侧 ⌘,一个像素办公室会从刘海屏中生长出来。每个代理在自己的 iMac 前打字,需要你的那个会站起来,完成的那些则去喝咖啡。从六个代理开始,办公室会自动扩展:10 张桌子、一间代理召集助手的会议室、一个休息室,以及窗外的夜晚城市。光线跟随真实的太阳。
整个办公室。整个屏幕。
一键点击,办公室便填满屏幕。右侧显示:谁需要你、你的限额、今天每小时完成了什么,以及你的 Mac 工作得有多辛苦。每个代理都有一张带有其计划的卡片。浅色或深色:办公室跟随 Lumio 主题。
迷你功能
小东西。就在刘海屏处。
将文件拖到刘海屏:它会落在置物架上,或直接发送给某个代理。计时器和秒表在刘海屏旁滴答作响。正在播放内容的封面和波形。还有保持唤醒,让你的 Mac 不会在代理回合中途休眠。在设置 → 迷你功能中开启它们。
其余由你决定。
在设置中开启或关闭刘海屏标签页,只保留你需要的。计时器、保持唤醒和 Mac 默认关闭;在设置 → 迷你功能中开启它们。
Mac。
CPU、内存和电池,以及哪个代理在占用你的 Mac。CPU 和内存也可以显示在菜单栏中。
有想法?按右 ⌥。
点按、输入、回车。保存到 Lumio、你的 Obsidian 每日笔记、任意文件夹或 Apple Notes。
日和周。
每个代理每小时完成了什么。每个任务都有一张卡片。
每台显示器上的刘海屏、浅色主题和 Obsidian 中的开发日志也都在设置中。
你的代码留在你的 Mac 上。
没有账户,没有追踪。不需要屏幕录制权限;只有当你开启从刘海屏发送 Claude 回复时才需要辅助功能权限。Lumio 读取你 Mac 上代理的文件,不会将它们发送到任何地方。它自身只与 lumiomac.com 通信:更新检查(可关闭;包含一个随机安装 ID、Lumio 构建版本和过去 7 天内使用的代理名称),以及支持功能——当你点击发送后,在你的请求处于开放状态期间每 30 分钟检查一次我们是否回复。实时办公室聊天默认关闭。
获取 Lumio。
免费。十秒安装。
- 1打开终端:按 ⌘Space,输入“Terminal”并按回车。
打开终端:按 ⌘Space,输入“Terminal”并按回车。
- 2复制命令并粘贴到终端:⌘V。 curl -fsSL https://lumiomac.com/install.sh | sh
复制命令并粘贴到终端:⌘V。
- 3按回车。大约 10 秒后 Lumio 就会出现在你的刘海屏中。
按回车。大约 10 秒后 Lumio 就会出现在你的刘海屏中。
该命令只从我们的网站下载 Lumio 并将其放入 Applications。macOS 不会发出警告。
- 它只从 lumiomac.com 下载 Lumio 并将其放入 Applications。它不会触碰任何其他文件。
- 它不会要求你的 Mac 密码,除了 Lumio 之外不安装任何东西。
- Lumio 在你的 Mac 上运行:你的代码和与代理的聊天都留在那里。它自身只发送更新检查(可关闭),以及在你联系支持后,每 30 分钟检查一次我们是否回复。
已经安装了 Lumio?同样的命令会将其更新到最新版本。
macOS 会在首次启动时阻止它。打开它,然后前往系统设置 → 隐私与安全性,点击仍要打开。
文章标题:Show HN: Lumio – 在 MacBook 刘海屏中查看你的 AI 编程代理正在做什么
正文: 需要 macOS 14 Sonoma 或更高版本,以及 Claude Code、Codex、Cursor 或上面列出的其他 13 个代理中的任意一个(Grok 和 Droid 处于 beta 阶段)。没有刘海屏?Lumio 会绘制一个虚拟刘海屏。开发日志需要 Obsidian。
该命令运行了什么
这就是 lumiomac.com/install.sh 背后的完整脚本,逐行呈现。
文章标题:Show HN: Lumio – 在 MacBook 刘海屏中查看你的 AI 编程代理正在做什么
正文:
#!/bin/sh
# curl -fsSL https://lumiomac.com/install.sh | sh
# 在停止 Lumio 之前检查下载。旧副本会保留到成功替换并启动为止。
set -eu
tmp=$(mktemp -d)
# Lumio 只在其自己的临时文件夹中接受“已启动”标记。通过 open 打开时,它看到的是系统临时目录
# (DARWIN_USER_TEMP_DIR),而不是 shell 的 TMPDIR:使用自己的 TMPDIR 时会出现“did not start”的误判回滚。
user_tmp=$(getconf DARWIN_USER_TEMP_DIR 2>/dev/null || true)
health=$(mktemp -d "${user_tmp:-${TMPDIR:-/tmp/}}lumio-update-health-XXXXXX")
apps=/Applications
# 普通账户(非管理员)无法写入共享的“应用程序”目录——因此安装到自己的目录(~/Applications),
# 与应用内的 AppMover 行为一致。如果那里已有自己的副本——就更新它,而不是再装一个。
if [ ! -e "$apps/Lumio.app" ] && { [ -e "$HOME/Applications/Lumio.app" ] || [ ! -w "$apps" ]; }; then
apps="$HOME/Applications"
mkdir -p "$apps"
elif [ ! -w "$apps" ]; then
echo "Lumio in $apps was installed by an administrator, and only an administrator can replace it." >&2
echo "Ask them to run this command, or open Lumio: it offers to move itself to your own Applications folder." >&2
rm -rf "$tmp" "$health"
exit 1
fi
destination="$apps/Lumio.app"
staged="$apps/.lumio-new-$$.app"
backup="$apps/.lumio-previous-$$.app"
moved=0
installed=0
success=0
stopped=0
cleanup() {
if [ "$success" -eq 0 ]; then
if [ "$installed" -eq 1 ]; then
pkill -x Lumio 2>/dev/null || true
for attempt in 1 2 3 4 5; do pgrep -x Lumio >/dev/null || break; sleep 0.1; done
rm -rf "$destination"
fi
if [ "$moved" -eq 1 ] && [ ! -e "$destination" ]; then mv "$backup" "$destination"; fi
if [ "$stopped" -eq 1 ] && [ -e "$destination" ]; then open -g "$destination" 2>/dev/null || true; fi
fi
rm -rf "$tmp" "$staged" "$health"
}
trap cleanup EXIT
trap 'exit 1' HUP INT TERM
echo "Downloading Lumio…"
# 连接中断(移动网络、VPN):latest.json 的 curl 会重试最多 5 次,每次重新下载(不做断点续传:
# 拼接两个版本的清单是不可接受的)。连接挂起(< 1 KB/s 持续 30 秒)——同样视为中断,而不是无限等待。
download_failed() {
echo "Could not download Lumio. Check your internet connection and run the command again." >&2
exit 1
}
curl --proto '=https' --tlsv1.2 -fsSL --retry 5 --retry-all-errors --retry-delay 2 --speed-limit 1024 --speed-time 30 --max-filesize 65536 https://lumiomac.com/latest.json -o "$tmp/latest.json" || download_failed
version=$(plutil -extract version raw -o - "$tmp/latest.json")
build=$(plutil -extract build raw -o - "$tmp/latest.json")
bytes=$(plutil -extract bytes raw -o - "$tmp/latest.json")
checksum=$(plutil -extract sha256 raw -o - "$tmp/latest.json")
case "$version" in ''|*[!0-9.]*|.*|*..*|*.) echo "Invalid release version" >&2; exit 1;; esac
case "$build:$bytes" in *[!0-9:]*) echo "Invalid release size or build" >&2; exit 1;; esac
[ "$build" -gt 0 ] && [ "$bytes" -gt 0 ] && [ "$bytes" -le 67108864 ]
[ "${#checksum}" -eq 64 ]
case "$checksum" in *[!0-9a-f]*) echo "Invalid release checksum" >&2; exit 1;; esac
# 归档文件——通过 -C - 分段下载:curl --retry 在中断后会从头重新下载(已在 curl 8.7 上验证),而分段
# 会从断点继续。服务器未返回该片段(代码 33)——则从头开始下载文件。
attempt=1
until curl --proto '=https' --tlsv1.2 -fsSL -C - --speed-limit 1024 --speed-time 30 --max-filesize "$bytes" https://lumiomac.com/Lumio.zip -o "$tmp/Lumio.zip"; do
[ $? -eq 33 ] && rm -f "$tmp/Lumio.zip"
[ "$attempt" -lt 6 ] || download_failed
attempt=$((attempt + 1))
echo "Connection dropped, resuming the download…" >&2
sleep 2
done
# 断点续传不应削弱校验:大小和 sha256——针对整个文件,与外来片段拼接将无法通过。
[ "$(stat -f %z "$tmp/Lumio.zip")" -eq "$bytes" ] && [ "$(shasum -a 256 "$tmp/Lumio.zip" | awk '{print $1}')" = "$checksum" ] || {
echo "The download was damaged. Run the command again." >&2
exit 1
}
# 甚至在解压之前就排除应用之外的路径和外部符号
文章标题:Show HN: Lumio – 在 MacBook 刘海屏中查看你的 AI 编程代理正在做什么
正文:
链接。
zipinfo -1 "$tmp/Lumio.zip" > "$tmp/paths"
awk 'BEGIN {bad=0} /^\// || /\\/ || /(^|\/)\.\.(\/|$)/ {bad=1} !/^Lumio\.app\// && !/^__MACOSX\// {bad=1} END {exit bad || NR == 0 || NR > 20000}' "$tmp/paths"
zipinfo -l "$tmp/Lumio.zip" > "$tmp/entries"
awk '/^[-dl]/ {total += $4} END {exit total > 268435456}' "$tmp/entries"
sed -n 's/^l[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *//p' "$tmp/entries" > "$tmp/links"
while IFS= read -r path; do
link=$(unzip -p "$tmp/Lumio.zip" "$path")
case "$link" in ''|/*|*\\*) echo "Invalid archive link" >&2; exit 1;; esac
printf '%s\n' "$link" | awk '/(^|\/)\.\.(\/|$)/ {exit 1}'
done < "$tmp/links"
ditto -x -k "$tmp/Lumio.zip" "$tmp"
app="$tmp/Lumio.app"
info="$app/Contents/Info.plist"
[ "$(plutil -extract CFBundleIdentifier raw -o - "$info")" = com.lumiomac.lumio ]
[ "$(plutil -extract CFBundleShortVersionString raw -o - "$info")" = "$version" ]
[ "$(plutil -extract CFBundleVersion raw -o - "$info")" = "$build" ]
codesign --verify --deep --strict "$app"
# 不用 lipo:没有开发者工具(普通 Mac)时它无法工作。
file -b "$app/Contents/MacOS/Lumio" | grep -q "$(uname -m)"
if [ -e "$destination" ]; then
[ ! -L "$destination" ]
[ "$(plutil -extract CFBundleIdentifier raw -o - "$destination/Contents/Info.plist")" = com.lumiomac.lumio ]
for personal_key in LumioPhoneServer LumioSunLatitude LumioSunLongitude; do
personal_current=$(plutil -extract "$personal_key" raw -o - "$destination/Contents/Info.plist" 2>/dev/null) || personal_current=
if [ -n "$personal_current" ]; then
personal_candidate=$(plutil -extract "$personal_key" raw -o - "$info" 2>/dev/null) || personal_candidate=
if [ "$personal_current" != "$personal_candidate" ]; then
echo "Personal build detected. Update it from your project to keep your phone office connected." >&2
exit 1
fi
fi
done
fi
# 先在旧版本旁边准备好新副本:写入失败不会破坏已安装的应用。
ditto "$app" "$staged"
codesign --verify --deep --strict "$staged"
pkill -x Lumio 2>/dev/null || true
stopped=1
for attempt in 1 2 3 4 5; do pgrep -x Lumio >/dev/null || break; sleep 1; done
if pgrep -x Lumio >/dev/null; then echo "Quit Lumio, then try again." >&2; exit 1; fi
if [ -e "$destination" ]; then mv "$destination" "$backup"; moved=1; fi
mv "$staged" "$destination"
installed=1
xattr -dr com.apple.quarantine "$destination" 2>/dev/null || true
open -g "$destination" --args --lumio-update-health "$health/ready"
ready=0
for attempt in $(seq 1 30); do
if [ -f "$health/ready" ] &&
[ "$(plutil -extract version raw -o - "$health/ready" 2>/dev/null)" = "$version" ] &&
[ "$(plutil -extract build raw -o - "$health/ready" 2>/dev/null)" = "$build" ]; then ready=1; break; fi
sleep 1
done
[ "$ready" -eq 1 ] || { echo "Lumio did not start; restoring the previous version." >&2; exit 1; }
success=1
if [ "$moved" -eq 1 ]; then rm -rf "$backup"; fi
echo "Lumio is installed in $apps and running."
文章标题:Show HN: Lumio – 在 MacBook 刘海屏中查看你的 AI 编程代理正在做什么
正文:
马上就好。
Lumio 正在下载。第一次打开时,macOS 会要求你确认,仅此一次。
最快的方式:在终端中粘贴一条命令并按回车。没有警告,无需设置。
为什么?Lumio 是一款来自独立开发者的免费应用,尚未经过 Apple 公证。
或者按四个步骤打开已下载的应用:
- Lumio Applications 1 将它移到 Applications 在 Downloads 中你会找到 Lumio(如果只有 Lumio.zip,请先打开它)。将 Lumio 拖入 Applications。
图表:Applications
将它移到 Applications
在 Downloads 中你会找到 Lumio(如果只有 Lumio.zip,请先打开它)。将 Lumio 拖入 Applications。
- “Lumio”未打开 Apple 无法验证“Lumio”不含可能损害你的 Mac 或危及你隐私的恶意软件。移到废纸篓 完成 2 打开它并点击“完成” macOS 还不认识 Lumio,因此会阻止它。点击完成,而不是“移到废纸篓”。
打开它并点击“完成”
macOS 还不认识 Lumio,因此会阻止它。点击完成,而不是“移到废纸篓”。
- 系统设置› 隐私与安全性 安全性 “Lumio”已被阻止以保护你的 Mac。仍要打开 3 在设置中允许它 打开系统设置 → 隐私与安全性,向下滚动并点击仍要打开。
在设置中允许它
打开系统设置 → 隐私与安全性,向下滚动并点击仍要打开。
- 打开“Lumio”? Apple 无法验证此文件不含可能损害你的 Mac 或危及你隐私的恶意软件。移到废纸篓 仍要打开 完成 4 再点击一次“仍要打开” macOS 最后再询问一次。点击仍要打开,并用你的密码或触控 ID 确认。完成。Lumio 已进入你的刘海屏,macOS 不会再询问。
再点击一次“仍要打开”
macOS 最后再询问一次。点击仍要打开,并用你的密码或触控 ID 确认。完成。Lumio 已进入你的刘海屏,macOS 不会再询问。
没有打开,或者有什么不清楚的?写信给 support,我们会提供帮助