rajivmehtaflex/power-utility/hermes-desktop-session-telemetry
Claude Code and agent skill by rajivmehtaflex/power-utility
- community
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-telemetrySKILL.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:
host.state.activeSessionIdfor the primary session key.host.onEvent('*', ...)to catchsession.infoevents.session.infopayload data as the warm-start snapshot.host.request('session.usage', { session_id })as the polling source of truth.
Recommended implementation
- Track a
resolvedSessionId.
- Prefer
host.state.activeSessionId. - Fall back to the last
session.infoevent's session id.
- Keep a lightweight event-backed usage snapshot.
- On
session.info, readpayload.usageif present. - Prefer
payload.stored_session_idwhen available; otherwise useevent.session_id.
- Poll the usage RPC.
- Query
session.usagefor the resolved session id. - Use a few-second interval; do not poll faster than necessary.
- 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.
- 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
activeSessionIdalone 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.infocan 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.infoarrives, 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 fromsession.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
- SKILL.md in the repositoryCheckingprofile/software-development/hermes-desktop-session-telemetry/SKILL.md
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
[](https://verified-skill.com/skills/rajivmehtaflex/power-utility/hermes-desktop-session-telemetry)