Skip to content
HLVM04Public

About

🎯 Menubar status for T3 Code threads and CLIProxyAPI quota

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pulse icon

Pulse

Your agents and your quota, one glance away in the menubar.
A tiny native macOS app for T3 Code and CLIProxyAPI.

Pulse panel: a thread waiting for you, running threads and the Claude quota pool    Pulse forecast: 14-day pool chart, reset jumps and per-account levels

What it shows

  • The ring. Your quota pool, filled with what's left. The center turns solid while threads run, and the ring turns red when the pool runs low. Dots beside it, in T3 Code's colors, show threads that want you: orange for an approval, indigo for a question, green for a finished thread you haven't read.
  • The panel. Threads waiting for you, unread finished ones ("Done"), running threads and recently finished ones on every linked machine, plus a burn-down chart of the pool. Click any thread to open it in T3 Code.
  • The forecast. Click the chart for 14 days of history and projection, reset jumps, when the pool or the first account runs dry, and each account's level.
  • Notifications. A thread needs your approval or has a question, a thread finishes, or the pool drops under your threshold. Thread notifications stay quiet while T3 Code is the app in front, and leave Notification Center once they're handled: when the thread stops waiting, or when you've looked at it. Subagents stay quiet unless you include them in Settings, except when one needs your approval.

Install

Download Pulse-x.y.z.zip from Releases, unzip it and move Pulse to Applications. Releases are signed with Developer ID and notarized. Requires macOS 26 or later.

To build it yourself instead (Xcode 26 or later):

git clone https://github.com/HLVM04/Pulse.git && cd Pulse
scripts/build-app.sh --install

Set up

  1. CLIProxyAPI. Open Settings (gear icon), enter the server address and the management key. The key is stored in the Keychain and sent with every quota request, so use https:// unless the server is only reachable over a private network such as a tailnet.
  2. T3 Code. Click Connect… and approve Pulse in the browser. It asks for read-only access, and T3's sign-in lasts 30 days.
  3. More machines (optional). Under Settings → T3 Code, add another server by address, such as a VPS on your tailnet. An address without a scheme or port (100.64.0.1) means http:// on port 3773. Each one signs in on its own, and its threads join the same list under the name you give it.

Plain http:// is allowed so tailnet and LAN addresses work. Settings live in the dk.hlvm.pulse defaults domain; tokens and keys live in the login Keychain.

How it works

Source Refresh
Quota pool CLIProxyAPI GET /v8/management/observability/quota every minute
Threads T3 Code MCP on each server: t3_thread_list, t3_project_list, t3_environment_links every 4 s while open, 15 s otherwise

The forecast in PoolMath.swift is a line-for-line port of the CLIProxyAPI management center's poolModel.ts, so Pulse and the web page agree. T3's MCP can't approve permission requests, so a waiting thread opens in T3 instead of being approved from the panel.

"Unread" follows T3's sidebar: a thread is Done when its latest run finished after your last visit. The MCP doesn't expose visits, so for this Mac's threads Pulse reads them from T3's database (~/.t3/userdata/statev2.sqlite, read-only). Other machines keep theirs, so a thread there counts as unread from the moment Pulse sees it finish until you open it from Pulse, mark it read, it runs again or you settle it in T3.

There are no dependencies: SwiftUI, Network and CryptoKit only. The app bundle is about 1.6 MB.

Develop

swift test                                    # pool math and parsing
open -n --env PULSE_DEMO=1 /Applications/Pulse.app   # made-up data, for screenshots
PULSE_SNAPSHOT=/tmp/pulse /Applications/Pulse.app/Contents/MacOS/Pulse   # render the panel to PNGs

Release (Developer ID signing, notarization, GitHub release; one-time setup is in the script):

scripts/release.sh 1.0.0

Compare the forecast with your server:

PULSE_CPA_URL=https://your-host:8317 PULSE_CPA_KEY_FILE=~/key.txt swift test --filter liveQuotaPools

License

MIT

About

🎯 Menubar status for T3 Code threads and CLIProxyAPI quota

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages