Skip to content
Back to skills

Azhou Agent Inspector

ASecurity

Token 输出速率与吞吐监控。当用户询问 token 速率、生成速度、tok/s、模型输出快慢、TTFT(首 token 延迟),或 TPS、QPS、吞吐、接口延迟、想看实时监控大屏时使用。Token 速率读取 ZCode usage 数据库,是真实数据;业务 TPS 支持指标接口或演示数据。

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 26, 2026
ai-agentsbashnode

Works with

  • mcp

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add TeFuirnever/azhou-ai-hub --skill azhou-agent-inspector --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Azhou Agent Inspector?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Azhou Agent Inspector
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tefuirnever-azhou-agent-inspector/badge)](https://www.skillsdirectory.com/skills/tefuirnever-azhou-agent-inspector)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: azhou-agent-inspector
description: Token 输出速率与吞吐监控。当用户询问 token 速率、生成速度、tok/s、模型输出快慢、TTFT(首 token 延迟),或 TPS、QPS、吞吐、接口延迟、想看实时监控大屏时使用。Token 速率读取 ZCode usage 数据库,是真实数据;业务 TPS 支持指标接口或演示数据。
---

# Azhou Agent Workbench(token 速率 + 业务吞吐)

两类指标:

- **Token 输出速率(真实)** — 从 ZCode 自身 usage 数据库(`model_usage` 表)计算:每轮的 tok/s、输出 token 数、生成耗时、TTFT、会话平均/峰值。用户问"生成速度/token 速率/tok/s"时用这个。
- **业务 TPS(demo/remote)** — 未配置接口时为演示数据;配置 `metrics_url` 后为真实业务吞吐。

## 取数方式

1. Token 速率(推荐,真实数据):
   ```
   node <插件目录>/scripts/token-rate.mjs                  # 最近一次请求 + 会话统计
   node <插件目录>/scripts/token-rate.mjs --turn --current # 最新一问(本问)即时统计
   node <插件目录>/scripts/token-rate.mjs --json           # JSON
   ```
   可设 `ZCODE_SESSION_ID` 环境变量只统计当前会话;钩子已自动这么做。
2. 业务 TPS:MCP 工具 `tps_snapshot`/`tps_watch`,或 `node <插件目录>/scripts/collect.mjs [--watch N]`。
3. 会话仪表盘(浏览器,每秒刷新最新活动会话的统计和生成速率曲线):
   ```
   node <插件目录>/dashboard/server.mjs   # http://127.0.0.1:7423
   ```
   命令行等价总览:`node <插件目录>/scripts/token-rate.mjs --sessions`(一行一会话)。
4. macOS 悬浮窗(置顶常驻小窗,每秒刷新,生成中/空闲/无数据三态):
   ```
   bash <插件目录>/dashboard/overlay/start-macos.sh   # 一键启动,默认 http://127.0.0.1:17873/
   ```

## 展示规范

- 中文回复,指标用表格或列表;token 速率需注明模型名;TTFT 明显偏高(>5s)或速率骤降时可一句简评。
- demo 模式的业务 TPS 要主动标注,并提示可配置 `metrics_url`。

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.