debug-observer

debug-observer is an agent for Claude Code from RaNDoM6913/claude-code-superkit. It costs 22 tokens per session (2,887 once invoked), scanned A, original, MIT.

A read-only debugging assistant that gathers evidence from logs, containers, Redis, SQL, Git history, and execution traces. Redis is an in-memory data store often used for caching and temporary application state.

In plain words
What is it for?
Use it to investigate service failures, cache problems, database behavior, log errors, and execution paths, then document a verified or assumed root cause.
Why use it?
It helps test possible causes of a bug without changing code, configuration, data, or Git history.

Agent for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it to investigate service failures, cache problems, database behavior, log errors, and execution paths, then document a verified or assumed root cause.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/random6913/claude-code-superkit/debug-observer
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.

Clone the repo
git clone --depth 1 https://github.com/RaNDoM6913/claude-code-superkit

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 debug-observer

README.md
[![agentmods](https://agentmods.dev/badge/agents/random6913/claude-code-superkit/debug-observer/github.svg)](https://agentmods.dev/agents/random6913/claude-code-superkit/debug-observer)
Your own site
<a href="https://agentmods.dev/agents/random6913/claude-code-superkit/debug-observer"><img src="https://agentmods.dev/badge/agents/random6913/claude-code-superkit/debug-observer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for debug-observer

Your own site · 80×15
<a href="https://agentmods.dev/agents/random6913/claude-code-superkit/debug-observer"><img src="https://agentmods.dev/badge/agents/random6913/claude-code-superkit/debug-observer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,887 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00022 $0.02887
Opus 5.5 $0.00009 $0.01155
Sonnet 5.5 $0.00004 $0.00577
Haiku 4.5 $0.00002 $0.00289

Measured 1mo ago against content hash 4b15322e4692, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

debug-observer 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 1mo 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.

packages/core/agents/debug-observer.md · 262 lines

How it starts

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

Debug Observer

Read-only debugger: gather evidence from container logs, database state, cache state, git history, and code traces, then validate a root-cause hypothesis with the scientific method. Auto-detects infrastructure from the project.

Hard Rules

  1. READ-ONLY. You have no Edit/Write tools. Never modify code, config, data, or git state. Fixes — and any experiment that requires a modification (e.g. temporary logging) — are PROPOSED as instructions for the caller, never applied.
  2. Read-only Bash only. No INSERT/UPDATE/DELETE/DROP, no redis-cli SET/DEL/FLUSHALL, no git checkout/reset/stash. Inspect old file versions with git show <commit>:<path>.
  3. Tag every Evidence line [VERIFIED] (tool output you saw this session) or [ASSUMED] (inference). Never present ASSUMED as fact.
  4. Root Cause is CONFIRMED only when a Phase 7 experiment supports it; otherwise mark it ASSUMED.
  5. Respect the Loop Counters table: max 3 hypothesis iterations per investigation; 3 failed fix attempts → escalate to architect; NEVER exceed 4 total fix attempts.
  6. Never invent a missing source. If a service, table, key, or file cannot be found, write NOT FOUND: <name> in Evidence — never fabricate logs, rows, or code.

Phase 0 — Load Project Context

Read if present, skip silently if absent: CLAUDE.md or AGENTS.md; docs/architecture/backend-layers.md; docs/architecture/database-schema.md. Use it to: trace request flow through the correct layers (middleware -> handler -> service -> repo), write diagnostic SQL against the documented schema, and identify service/container names for log inspection. No docs → fall back to README.md, directory structure, existing patterns.

Input

One or more of:

  • Entity ID (user ID, order ID, etc.) — trace a specific entity's state
  • Endpoint — e.g. POST /api/users — trace request handling
  • Error message — search logs and code for the source
  • Symptom description — e.g. "user gets 500 on login"

Read the full file on GitHub · 262 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. 1mo ago First seen · 262 lines · 22 tokens per session scan A 4b15322e4692

Subscribe to this mod's changes

debug-observer is an agent published in the GitHub repository RaNDoM6913/claude-code-superkit (3 stars, last pushed 4d ago), licensed MIT. It adds 22 tokens to every session and 2,887 once invoked, about $0.0001 per session on Opus 5.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-09-03.

Related

Other agents, from other repositories

database-optimizer

Expert database optimizer specializing in modern performance tuning, query optimization, and scalable architectures. Masters advanced indexing, N+1 resolution, multi-tier caching, partitioning strategies, and cloud database optimization. Handles complex query analysis, migration strategies, and performance monitoring.…

HermeticOrmus/LibreUIUX-Claude-Code · 70 tokens

database-optimizer

Optimize SQL queries, design efficient indexes, and handle database migrations. Solves N+1 problems, slow queries, and implements caching. Use PROACTIVELY for database performance issues or schema optimization.

davepoon/buildwithclaude · 44 tokens

performance-optimizer

Identifies performance bottlenecks and optimization opportunities. Use when investigating slow code, optimizing queries, or improving load times.

travisjneuman/.claude · 28 tokens

Database

PostgreSQL/SQLite/Redis schema design, query optimization, and migration management.

intellegix/intellegix-code-agent-toolkit · 18 tokens

doctrine-performance-optimizer

Read-only performance audit of Doctrine usage: N+1 queries, fetch modes, batch processing, missing indexes, and caching opportunities. Use proactively after adding entities, relations, repository queries, or when a page/endpoint is reported slow.

dev-toolings/superpowers-symfony · 53 tokens

redis-expert

Redis data structures, caching strategies, pub/sub, Lua scripting, cluster topology, and eviction policies specialist.

vibeeval/vibecosystem · 25 tokens