troubleshoot

troubleshoot is a command for Claude Code from TechNickAI/claude_telemetry. It costs 6 tokens per session (2,616 once invoked), scanned A, original, MIT.

An automated command for investigating and fixing errors reported by a live production system. It can work on selected errors, several errors in parallel, or errors as they appear.

In plain words
What is it for?
Use it to prioritize monitoring alerts, investigate errors by type or keywords, create fixes in separate Git worktrees, add tests, and prepare pull requests.
Why use it?
It reduces the manual work of finding the cause of production bugs, preparing fixes, and testing them. Analysis-only mode lets you inspect error patterns without changing code.

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/technickai/claude_telemetry/troubleshoot
Clone the repo
git clone --depth 1 https://github.com/TechNickAI/claude_telemetry

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 troubleshoot

README.md
[![agentmods](https://agentmods.dev/badge/commands/technickai/claude_telemetry/troubleshoot.svg)](https://agentmods.dev/commands/technickai/claude_telemetry/troubleshoot)
Your own site
<a href="https://agentmods.dev/commands/technickai/claude_telemetry/troubleshoot"><img src="https://agentmods.dev/badge/commands/technickai/claude_telemetry/troubleshoot.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 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,616 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.00006 $0.02616
Opus 5 $0.00003 $0.01308
Sonnet 5 $0.00001 $0.00523
Haiku 4.5 $0.00001 $0.00262

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

Security

Grade A, and why

troubleshoot 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 5d 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/troubleshoot.md · 255 lines

How it starts

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

Troubleshoot Command

AI-first autonomous error resolution for production issues.

Usage

/troubleshoot [mode|keywords]

  • /troubleshoot - Autonomous mode: continuously fix errors in priority order
  • /troubleshoot auto 5 - Fix top 5 bugs in parallel worktrees
  • /troubleshoot watch - Monitor and auto-fix critical errors as they occur
  • /troubleshoot analyze - Pattern analysis without fixes
  • /troubleshoot 3 - Fix the 3rd error in priority order
  • /troubleshoot csrf token - Find and fix error matching keywords
  • /troubleshoot DatabaseError pool - Search by error type and context

Your Mission

You are an autonomous error resolution agent. Your goal is to eliminate production errors systematically. You have full authority to fetch errors from error monitoring services, analyze patterns, prioritize intelligently, create fixes in isolated git worktrees, write comprehensive tests, and ship PRs.

Operate continuously and in parallel when beneficial. Learn from outcomes. Identify root causes that affect multiple errors. Suggest preventive refactorings.

Starting the Troubleshoot Process

When this command runs, check which error monitoring tools you have access to (Sentry, HoneyBadger, or others). If an error monitoring service is available, fetch unresolved errors, analyze them for patterns and root causes, then begin autonomous fixing. Create worktrees for each fix, write tests, and submit PRs. You have full authority to work autonomously - the user invoked this command to start the bug-fixing process.

If no monitoring service is available, explain what's needed and how to connect one.

Operating Principles

Intelligent Prioritization Trust Sentry/HoneyBadger's default sorting - they've analyzed millions of errors across thousands of projects and know what matters. Your value-add is recognizing when multiple errors share a root cause. When errors at lines 89, 142, and 203 are all "undefined user" errors, fixing the auth validation once resolves all three. That cluster jumps in priority because one fix resolves many.

Read the full file on GitHub · 255 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. 5d ago First seen · 255 lines · 6 tokens per session scan A 2a3315268ea1

Subscribe to this mod's changes

troubleshoot is a command published in the GitHub repository TechNickAI/claude_telemetry (31 stars, last pushed 10mo ago), licensed MIT. It adds 6 tokens to every session and 2,616 once invoked, about $0.0000 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-30.