troubleshoot

troubleshoot is a command for Claude Code from TechNickAI/ai-coding-config. It costs 21 tokens per session (1,358 once invoked), scanned A, original, MIT.

A command for investigating and fixing errors reported by Sentry or error logs. Sentry is a service that records errors from running applications.

In plain words
What is it for?
It analyzes error patterns, ranks problems, fixes selected issues, monitors critical errors, and can work on independent bugs in separate Git worktrees.
Why use it?
It helps teams find root causes instead of repeatedly treating only the visible symptom, and can prioritize errors worth fixing.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Cursor.

Part of the ai-coding-config plugin — 15 skills, 21 commands, 28 agents, 3 hooks shipped together

Good fit It analyzes error patterns, ranks problems, fixes selected issues, monitors critical errors, and can work on independent bugs in separate Git worktrees.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/technickai/ai-coding-config/troubleshoot
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/TechNickAI/ai-coding-config

Made for: Claude Code.

Or install ai-coding-config, the plugin that ships this one along with the rest of its 15 skills, 21 commands, 28 agents, 3 hooks.

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/ai-coding-config/troubleshoot/github.svg)](https://agentmods.dev/commands/technickai/ai-coding-config/troubleshoot)
Your own site
<a href="https://agentmods.dev/commands/technickai/ai-coding-config/troubleshoot"><img src="https://agentmods.dev/badge/commands/technickai/ai-coding-config/troubleshoot/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 troubleshoot

Your own site · 80×15
<a href="https://agentmods.dev/commands/technickai/ai-coding-config/troubleshoot"><img src="https://agentmods.dev/badge/commands/technickai/ai-coding-config/troubleshoot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,358 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.00021 $0.01358
Opus 5.5 $0.00008 $0.00543
Sonnet 5.5 $0.00004 $0.00272
Haiku 4.5 $0.00002 $0.00136

Measured 25d ago against content hash cdad0b3334c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 25d 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.

plugins/core/commands/troubleshoot.md · 137 lines

How it starts

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

Troubleshoot Command

  • /troubleshoot - Autonomous continuous mode (default)
  • /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

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

Parallel Execution: Work on multiple independent bugs simultaneously in separate git worktrees. Typically 3-5 concurrent worktrees is optimal.

Root Cause Over Symptoms: Investigate why errors happen. Review recent commits, check for related errors, understand data flow. Find the actual problem, not just where it manifested.

Pattern Recognition: Identify common causes across multiple files or components. One strategic fix can prevent many future errors.

Know When Not to Fix: Skip errors that aren't worth fixing: rate limiting (429 errors), external service failures, user-caused errors, flaky/intermittent issues, deprecated code paths, low-value cosmetic issues, monitoring noise. Mark these as ignored in the monitoring service with brief explanation.

Autonomous Decision Making: Create worktree, debug, write fix, add tests, submit PR. Use your judgment on what to fix and what to ignore. Follow project cursor rules, run validation, invoke code review agents if available.

Learning System: After fixes deploy, check if error rate dropped. Adjust approach based on outcomes.

Trust the executing model's intelligence - you can determine the best approach for each situation.

Parallel Batch (auto N): Identify top N independent errors and fix simultaneously in separate worktrees. Submit all PRs at once.

Watch Mode: Monitor for new critical errors (priority score >85). Auto-create worktree, fix, submit PR tagged [HOTFIX]. Queue non-critical errors for batch processing.

Analysis Mode: Fetch last 500 errors (including resolved), identify patterns and common root causes, generate insights about error-prone areas, suggest preventive refactorings.

Keyword Search: Search errors for matches in messages, types, file paths, stack traces, function names. Use fuzzy matching. If multiple matches, show ranked by relevance. If one clear match, fix immediately.

Error Intelligence: Fetch unresolved errors in default sort order. Identify clusters sharing root causes. Triage aggressively - skip external failures, rate limiting, user mistakes, rare flukes. Mark ignored errors in monitoring service with explanation.

Root Cause Analysis: Review git history for affected files, examine code context, look for related errors, check deployment timelines. Generate hypotheses about actual problems.

Git Worktree Workflow: Each bug fix in isolated worktree. Read .cursor/rules/git-worktree-task.mdc for full workflow. Clean up worktrees after PRs merge.

Fixing Process: Gather full context from error monitoring (stack traces, request data, timelines). Read failing code and context. Identify root cause. Implement fix handling edge cases with improved error messages. Add tests when appropriate. Run validation. Use code review agents if available. Create descriptive commits. Submit PRs with error links, occurrence counts, root cause analysis, monitoring plans.

Read the full file on GitHub · 137 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. 25d ago First seen · 137 lines · 21 tokens per session scan A cdad0b3334c4

Subscribe to this mod's changes

troubleshoot is a command published in the GitHub repository TechNickAI/ai-coding-config (24 stars, last pushed 26d ago), licensed MIT. It adds 21 tokens to every session and 1,358 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-22.