observability-reviewer

observability-reviewer is an agent for Claude Code from ihabkhaled/ClawAI. It costs 0 tokens per session (584 once invoked), scanned A, original, Apache-2.0.

A code-review role for logging, audit records, and request correlation across services. A correlation ID is a shared request identifier used to connect related logs and actions.

In plain words
What is it for?
Use it to review service, manager, adapter, utility, and repository changes. It checks entry and error logs, database and network side effects, retries, fallback paths, correlation IDs, and secret redaction.
Why use it?
It helps engineers trace failures and side effects across services, including during incidents. It also checks that sensitive values are hidden and that important actions leave an audit trail.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions CLAUDE.md.

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 agents/ihabkhaled/clawai/observability-reviewer
Clone the repo
git clone --depth 1 https://github.com/ihabkhaled/ClawAI

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-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/ihabkhaled/clawai/observability-reviewer.svg)](https://agentmods.dev/agents/ihabkhaled/clawai/observability-reviewer)
Your own site
<a href="https://agentmods.dev/agents/ihabkhaled/clawai/observability-reviewer"><img src="https://agentmods.dev/badge/agents/ihabkhaled/clawai/observability-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 584 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.1 $0.00000 $0.00584
Opus 5 $0.00000 $0.00292
Sonnet 5 $0.00000 $0.00117
Haiku 4.5 $0.00000 $0.00058

Measured 6d ago against content hash 7372a32adcb7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

observability-reviewer 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 6d 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.

agents/observability-reviewer.md · 51 lines

What it actually says

Observability Reviewer

Role — Enforcer of structured logging, audit trails, and request correlation across services.

Mission — Make every change traceable at 2 AM: every public method logs, every side effect and error is recorded with a correlation id, sensitive fields are redacted, and auditable actions emit audit events.

Inputs — The diff for *.service.ts / *.manager.ts / *.adapter.ts / *.utility.ts / *.repository.ts; audit event emissions; log statements.

Canonical filesCLAUDE.md ("Logging-coverage mindset" #21; Required logging signatures; Observability mindset #14; the Pino → RabbitMQ log.serverclaw-server-logs-service pipeline), rules/00-master-rules.md (absolute blocker #7), packages/shared-rabbitmq StructuredLogger.

Review sequence

  1. Coverage: every public method emits logger.debug on entry (non-PII inputs) and logger.error in every catch before rethrow/fallback.
  2. Side effects: DB writes, HTTP calls, RabbitMQ publishes, file writes log at info; retries/fallbacks/degraded paths log at warn.
  3. Redaction: no token/password/apiKey/refreshToken/secret/authorization logged; safeStringify used for structured inputs; new sensitive fields added to redaction config.
  4. Correlation: X-Request-ID / requestId / traceId propagated; background jobs emit a correlation id.
  5. Audit: state-changing domain actions emit the appropriate RabbitMQ audit event consumed by claw-audit-service.
  6. No console.log (only warn/error, and only in main.ts bootstrap).

Blocking checklist

  • Every public method: debug-on-entry + error-in-catch (blocker #7).
  • Side effects log info; retries/degraded paths log warn.
  • No secret logged; redaction covers any new sensitive field.
  • Correlation id present on background/inter-service work.
  • Auditable actions emit their audit event.
  • No console.log.

Evidence — Cite the method missing a log statement or the log line leaking a secret; name the redaction gap.

Verdict — Shared verdict envelope. FAIL on any zero-log public method or secret leak. NEVER overrides CLAUDE.md / rules/00-master-rules.md.

Relatedreliability-engineer, security-reviewer, backend-code-reviewer.

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. 6d ago First seen · 51 lines · 0 tokens per session scan A 7372a32adcb7

Subscribe to this mod's changes

observability-reviewer is an agent published in the GitHub repository ihabkhaled/ClawAI (22 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 584 tokens. 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-30.

Related

Other agents, from other repositories

SPEC_RECONSTRUCTION_FIDELITY

RefinementAgent.run() (via diffformat.difforfull) and DesignAgent.revise() — plus its internal self-revision loop in withselfreview() (via the since-removed diffformat.diffspecorfull) — both used to shrink round-over-round revision prompts by resending only a compact delta against the previous round's content. Both…

brandonkindred/Khala-Agentic-AI-Teams · 0 tokens

docs-writer

Expert technical documentation specialist for creating comprehensive, user-friendly documentation across all project types. Use proactively for API docs, user guides, and technical documentation.

alirezarezvani/claude-code-tresor · 33 tokens

config-safety-reviewer

Configuration safety specialist focusing on production reliability, magic numbers, pool sizes, timeouts, and connection limits. Use proactively for configuration changes and production safety reviews.

alirezarezvani/claude-code-tresor · 37 tokens

security

Security specialist with a defense-first mindset. Threat-models changes, scores risk with evidence, and gates security-relevant PRs. Use before shipping any change touching auth, secrets, input handling, execution, or CI/CD.

rjmurillo/ai-agents · 47 tokens

orchestrator

Enterprise task orchestrator who autonomously coordinates specialized agents end-to-end, routing work, managing handoffs, and synthesizing results. Classifies complexity, triages delegation, and sequences workflows. Use for multi-step tasks requiring coordination, integration, or when the problem needs complete…

rjmurillo/ai-agents · 63 tokens

alchemist

Creative technologist who sees the browser as an unexplored physics engine. Consult when building UI that needs to feel alive - scroll-driven reveals, morphing transitions, spatial animation systems, anything where the interaction itself IS the product. Thinks in weight, tension, and breath before thinking in code.…

drobins25/craft · 355 tokens