Agentlens — AI skill for Claude Code
Agentic AI monitoring and observability — OTEL traces and local log files from Copilot, Claude Code, Codex, and OpenCode.
How to install Agentlens
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open RogerReed/agentlens and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agentlens does
Agentic AI monitoring and observability — OTEL traces and local log files from Copilot, Claude Code, Codex, and OpenCode. Token usage, cost, summaries, and efficiency insights. VS Code extension, npx, and Docker.
Alternatives in AI
- Codeburn — Free, local tool to track AI coding token usage and cost across 37 tools and agents (Claude Code, Cursor, Code 9.7k ★
- Manifest — Real-time cost observability for OpenClaw agents — track tokens, costs, messages, and model usage 4.1k ★
- TokenTracker — Local-first AI token usage & cost tracker for 31 coding tools incl 1.4k ★
README
AgentLens
[](https://github.com/RogerReed/agentlens/actions/workflows/ci.yml) [](LICENSE)

Local monitoring and observability for agentic AI coding tools — see what's actually happening inside each run. Nothing leaves your machine.
AgentLens receives **OpenTelemetry traces** from Copilot, Claude Code, and Codex in real time, giving you span timing, time-to-first-token, per-tool latency, and file diffs. It also reads the **local session files** each agent writes automatically — including OpenCode's **SQLite database** — as a zero-config fallback that backfills history from before you set anything up. Both sources appear in one dashboard; OTEL takes precedence when available.
Two things it does that a usage dashboard doesn't:
- Catches agents that are stuck. Five named loop and malfunction patterns — identical tool calls repeated, edits oscillating between two states, the same error recurring, runaway scope, context accumulating while progress collapses — each with a correction prompt you can paste straight into the session. See the full list →
- Tells you what to fix in your instructions file. The Advisor reads across sessions and suggests concrete additions to your CLAUDE.md or AGENTS.md — including hot files the agent rediscovers from scratch on every run. More →
Getting Started
Local (OTEL and log files)
The fastest way to get started — run directly on your machine with no install required. Because it runs natively it has full access to your local session log files.
# One-off — always uses the latest published version
npx agentlens-dashb
Related Skills
Core
Agentic AI monitoring and observability — OTEL traces and local log files from Copilot, Claude Code, Codex, an
Spoor
Local-first LLM observability. Inspect agent traces, token usage, latency and estimated costs with one binary
Token Cost Tracker
Estimate, log, and report token usage using runtime-supplied billing rates; never rely on embedded model price
Terseai
Claude Code & Cursor token usage monitor and cost tracker for macOS & Windows. Live token/cost/burn monitoring
Agent Observability Stack
Self-hostable observability for LLM agents + a Linux host (Intel iGPU/NPU + NVIDIA RTX 3090 eGPU aware): Prome
Tripmeter
Tripmeter — a GNOME Shell extension for Claude Code and OpenAI Codex: usage limits and resets, plus what the s
Related Agents
CLI Engineer
Ingénieur du CLI Hookstack (packages/cli/, package npm hookstack-cli). Utiliser pour toute évolution du CLI in
Developer Overview
code-container (container) creates isolated Docker environments for AI coding harnesses (Claude Code, OpenCode
Consult Agent
Execute cross-tool AI consultations via Task spawning. Use when agents or workflows need a second opinion from