claudelink 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +35 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -352,6 +352,7 @@ The Command Center is a local web UI at `http://127.0.0.1:7878` — a live conso
352
352
  | **Auto-nudge** | Global on/off + tick interval (1–120 min). Scheduler only fires for terminals that *actually have* unread mail — no wasted Claude turns. |
353
353
  | **Recovery Watcher** *(v1.4.0+)* | Detects Anthropic API rate-limit / overload errors in agent terminals and types a recovery prompt automatically. Configurable poll interval, cooldown, and escalate-to-desktop-notification threshold. See [Recovery Watcher](#3-recovery-watcher-api-error-auto-recovery) below. |
354
354
  | **Fleet — live context** *(v1.5.0+)* | Per-agent context occupancy, $/turn, handoff freshness and last-signal age, sorted most-urgent-first. Per-row **Copy prompt**, **Compact**, and **Clear** — an on-demand, consent-gated handshake to act on a heavy terminal. See [Fleet live context](#fleet-live-context--on-demand-compaction-v150) below. |
355
+ | **Plan Usage** *(v1.6.0+, opt-in)* | Your Claude subscription's real quota — session (5-hour), weekly, and frontier-model weekly pool — as live meters with reset countdowns, without opening Claude Desktop → Settings. Off by default; `claudelink usage --on` to enable. See [Plan Usage meter](#plan-usage-meter--see-your-subscription-quota-v160-opt-in) below. |
355
356
  | **Recent messages** | Live feed of the last several messages across all agents, with priority and unread badges. |
356
357
 
357
358
  The page auto-refreshes every 2 seconds. **Kill all servers** in the header drops the entire mesh in one click.
@@ -397,6 +398,37 @@ Agents opt into the protection by calling `signal_checkpoint` at natural rest po
397
398
 
398
399
  ---
399
400
 
401
+ ## Plan Usage meter — see your subscription quota *(v1.6.0, opt-in)*
402
+
403
+ Running a fleet of agents spends your Claude subscription quota fast — and the only built-in way to see where you stand (the 5-hour session window, the weekly ceiling, the separate weekly pool some plans have for the newest frontier model) is buried in Claude Desktop → Settings → Usage. When you're pacing six terminals against a limit that resets at 4 a.m., that's not a workflow.
404
+
405
+ The **Plan Usage** tile on the Command Center's Overview tab shows three live meters — **Session (5h)**, **Weekly (7d)**, and the **frontier-model weekly pool** — each with utilization %, a color ramp as you approach the limit, and a countdown to its reset. Off by default; nothing runs until you opt in:
406
+
407
+ ```bash
408
+ claudelink usage --on # start the local passthrough proxy (127.0.0.1:8788)
409
+ claudelink usage # status: proxy state + last capture
410
+ claudelink usage --off # stop it
411
+ ```
412
+
413
+ **How it works.** The command starts a transparent passthrough proxy on `127.0.0.1:8788`. Point a terminal's `ANTHROPIC_BASE_URL` at it and every response coming back from `api.anthropic.com` — which already carries `anthropic-ratelimit-unified-*` headers describing your plan's real windows — gets its rate-limit headers scraped into `~/.claudelink/quota.json`. The Command Center reads that file and renders the meters. That's the whole trick: the data was in every response all along; ClaudeLink just makes it visible.
414
+
415
+ Wire a terminal per-shell, ephemerally:
416
+
417
+ ```bash
418
+ ANTHROPIC_BASE_URL="http://127.0.0.1:8788" claude
419
+ ```
420
+
421
+ > **Do not** bake `ANTHROPIC_BASE_URL` into `~/.claude/settings.json` or your shell profile. If the proxy isn't running, every session pointed at it hangs on connection-refused. An ephemeral per-shell export (or a small shell function that checks the proxy is alive first) fails safe.
422
+
423
+ **Security contract** — this is an auth-path component, so the rules are strict and the code is short enough to audit in one sitting:
424
+
425
+ - Your auth token is **forwarded verbatim, never read, parsed, or logged**.
426
+ - Only **response** rate-limit headers are captured — request and response bodies pass through untouched.
427
+ - Binds to `127.0.0.1` only. Fail-open: if header parsing ever breaks, your traffic still flows.
428
+ - **Default OFF.** No proxy process exists until you run `claudelink usage --on`.
429
+
430
+ ---
431
+
400
432
  ## Available tools
401
433
 
402
434
  Once connected, every agent session — Claude Code, Codex CLI, Gemini CLI, Goose, or any other MCP client — gains these MCP tools:
@@ -427,6 +459,9 @@ claudelink ui --stop # stop the Command Center
427
459
  claudelink install-hooks # install autonomous-reply hooks (project)
428
460
  claudelink install-hooks --global # install hooks in ~/.claude/settings.json
429
461
  claudelink install-hooks --uninstall # remove ClaudeLink hooks
462
+ claudelink usage --on # start the Plan Usage quota proxy (opt-in)
463
+ claudelink usage # quota proxy status + last capture
464
+ claudelink usage --off # stop the quota proxy
430
465
  claudelink reset # clear all data (fresh start)
431
466
  claudelink help # full help
432
467
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudelink",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "The hub where your AI agents connect. Multi-terminal Claude Code agent communication via MCP.",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {