guan-ops/Agent-Signal-Bar
About
本地优先的 AI Agent 信号灯(macOS / Windows):状态栏、系统托盘与桌面悬浮信号灯,自动监控 Codex / Claude。Local status lights for AI agents in the menu bar, system tray, and on the desktop.
AI & Machine LearningMeasured star growth
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalAgent Signal Bar 🚦
Know when your AI agent is working, finished, blocked, or waiting for you—without switching back to the terminal.
Codex auto-monitoring · Claude Code hooks · Custom agents · Local-first
Download the latest DMG · Website · Changelog
Agent Signal Bar turns local AI-agent activity into a simple traffic-light language in your macOS menu bar and an optional floating desktop signal. It automatically detects Codex activity across Desktop, CLI/TUI, VS Code, Xcode, and IDEA from known local session logs. Optional hooks add permission and low-latency events, while Claude Code, scripts, and custom agents can report through local hooks, the bundled CLI, or JSON events.
Why Agent Signal Bar
- Stay in flow. See whether an agent is thinking, working, or done without reopening its terminal or editor.
- Know when to act. Permission and failure states take priority, so normal activity cannot hide a red alert.
- Keep status visible. Use the compact menu bar signal, the draggable desktop signal, or both.
- Keep control local. Core activity monitoring uses known local logs and state files; no Agent Signal Bar account or backend is required.
Install
Requirements
- macOS 14 Sonoma or later
- Apple Silicon or Intel Mac
Download and first run
- Download
AgentSignalBar.dmgfrom the latest GitHub Release. - Open the DMG and drag
AgentSignalLight.appintoApplications. - Open Agent Signal Bar from
Applications.
[!NOTE] Current GitHub builds are ad-hoc signed and not notarized. If Gatekeeper blocks the first launch, right-click the app and choose Open, or use System Settings → Privacy & Security → Open Anyway.
The green Code → Download ZIP button downloads source code, not an app installer. After installation, use Agent Signal Bar → Check for Updates… or Settings → About → Updates for Sparkle updates.
See it in action
| Floating signal | Detailed menu | Simple menu |
![]() |
![]() |
![]() |
The floating signal and the settings pages are captures of the v1.7.1 app UI; the two menu captures are from v1.6.0. All use synthetic demo data and Dark appearance. The floating signal stays above your desktop, follows the menu bar state, and supports dragging, free resizing, size presets, horizontal or vertical layouts, and compact session and usage popovers.
Activity and usage
| Activity | Usage |
![]() |
![]() |
All account, activity, quota, and token values shown are synthetic. The demo email is [email protected]. The Usage capture shows the hovered day with GPT-6 Astra and gpt-5.6 token counts, estimated costs, and shares. No personal account or credential data is included. Claude-specific captures are omitted pending real-account validation.
Choose your look
| Minimal Dots | Classic Lamp |
![]() |
![]() |
Both styles support horizontal and vertical layouts. You can also tune blink speed, breathing strength, per-state effects, color theme, and completion or warning sounds—including the bundled New Zealand crossing sounds.
What you get
- Menu bar and desktop signals with synchronized red, yellow, and green animations.
- Attention-first multi-session aggregation that protects permission, blocked, failure, and review states from ordinary work events.
- Current Codex model estimates for GPT-6 Astra/Sol/Luna and GPT-5.6, with distinct chart colors, Standard/Fast attribution, and per-request long-context pricing. See model prices and estimation limits.
- Codex monitoring without required hooks across Desktop, CLI/TUI, VS Code, Xcode, and IDEA, plus session, quota, token, and cost views.
- Saved Codex accounts with account-bound credentials, quota snapshots, and reset-credit data.
- Detailed and native-style menu panels with live sessions, recent activity, pause, settings, and relevant app shortcuts.
- Local extension points through Codex hooks, Claude Code hooks, a generic JSON adapter, and the
agent-signalCLI. - Desktop-friendly customization with two visual styles, size presets, free resizing, sound profiles, themes, launch at login, and multilingual UI.
Signal language
| Agent state | Default effect | What it means |
|---|---|---|
Idle idle |
steady green | Nothing needs attention |
Thinking thinking |
fast green flash | The agent is reasoning about the task |
Working working |
slow green flash | The agent is editing, running tools, or testing |
Step done tool_done |
slow green flash | One step finished; the workflow may continue |
Done done |
steady green | The task finished and will soon return to idle |
Attention attention / notification |
flashing yellow | Check when convenient |
Permission permission / permission_request |
flashing red | Your approval is needed now |
Blocked blocked / failure / error |
fast flashing red | Immediate action is needed |
Stale stale |
gray/yellow warning | The local state is old, damaged, or untrusted |
Off off / pause |
off or static gray | Monitoring is paused |
Red and yellow states are protected from newer ordinary-work events. See the full signal language and aggregation rules.
Integrations
| Source | Connection | Current support |
|---|---|---|
| Codex Desktop, CLI/TUI, VS Code, Xcode, and IDEA | Known local Codex session logs; optional hooks | Hook-free activity monitoring is verified; hooks add permission and low-latency events |
| Claude Code | Claude Code hooks | Not tested on a physical machine |
| Local scripts and custom agents | Bundled CLI or generic JSON events | Supported through the shared local state model |
Start with the Codex setup, Claude Code setup, or local script setup.
Privacy and network access
Choose General → Cost display currency to display local Codex and Claude cost estimates in one of 17 currencies, including USD, CNY and NZD. ExchangeRate-API provides daily reference rates; the rate date is shown beside converted estimates. Today’s and historical costs use the same latest available rate. Offline conversion uses the dated cache, or retains USD if no rate is available. Original usage records remain in USD; account extra usage keeps its billing currency.
Agent Signal Bar is local-first, but it is not described as fully offline:
- Agent activity is detected from known local Codex logs or local hook, CLI, and JSON state.
- State snapshots, hook events, cost-scan caches, and exported diagnostics remain on your Mac unless you choose to share them.
- Optional Codex account and quota features connect directly to OpenAI and can use local Codex credentials or optional
chatgpt.combrowser-session data. Saved account credentials and manually entered cookies use macOS Keychain storage. - Optional Claude quota sources use Claude Code OAuth/CLI or user-enabled
claude.aiWeb access. Browser import is explicit, Web sessions stay in macOS Keychain, and quota history stays on this Mac. See Claude support. - Service-status and update checks contact OpenAI Status and GitHub/Sparkle respectively.
- Selecting a non-USD cost currency fetches public daily rates from
open.er-api.com. This request contains no account credentials or usage records. - No Agent Signal Bar backend account or project-hosted cloud service is required.
CLI and custom agents
Install the bundled CLI wrappers:
./script/install_cli.sh
Publish and inspect state:
./scripts/agent-signal working --session build-1 --agent script --event BuildStarted
./scripts/agent-signal done --session build-1 --agent script --event BuildFinished
./scripts/agent-signal status --json
Wrap any command as an agent run:
./scripts/agent-signal-run --session nightly-build --agent script -- ./run-build.sh
The event contract and environment variables are documented in the state schema.
Build from source
Requires macOS 14+, Swift 6, and the full Xcode toolchain.
./script/build_and_run.sh --verify
DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer swift test
./script/doctor.sh
Release packaging and Sparkle-feed details live in GitHub release management and the release checklist.
Contributing
Issues and focused pull requests are welcome.
- Open an issue for bugs or behavior changes that need discussion.
- Keep changes scoped and preserve the local-first data boundary.
- Run the build verification and Swift tests above before opening a pull request.
For questions and product ideas, use GitHub Discussions.
Documentation
- Signal language · State schema
- Codex setup · Claude Code setup · Local scripts
- Changelog · GitHub releases · Release checklist
Credits and license
Agent Signal Bar is built by XiongYang Guan (guan-ops). The bundled New Zealand crossing sounds were recorded for this project.
Token-usage JSONL scanning is adapted from CodexBar, created by Peter Steinberger and licensed under the MIT License. Full attribution is recorded in NOTICE.
Source code is licensed under the Apache License 2.0. Non-code assets use the terms in ASSET_LICENSES.md, and the project name and brand assets are covered by TRADEMARKS.md.
Explore related projects
Loading…






