One native workspace for agent output, attention state, and event detail.
Your agents can work unattended. Blood Rush is where their output lands when you need to notice it.
Give every agent, job, and integration its own local channel. Blood Rush keeps the message, raw payload, run status, and notification policy in one native Mac workspace—so you can scan what happened, focus on what needs attention, and mark it handled.
Agent run / scheduled job / integration
-> dedicated Blood Rush channel
-> local relay + event history
-> Needs Attention queue + native notification
-> youAgents send ordinary JSON to their channel's webhook URL. Blood Rush is local-first: the relay, event history, configuration, and Mac app run on your machine. There are no accounts, hosted dashboard, billing gates, or channel caps.
- One channel per worker. Keep a research agent, deployment job, support triage, and provider integrations legible instead of mixing them in chat.
- Attention, not noise. Use
blocked,failed, orneeds_reviewstatus when a run needs you; keep routine completions in the local history. - Inspect before you switch context. Open an event to see its message, run status, URL, and raw payload, then mark it handled when you are done.
- Local by default. Your relay, history, configuration, and webhook token stay on your Mac.
Connect an agent · Contribute · Security · Usage guide
| Goal | Command | What stays running |
|---|---|---|
| Connect an agent that runs elsewhere | pnpm start:tunnel |
Blood Rush and a temporary public tunnel in the foreground |
| Test an agent that runs on this Mac | pnpm start |
Blood Rush in the foreground, using localhost |
| Install Blood Rush on this Mac | pnpm local:install |
A user LaunchAgent keeps the relay running |
Most users should begin by giving one agent a public HTTPS channel. The quick start below creates a temporary URL that a hosted agent, remote job, or provider can reach.
Goal: send one agent event through a public HTTPS URL and see it in the Needs Attention queue on your Mac.
- macOS 13+
- Node.js 22.12+
- pnpm 9.11+
- Bun 1.1+
- Xcode and XcodeGen
cloudflaredfor the default public tunnel
Clone the repository and enter it:
git clone https://github.com/agonist/blood-rush.git
cd blood-rushYou can verify the local development toolchain before starting:
pnpm local:bootstrap --checkThe start command runs the full bootstrap, including pnpm install, database
setup, and Xcode project generation. You do not need to install workspace
dependencies separately.
From the repository root:
pnpm start:tunnelLeave this terminal running. The command:
- Starts a Cloudflare Quick Tunnel to the local relay.
- Waits for its public
https://*.trycloudflare.comURL. - Bootstraps the checkout.
- Starts the relay, builds the Debug Mac app, and launches it.
- Gives the app the public base URL so Settings shows public webhook URLs.
The first build can take a few minutes. On first launch, complete onboarding and allow notifications. Events still appear in Blood Rush without notification permission, but macOS banners will not appear.
Copy the public tunnel origin printed by the first terminal. Open a second terminal, return to the repository root, and run:
pnpm webhook:urls \
--base https://your-tunnel.trycloudflare.com \
--channel pricing-scoutThe command prints a ready-to-use endpoint:
pricing-scout https://your-tunnel.trycloudflare.com/in/<token>/pricing-scoutCopy the entire URL after pricing-scout. If the command says no token exists,
wait until the Mac app has launched, then rerun it.
You can also create an Agent channel in Blood Rush Settings and copy its Webhook URL there.
Paste the complete URL from the previous step into this command:
curl "<paste-webhook-url-here>" \
-H "content-type: application/json" \
-d '{
"title": "Pricing brief needs review",
"body": "Seven products changed price overnight.",
"url": "https://example.com/brief",
"event_type": "brief_ready",
"status": "needs_review",
"run_id": "pricing-scout-042",
"bloodrush": {
"channel": {
"name": "Pricing Scout",
"glyph": "PS",
"hue": "blue",
8000
span>
"kind": "agent"
}
}
}'The relay should return:
{ "ok": true }The event should appear in Needs Attention and as a native macOS notification. Select it to inspect the run details and raw payload.
At the end of a run, have the agent POST an event with the same shape. Use
blocked, failed, or needs_review as the status when the run needs a human;
routine completed events stay in the local history.
See docs/USAGE.md for the full event contract, including
links, event types, run IDs, channel profile hints, and notification policies.
Blood Rush also works with provider webhooks. Use a provider channel slug when you want built-in parsing and signature handling:
pnpm webhook:urls --base https://your-tunnel.trycloudflare.com --channel stripe
pnpm webhook:urls --base https://your-tunnel.trycloudflare.com --channel github
pnpm webhook:urls --base https://your-tunnel.trycloudflare.com --channel polarThe Quick Tunnel URL is temporary. The tunnel and Blood Rush terminal must stay
running, and pressing Ctrl-C stops both. A later run will usually produce a
different URL, so do not use this path as a permanent provider endpoint.
Webhook URLs contain the local relay token. Treat them as secrets while they are active.
Use this path when an agent runs on the same Mac and does not need a public URL.
cloudflared is not required.
Start Blood Rush:
pnpm startAfter the app launches, open a second terminal:
pnpm webhook:urls --channel pricing-scoutCopy the printed http://localhost:8787/in/<token>/pricing-scout URL and use
it with the same agent event from the quick start.
The quick-start commands are foreground development paths. For a normal local installation, run:
pnpm local:install --dry-run
pnpm local:installThe installer does not need an administrator password. It:
- installs
Blood Rush.appin~/Applications; - installs and starts a user LaunchAgent for the local relay;
- stores local configuration under
~/.bloodrush; - launches the installed app.
Check the installed setup with:
pnpm local:doctor --show-urlsA reliable external webhook setup needs a stable public HTTPS URL and a tunnel
service that starts automatically. Once that URL forwards to
http://localhost:8787, install Blood Rush with the same origin:
pnpm local:install \
--tunnel-url https://webhooks.your-domain.exampleUse an origin only. Do not include /in/<token>/<channel>, a query string, or a
fragment.
The Blood Rush installer keeps the relay running, but it does not install or
configure your tunnel service. Configure that service to start at login, and
add ~/Applications/Blood Rush.app to macOS Login Items if you want the menu
bar app to launch automatically.
Do not save a random trycloudflare.com Quick Tunnel URL as a permanent base;
it stops working when that tunnel process ends. See
docs/TUNNELS.md for stable tunnel options.
pnpm local:uninstall --dry-run
pnpm local:uninstallPass --remove-app to remove ~/Applications/Blood Rush.app too. Local config,
token, and event history remain in place so a reinstall can reuse them.
Blood Rush has two main full-window views:
- Channels shows live output. Filter by All Output, Needs Attention, or an individual channel, then inspect the selected message and raw payload.
- Settings manages channels, webhook URLs, signing secrets, notification policies, templates, and sounds.
Create a channel from the plus button in Channels or Add channel in Settings. Its slug becomes the last segment of its webhook URL:
https://your-public-origin.example/in/<token>/<channel-slug>See docs/USAGE.md for channel creation, payload fields,
attention handling, and notification customization.
Start with:
pnpm local:doctor
pnpm local:doctor --show-urlsCommon first-run problems:
cloudflaredis missing: install it or use the local-only path.- No token exists: launch the Mac app once, then rerun
pnpm webhook:urls. - The event appears but no banner shows: allow notifications during onboarding or check Sound & Focus in Settings.
- An external sender cannot connect: confirm the tunnel, relay, and Mac are awake and running.
- A base URL is rejected: pass the origin only, such as
https://webhooks.example.com.
pnpm start # Bootstrap and run locally
pnpm start:tunnel # Bootstrap and run with a temporary public URL
pnpm start:tunnel --dry-run # Print the tunnel-first plan
pnpm local:install # Install app and relay LaunchAgent
pnpm local:doctor # Diagnose the local setup
pnpm webhook:urls # Print URLs using the configured base
pnpm webhook:urls --channel stripeLower-level development commands:
pnpm local:bootstrap
pnpm local:run
pnpm local:setup
pnpm local:relay
pnpm mac:generate
pnpm mac:buildBlood Rush stores its local state here:
~/.bloodrush/config.toml
~/.bloodrush/bloodrush.sqlite
~/Library/Application Support/Blood Rush/tokenThe config may contain provider signing secrets, and the token authenticates webhook URLs. If a URL leaks, regenerate the token from Settings -> About and update every sender that used the old URL.
Back up or restore the config and token with:
pnpm local:export --output ~/Desktop/bloodrush-backup
pnpm local:import --dry-run --input ~/Desktop/bloodrush-backup
pnpm local:import --input ~/Desktop/bloodrush-backupTreat backup directories as private.
apps/api: Bun relay, webhook verification, SQLite history, and live stream.apps/mac: native SwiftUI menu bar app.apps/landing: static Astro project website.packages/shared: shared copy, tokens, and integration registry.
docs/USAGE.md: channels, events, payloads, and app flow.docs/TUNNELS.md: public tunnels and persistent setups.docs/CONFIG.md: every local configuration field.docs/INTEGRATIONS.md: provider integrations.CONTRIBUTING.md: development and contribution workflow.SECURITY.md: sensitive data and vulnerability reporting.
MIT. See LICENSE.