cd /news/ai-tools/show-hn-pulse-give-your-ai-harnesses… · home › topics › ai-tools › article
[ARTICLE · art-182273] src=github.com ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Show HN: Pulse – Give your AI harnesses subscription usage context

A developer released Pulse, an MIT-licensed Rust CLI that reports subscription quota usage, reset times, observed burn rates and estimated runway for Claude, Codex, OpenCode Go and Grok Build from the terminal. Pulse installs via `cargo install --git https://github.com/ashwnn/pulse --locked pulse-quota`, defaults to an 80% alert threshold, and ships plugins for Claude Code, Codex and OpenCode that inject a quota warning into the model's context when a window reaches 80%. Pulse sends credentials only to each provider's HTTPS usage endpoint, stores quota snapshots plus a SHA-256 credential fingerprint in `${XDG_CACHE_HOME:-~/.cache}/pulse`, and does not refresh or modify tokens.

key takeaway

Pulse's Claude Code and Codex plugins hook `UserPromptSubmit` to add a quota warning to model context at 80% usage, but checks fail open and run only when the harness invokes the hook, so the agent may not surface the warning.

read3 min views2 publishedDec 5, 2026
Show HN: Pulse – Give your AI harnesses subscription usage context
Image: Michielbdejong (auto-discovered)

Check your coding subscription quotas from the terminal. Pulse shows usage, reset times, observed burn rates, and estimated runway for Claude, Codex, OpenCode Go, and Grok Build.

You need Rust and Cargo. Install the CLI first, and make sure Cargo's bin directory is on your PATH:

cargo install --git https://github.com/ashwnn/pulse --locked pulse-quota
pulse --help
pulse                     # all available providers
pulse grok                # one provider
pulse codex --json        # machine-readable output
pulse --alert --threshold 90

The default alert threshold is 80% used. Alert mode prints only matching windows and exits successfully if a provider is unavailable. Normal mode reports errors and exits successfully if at least one provider returned a window.

Burn is the change in quota used, in percentage points per hour, between two readings at least one minute apart. Runway estimates time to 100% at that rate. These are estimates, not token costs or guarantees. Pulse does not compare readings across different reset times or credentials. After a reset, token change, or first reading, it needs another sample. A zero burn rate has no runway estimate.

Pulse sends credentials only to the respective provider's HTTPS usage endpoint and does not refresh or modify them. It reads:

  • Claude: CLAUDE_CODE_OAUTH_TOKEN , or$CLAUDE_CONFIG_DIR/.credentials.json (default~/.claude/.credentials.json ).
  • Codex: PULSE_CODEX_TOKEN , or$CODEX_HOME/auth.json (default~/.codex/auth.json ).
  • OpenCode Go: PULSE_OPENCODE_TOKEN , a Console OAuth access token. Other OpenCode providers are not currently supported.
  • Grok Build: PULSE_GROK_TOKEN , or the xAI OAuth entry in$GROK_HOME/auth.json (default~/.grok/auth.json ). Pulse reads the shared credit usage percentage from the Grok Build billing endpoint. It does not infer a quota from per-product usage or API keys.

Claude installations using a system keychain require the environment variable. If a token expires, sign in again through the relevant client. Subscription endpoints and their response formats may change. API-key billing is not represented by these subscription windows.

Pulse stores quota snapshots and a SHA-256 credential fingerprint in ${XDG_CACHE_HOME:-~/.cache}/pulse. The cache contains no token. Alert checks reuse a snapshot for up to two minutes, unless its reset has passed. Normal CLI checks fetch a fresh reading. Delete the cache directory to clear history.

Install the binary first. Each integration adds a quota warning to the model's context when a window reaches 80%. The model can account for remaining quota as it works. These are not desktop notifications, and a warning does not guarantee that the agent will mention it to you. Checks fail open and run only when the harness invokes the hook.

In Claude Code, run:

/plugin marketplace add ashwnn/pulse
/plugin install pulse@pulse

The plugin uses UserPromptSubmit. Restart Claude Code after installation.

codex plugin marketplace add ashwnn/pulse
codex plugin add pulse@pulse

Alternatively, install Pulse from the local marketplace in the Codex desktop app. Review and trust its hook in /hooks. The hook runs on UserPromptSubmit. Plugin hooks require a Codex version that supports lifecycle hooks.

For OpenCode's current plugin API, clone the repository and add the absolute path of its opencode directory to ~/.config/opencode/opencode.jsonc:

{"plugins": ["/absolute/path/to/pulse/opencode"]}

Restart the OpenCode service. The plugin adds alerts to model context. It requires the OpenCode version with the @opencode/plugin API.

MIT. See LICENSE.

── more in #ai-tools 4 stories · sorted by recency
── more on @pulse 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-pulse-give-y…] indexed:0 read:3min 2026-12-05 · —