一个用于显示代码智能体用量状态的小型 macOS 菜单栏工具。当前 provider 是 Codex,底层通过本地 Codex app-server 获取数据。
swift build -c releaseswift testscripts/package-app.sh
open dist/CodexUsageFloat.appscripts/install-launch-agent.sh如需在不安装的情况下验证 LaunchAgent plist:
DRY_RUN=1 PLIST_PATH=/tmp/com.local.codex-usage-float.plist scripts/install-launch-agent.shscripts/uninstall-launch-agent.sh应用采用面向 provider 的设计:
AgentUsageCore负责通用用量模型和UsageProvider协议。CodexUsageProvider是第一个 provider 实现,优先通过/Applications/ChatGPT.app/Contents/Resources/codex app-server --stdio读取用量,并兼容旧版Codex.app路径。CodexUsageFloat渲染UsageProvider提供的内容,因此新增代码智能体时无需重写菜单栏 UI。
应用不会读取 ~/.codex/auth.json,也不会持久化 token、邮箱地址或原始 provider 响应。
