Skip to content

feat: add skill analytics to the dashboard#10125

Merged
austinpickett merged 2 commits into
NousResearch:mainfrom
arihantsethia:feat/dashboard-skill-analytics
Apr 20, 2026
Merged

feat: add skill analytics to the dashboard#10125
austinpickett merged 2 commits into
NousResearch:mainfrom
arihantsethia:feat/dashboard-skill-analytics

Conversation

@arihantsethia

@arihantsethia arihantsethia commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds skill analytics to the dashboard by exposing skill usage in /api/analytics/usage, rendering a Top Skills table on the Analytics page, and including skill usage in insights output.

What this does: surfaces which skills the agent loads and manages over time, using terminology aligned with the skills docs.

Changes

  • Added skill aggregation to InsightsEngine by extracting skill_view and skill_manage calls from assistant tool_calls
  • Included skill usage in terminal and gateway insights formatting
  • Extended /api/analytics/usage to return a skills payload
  • Added analytics skill response types in web/src/lib/api.ts
  • Rendered a Top Skills table on AnalyticsPage
  • Updated user-facing labels to match the docs:
    • Agent Loaded = skill_view events
    • Agent Managed = skill_manage actions
  • Added tests for skill aggregation, formatting, and analytics API contract coverage

Test results

  • tests/agent/test_insights.py: passed
  • tests/hermes_cli/test_web_server.py: passed
  • Combined targeted run: 133 passed
  • cd web && npm run build: passed
  • Manual QA: completed in an isolated LXD VM dashboard environment

No breaking changes.

Expose skill usage in analytics so the dashboard and insights output can
show which skills the agent loads and manages over time.

This adds skill aggregation to the InsightsEngine by extracting
`skill_view` and `skill_manage` calls from assistant tool_calls,
computing per-skill totals, and including the results in both terminal
and gateway insights formatting. It also extends the dashboard analytics
API and Analytics page to render a Top Skills table.

Terminology is aligned with the skills docs:
  - Agent Loaded = `skill_view` events
  - Agent Managed = `skill_manage` actions

Architecture:
  - agent/insights.py collects and aggregates per-skill usage
  - hermes_cli/web_server.py exposes `skills` on `/api/analytics/usage`
  - web/src/lib/api.ts adds analytics skill response types
  - web/src/pages/AnalyticsPage.tsx renders the Top Skills table
  - web/src/i18n/{en,zh}.ts updates user-facing labels

Tests:
  - tests/agent/test_insights.py covers skill aggregation and formatting
  - tests/hermes_cli/test_web_server.py covers analytics API contract
    including the `skills` payload
  - verified with `cd web && npm run build`

Files changed:
  - agent/insights.py
  - hermes_cli/web_server.py
  - tests/agent/test_insights.py
  - tests/hermes_cli/test_web_server.py
  - web/src/i18n/en.ts
  - web/src/i18n/types.ts
  - web/src/i18n/zh.ts
  - web/src/lib/api.ts
  - web/src/pages/AnalyticsPage.tsx
@arihantsethia arihantsethia force-pushed the feat/dashboard-skill-analytics branch from b694f9a to 857b543 Compare April 15, 2026 06:45
@arihantsethia arihantsethia marked this pull request as ready for review April 15, 2026 06:58
@teknium1 teknium1 requested a review from austinpickett April 20, 2026 12:13

@austinpickett austinpickett left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just need to fix the conflict w/ main and we can merge 👍

@austinpickett austinpickett merged commit dcd763c into NousResearch:main Apr 20, 2026
@arihantsethia arihantsethia deleted the feat/dashboard-skill-analytics branch April 20, 2026 16:09
ulasbilgen pushed a commit to ulasbilgen/hermes-adhd-agent that referenced this pull request May 1, 2026
…rd-skill-analytics

feat: add skill analytics to the dashboard
aj-nt pushed a commit to aj-nt/hermes-agent that referenced this pull request May 1, 2026
…rd-skill-analytics

feat: add skill analytics to the dashboard
Luminet2023 pushed a commit to Luminet2023/hermes-agent that referenced this pull request May 1, 2026
…rd-skill-analytics

feat: add skill analytics to the dashboard
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
…rd-skill-analytics

feat: add skill analytics to the dashboard
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
…rd-skill-analytics

feat: add skill analytics to the dashboard
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
…rd-skill-analytics

feat: add skill analytics to the dashboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants