laravel-debugger

laravel-debugger is an agent for Claude Code from iSerter/laravel-claude-agents. It costs 39 tokens per session (3,225 once invoked), scanned A, original, MIT.

A Laravel debugging specialist that investigates errors and performance problems in PHP applications. It examines logs, stack traces, database queries, queues, events, package conflicts, and recent code changes.

In plain words
What is it for?
Use it to diagnose Laravel errors, inspect Eloquent database behavior, find slow parts of an application, troubleshoot queues and broadcasting, and resolve package conflicts.
Why use it?
It provides a structured way to move from a reported error to its underlying cause. This helps distinguish application bugs from configuration, dependency, or environment problems.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the laravel-claude-agents plugin — 15 skills, 10 agents shipped together

Good fit Use it to diagnose Laravel errors, inspect Eloquent database behavior, find slow parts of an application, troubleshoot queues and broadcasting, and resolve package conflicts.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/iserter/laravel-claude-agents/laravel-debugger
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/iSerter/laravel-claude-agents

Made for: Claude Code.

Or install laravel-claude-agents, the plugin that ships this one along with the rest of its 15 skills, 10 agents.

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 laravel-debugger

README.md
[![agentmods](https://agentmods.dev/badge/agents/iserter/laravel-claude-agents/laravel-debugger/github.svg)](https://agentmods.dev/agents/iserter/laravel-claude-agents/laravel-debugger)
Your own site
<a href="https://agentmods.dev/agents/iserter/laravel-claude-agents/laravel-debugger"><img src="https://agentmods.dev/badge/agents/iserter/laravel-claude-agents/laravel-debugger/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 laravel-debugger

Your own site · 80×15
<a href="https://agentmods.dev/agents/iserter/laravel-claude-agents/laravel-debugger"><img src="https://agentmods.dev/badge/agents/iserter/laravel-claude-agents/laravel-debugger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,225 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.00039 $0.03225
Opus 5 $0.00019 $0.01613
Sonnet 5 $0.00008 $0.00645
Haiku 4.5 $0.00004 $0.00323

Measured 9d ago against content hash 130169780cc1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

laravel-debugger 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 9d 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/laravel-debugger.md · 587 lines

How it starts

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

You are a senior Laravel debugging specialist with expertise in diagnosing complex Laravel application issues, analyzing framework-specific behavior, and identifying root causes. Your focus spans Laravel debugging tools, systematic problem-solving, and efficient issue resolution.

Core Responsibilities

When invoked:

  1. Diagnose Laravel application issues systematically
  2. Analyze error logs, stack traces, and Laravel-specific errors
  3. Debug Eloquent queries and relationships
  4. Identify performance bottlenecks
  5. Resolve package conflicts and dependency issues
  6. Debug queue jobs, events, and broadcasting

Laravel Debugging Checklist

Initial investigation:

  • Error reproduced consistently
  • Laravel version identified
  • PHP version checked
  • Environment verified (local/staging/production)
  • Recent changes reviewed (git log)
  • Error logs examined
  • Laravel debug mode enabled (if local)
  • Stack trace analyzed

Laravel-Specific Debugging

Enable Debug Mode

// .env
APP_DEBUG=true
APP_ENV=local

// config/app.php
'debug' => env('APP_DEBUG', false),

Laravel Telescope

# Install Telescope for debugging
composer require laravel/telescope --dev
php artisan telescope:install
php artisan migrate

# Access at /telescope

Laravel Debugbar

# Install Debugbar
composer require barryvdh/laravel-debugbar --dev

# Automatically shows:
# - Queries with execution time
# - View data
# - Route information
# - Session data
# - Request/Response

Common Laravel Errors

Database Connection Errors

// Error: SQLSTATE[HY000] [2002] Connection refused

// Debug steps:
1. Check database credentials in .env
2. Verify database server is running
3. Test connection:
php artisan tinker
>>> DB::connection()->getPdo();

4. Check database configuration:
php artisan config:clear
php artisan config:cache

Class Not Found Errors

// Error: Class 'App\Models\Post' not found

// Debug steps:
1. Check namespace in the class file
2. Verify file location matches namespace
3. Clear and regenerate autoload:
composer dump-autoload

4. Check if class name matches filename
5. Verify use statements in calling code

Read the full file on GitHub · 587 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. 9d ago First seen · 587 lines · 39 tokens per session scan A 130169780cc1

Subscribe to this mod's changes

laravel-debugger is an agent published in the GitHub repository iSerter/laravel-claude-agents (44 stars, last pushed 4mo ago), licensed MIT. It adds 39 tokens to every session and 3,225 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

superpowers-sage:livewire-debugger

Diagnoses Livewire components that fail to mount, update, or emit events in Sage/Acorn projects. Checks component class (public properties, mount() lifecycle, computed properties with #[Computed] attribute), Blade view (wire:model wire:model.live wire:click wire:submit bindings, @livewireScripts @livewireStyles…

hekivo/superpowers-sage · 193 tokens

phpstan-error-resolver

À utiliser de manière proactive pour analyser et corriger systématiquement les erreurs PHPStan niveau 9 dans les projets PHP/Symfony. Spécialiste pour résoudre les problèmes de types stricts, annotations generics, array shapes et collections Doctrine.

atournayre/claude-marketplace · 56 tokens

swift-build-resolver

Swift/Xcode build, compilation, and dependency error resolution specialist. Fixes swift build errors, Xcode build failures, SPM dependency issues, and code signing problems with minimal changes. Use when Swift builds fail.

affaan-m/ECC · 48 tokens

C#/.NET Janitor

Perform janitorial tasks on C#/.NET code including cleanup, modernization, and tech debt remediation.

github/awesome-copilot · 27 tokens

php-developer

Write idiomatic PHP code with design patterns, SOLID principles, and modern best practices. Implements PSR standards, dependency injection, and comprehensive testing. Use PROACTIVELY for PHP architecture, refactoring, or implementing design patterns.

davepoon/buildwithclaude · 51 tokens

python-general-engineer

Python development: features, debugging, code review, performance. Modern Python 3.12+ patterns.

notque/vexjoy-agent · 26 tokens