agent-lens:Filling the gap in API and Token observability for Agent workflows

agent-lens is a community Skill in SkillHub (@user_15292d5a/yjkj-agent-lens, v1.0.0) that guides Agents in enabling observability workflows when users are concerned with token usage, API billing, and call quality. The Skill documentation focuses on instrumentation methods—decorators, traces, and records—as well as local SQLite storage (~/.agent-lens/traces.db) and CLI tools like stats, cost, report, and export, covering pricing estimates for providers such as OpenAI, Anthropic, Google, and DeepSeek. Installation requires executing `skillhub install` and specifying the Agent's skills directory (e.g., `~/.cursor/skills/` for Cursor), in addition to installing the same-named Python package via pip. It is suitable for developers requiring local cost reporting and debugging of Agent calls; for non-OpenAI responses, token counting is manual, and costs are estimated based on list pricing.

Read More