observability

observability is a command for Claude Code from sefaertunc/Worclaude. It costs 12 tokens per session (537 once invoked), scanned A, original, MIT.

A local observability report for project activity, based on recorded command, skill, and agent events. Observability means collecting signals about what software is doing so it can be reviewed.

In plain words
What is it for?
Use it to review skill and command usage, agent completion rates and durations, anomalies, and possible skills to retire.
Why use it?
It shows which tools are used, which fail, and which installed skills appear unused, helping identify noise or problems.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/sefaertunc/worclaude/observability
Clone the repo
git clone --depth 1 https://github.com/sefaertunc/Worclaude

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for observability

README.md
[![agentmods](https://agentmods.dev/badge/commands/sefaertunc/worclaude/observability.svg)](https://agentmods.dev/commands/sefaertunc/worclaude/observability)
Your own site
<a href="https://agentmods.dev/commands/sefaertunc/worclaude/observability"><img src="https://agentmods.dev/badge/commands/sefaertunc/worclaude/observability.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 537 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00012 $0.00537
Opus 5 $0.00006 $0.00269
Sonnet 5 $0.00002 $0.00107
Haiku 4.5 $0.00001 $0.00054

Measured 4d ago against content hash dd34b1808357, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

observability scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/observability.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Surface the local observability report for this project. The data lives in .claude/observability/ and is captured by hooks that fire on Claude Code's InstructionsLoaded, UserPromptSubmit, and SubagentStart / SubagentStop events. Zero data leaves the machine — the folder is gitignored.

Run

worclaude observability

The CLI reads the JSONL files (skill loads, command invocations, agent events), pairs agent start/stop events to compute durations, and emits a Markdown report covering:

  • Top skills by load count, with last-seen timestamp.
  • Top commands by invocation count.
  • Agent invocations with completed/failed counts and average duration.
  • Anomalies — installed skills that never loaded, agents that fail more often than they complete.
  • Suggestions — skills not loaded in 30+ days (consider retiring).

Flags:

  • --json — emit the raw report object as JSON (machine-readable).
  • --out <file> — write the report to a file instead of stdout.

Use cases

  1. Skill hygiene. Skills that never load are noise — either rename them to match the prompts users actually type, update their description for skill-hint.cjs keyword match, or retire them.
  2. Agent reliability. If an agent's failure ratio is high, look at what the agent is being asked to do. The bug-fixer and verify-app agents should sit near 100% completion in a healthy project.
  3. Command surface review. If /some-command has zero invocations after weeks of use, it might not be earning its slot in the surface.

Privacy

The report is built entirely from local files. No network egress, no upload, no opt-in dashboard. To disable capture entirely, set WORCLAUDE_HOOK_PROFILE=minimal — the observability hooks short-circuit on that profile (same as learn-capture and correction-detect).

To purge captured data, delete .claude/observability/. It will be recreated empty on the next session start.

Trigger Phrases

  • "show observability"
  • "observability report"
  • "what's my project's observability report?"
  • "skill usage report"
  • "agent reliability"

Read the full file on GitHub · 60 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 60 lines · 12 tokens per session scan A dd34b1808357

Subscribe to this mod's changes

observability is a command published in the GitHub repository sefaertunc/Worclaude (4 stars, last pushed 25d ago), licensed MIT. It adds 12 tokens to every session and 537 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.