agent-session-monitor

Aggregate Higress access logs into session histories with token-cost analytics.

9.1k|1.2k|Updated Oct 27, 2022
One-click install
npx skills add https://github.com/alibaba/higress --skill agent-session-monitor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-session-monitor
Source: https://github.com/alibaba/higress/tree/main/.claude/skills/agent-session-monitor
Command: npx skills add https://github.com/alibaba/higress --skill agent-session-monitor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Real-time monitoring of Higress access logs to group multi-turn conversations by session and surface token-cost analytics for FinOps and debugging.

Core Features & Use Cases

  • Real-time log monitoring with log-rotation support and inode-based progress tracking
  • Web-based visualization for per-session drill-down and cost reporting
  • Use cases: monitor Clawdbot conversations, optimize token usage, and debug AI workflows in Higress

Quick Start

Launch the agent-session-monitor in the background to start parsing Higress logs and surface live session insights via the web UI.

Frequently Asked Questions about agent-session-monitor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I monitor Higress access logs for per-session token costs?

You can monitor Higress access logs for token costs by aggregating multi-turn conversations into session-centric histories with real-time incremental parsing. This provides model-aware pricing analytics and per-session web visualization for FinOps reporting.

What is the best way to group multi-turn AI conversations from access logs?

Grouping multi-turn AI conversations from access logs requires session-centric aggregation with inode-based progress tracking. This ensures state persistence across log rotations, maintaining continuous conversation histories for accurate cost reporting.

How does log rotation affect real-time session tracking in Higress?

Log rotation does not disrupt real-time session tracking in Higress because the monitoring system uses inode-based progress tracking. This mechanism maintains state persistence, allowing incremental parsing to continue seamlessly across rotated log files.

Can I visualize per-session token usage and costs through a local web UI?

Yes, you can visualize per-session token usage and costs through a lightweight web UI with local data storage. This provides per-session drill-down capabilities and generates cost reporting for FinOps analysis without requiring external databases.

Does Higress session monitoring support model-aware pricing for FinOps reporting?

Yes, Higress session monitoring supports model-aware pricing for FinOps reporting by applying specific pricing calculations during log aggregation. This enables accurate token-cost analytics, helping you optimize token usage and debug AI workflows.