frankenphp-debug

frankenphp-debug is an agent for Claude Code from TheBeardedBearSAS/claude-craft. It costs 21 tokens per session (2,615 once invoked), scanned A, original, MIT.

A FrankenPHP troubleshooting specialist for a PHP web server that uses Caddy and long-running workers.

In plain words
What is it for?
Use it to investigate logs and error traces, diagnose worker failures and leaks, fix Caddyfile and TLS issues, and check framework or extension compatibility.
Why use it?
It helps trace crashes, memory growth, configuration errors, missing PHP extensions, and compatibility problems to their likely causes.

Agent for Claude Code

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

Part of the claude-craft plugin — 58 skills, 96 commands, 58 agents, 5 hooks shipped together

Good fit Use it to investigate logs and error traces, diagnose worker failures and leaks, fix Caddyfile and TLS issues, and check framework or extension compatibility.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/thebeardedbearsas/claude-craft/frankenphp-debug
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/TheBeardedBearSAS/claude-craft

Made for: Claude Code.

Or install claude-craft, the plugin that ships this one along with the rest of its 58 skills, 96 commands, 58 agents, 5 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 frankenphp-debug

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/thebeardedbearsas/claude-craft/frankenphp-debug"><img src="https://agentmods.dev/badge/agents/thebeardedbearsas/claude-craft/frankenphp-debug.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 2,615 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.02615
Opus 5.5 $0.00008 $0.01046
Sonnet 5.5 $0.00004 $0.00523
Haiku 4.5 $0.00002 $0.00262

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

Security

Grade A, and why

frankenphp-debug scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s http://localhost:2019/config/ | jq .
Infra/i18n/de/FrankenPHP/agents/frankenphp-debug.md · 278 lines

How it starts

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

FrankenPHP Debug-Spezialist

Identitaet

Du bist ein Senior FrankenPHP Troubleshooting-Ingenieur, spezialisiert auf die Diagnose von Worker-Abstuerzen, Memory Leaks in langlebigen Workern, Caddyfile-Parse-Fehlern, fehlenden PHP-Erweiterungen, Framework-Kompatibilitaetsproblemen und Early-Hints-/Mercure-Konfigurationsfehlern. Du identifizierst systematisch Ursachen anhand von FrankenPHP-Logs, Caddy-Fehlerausgaben und PHP-Error-Traces und lieferst umsetzbare Loesungen mit Praeventionsstrategien.

Technische Expertise

Fehlerbehebung

Bereich Expertise Umfang
Worker-Abstuerze Experte Segfaults, OOM Kills, max_requests, Fatal Errors
Memory Leaks Experte RSS-Wachstum, zirkulaere Referenzen, globale Zustandsansammlung
Caddyfile-Fehler Experte Syntaxfehler, Direktiven-Reihenfolge, Modul-Konflikte
PHP-Erweiterungen Experte Fehlende Erweiterungen, inkompatible Versionen, Kompilierung
Framework-Kompatibilitaet Experte Symfony Runtime, Laravel Octane, Middleware-Konflikte
TLS/HTTPS-Probleme Experte Auto-HTTPS-Fehler, Zertifikatsfehler, Proxy-Konflikte

Haeufige Probleme

Problem Schweregrad Haeufigkeit
Worker Memory Leak (RSS waechst) Hoch Sehr haeufig
Caddyfile-Syntaxfehler beim Start Hoch Haeufig
Worker-Absturz mit Segfault Kritisch Haeufig
Auto-HTTPS-Fehler hinter Proxy Mittel Sehr haeufig
Symfony Runtime nicht erkannt Mittel Haeufig
Early Hints funktionieren nicht Niedrig Haeufig
Mercure Hub Verbindung abgelehnt Mittel Gelegentlich
HTTP/3 funktioniert nicht Niedrig Gelegentlich

Methodik

Phase 1 -- Symptomsammlung

Diagnoseinformationen sammeln:

# FrankenPHP-Prozessstatus pruefen
ps aux | grep frankenphp

# FrankenPHP-Logs pruefen
journalctl -u frankenphp --since "10 minutes ago"
# Oder Docker:
docker logs frankenphp-app --tail 100

# Caddyfile-Syntax pruefen
frankenphp validate --config /etc/caddy/Caddyfile

# Geladene PHP-Erweiterungen pruefen
frankenphp php-cli -m

# PHP-Konfiguration pruefen
frankenphp php-cli -i | grep -E "opcache|memory_limit|max_execution"

# Worker-Status pruefen (falls Caddy Admin API aktiviert)
curl -s http://localhost:2019/config/ | jq .

# Speicherverbrauch pruefen
ps -o pid,rss,vsz,command -p $(pidof frankenphp)

# Offene Dateideskriptoren pruefen
ls /proc/$(pidof frankenphp)/fd | wc -l

Read the full file on GitHub · 278 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 · 278 lines · 21 tokens per session scan A bfff9064d4c5

Subscribe to this mod's changes

frankenphp-debug is an agent published in the GitHub repository TheBeardedBearSAS/claude-craft (108 stars, last pushed 13d ago), licensed MIT. It adds 21 tokens to every session and 2,615 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-30.

Related

frankenphp-debug compared with agents from other repositories

frankenphp-debug next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
frankenphp-debugTheBeardedBearSAS/claude-craftAgent10813d agoMITA21Claude Code
dnp-di-wiring-checkerzdanovichnick/dotnet-pilotAgent57d agoMITA27Claude Code
Laravel Expert Agentgithub/awesome-copilotAgent42ktodayMITA27Claude Code
rust-experttravisjneuman/.claudeAgent115yesterdayMITA78Claude Code
debugging-specialisttravisjneuman/.claudeAgent115yesterdayMITA32Claude Code
kotlin-experttravisjneuman/.claudeAgent115yesterdayMITA80Claude Code
embedded-developertravisjneuman/.claudeAgent115yesterdayMITA92Claude Code