rajivmehtaflex/power-utility/hermes-desktop-session-telemetry

Claude Code and agent skill by rajivmehtaflex/power-utility

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use for session telemetry widgets. Seed from session.info.

Install

npx vskill@latest install rajivmehtaflex/power-utility/hermes-desktop-session-telemetry

SKILL.md

The same SKILL.md was published earlier as rajivmehtaflex/power-utility/hermes-desktop-session-telemetry.

Hermes Desktop Session Telemetry

Use this skill when a Hermes desktop plugin or widget needs to display live session data such as token usage, timers, context fill, model, or running state.

This skill complements hermes-desktop-plugins. Use that skill for generic plugin scaffolding and this one for widgets whose main job is to surface session telemetry quickly and accurately.

Core pattern

A fresh desktop session can exist before the first user message. If you only poll session.usage, the widget may render as empty until the first turn. The fix is to combine:

  1. host.state.activeSessionId for the primary session key.
  2. host.onEvent('*', ...) to catch session.info events.
  3. session.info payload data as the warm-start snapshot.
  4. host.request('session.usage', { session_id }) as the polling source of truth.

Recommended implementation

  1. Track a resolvedSessionId.
  • Prefer host.state.activeSessionId.
  • Fall back to the last session.info event's session id.
  1. Keep a lightweight event-backed usage snapshot.
  • On session.info, read payload.usage if present.
  • Prefer payload.stored_session_id when available; otherwise use event.session_id.
  1. Poll the usage RPC.
  • Query session.usage for the resolved session id.
  • Use a few-second interval; do not poll faster than necessary.
  1. Render a safe placeholder.
  • Before any session is known, show a dimmed icon or No active session.
  • If the widget has a session id but no usage yet, show a loading or blank state rather than throwing.
  1. Merge event data and RPC data carefully.
  • Use the event snapshot immediately when it exists.
  • Let the RPC overwrite it when fresher data arrives.
  • Avoid duplicate listeners on hot reload by cleaning up in the effect teardown.

Pitfalls

  • Do not assume activeSessionId alone is enough on initial load.
  • Do not wait for the first conversation turn to show telemetry.
  • Do not treat missing usage as a hard error; it is often just an unopened or idle session.
  • session.info can arrive as a global broadcast; if the event carries no explicit session id, use the payload's stored session id when present.
  • Keep the widget stable on reload: one listener, one query, no blank crash state.

Verification

  • Open a fresh session and confirm the widget shows a placeholder immediately.
  • After session.info arrives, confirm the widget updates before the first user prompt.
  • Send the first message and confirm the polling source remains in sync.
  • Reload the plugin and verify the event listener is not duplicated.

Support files

  • references/session-info-warm-start.md — concise recipe for seeding live telemetry widgets from session.info.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/rajivmehtaflex/power-utility/hermes-desktop-session-telemetry/badge)](https://verified-skill.com/skills/rajivmehtaflex/power-utility/hermes-desktop-session-telemetry)

Something wrong with this skill or its page? Tell us.