Download the PHP package pupocz/tracy-claude-panel without Composer
On this page you can find all versions of the php package pupocz/tracy-claude-panel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package tracy-claude-panel
Tracy Claude Panel
Tracy BlueScreen panel that formats errors for AI-assisted debugging. One-click error export to Claude Code and other AI coding assistants.
What it does
When a PHP error occurs, this panel appears on Tracy's BlueScreen with a "Copy for Claude" button. One click copies a structured error summary to your clipboard, ready to paste into Claude Code or any AI assistant.
Example output:
Example with vendor-originated error (e.g. invalid Nette link):
Features
- Error info — type, message, file, line number
- URL + HTTP method —
GET http://localhost:8080/admin/users - Nette presenter:action —
User:Admin:EmployeeDetail:default(auto-detected via Application event, works with any mapping) - Smart file resolution — when error originates in vendor code (e.g.
trigger_errorinside Nette), resolves to the first app-level frame where the problem actually is - Function arguments — shows the arguments of the call that triggered the error (scalars, short arrays, class names for objects)
- Latte template resolution — maps compiled PHP back to original
.lattefile and line number (supports Latte 2 and 3) - Source code snippet — shows code around the error with
→marker - Doctrine SQL — extracts query + parameters from DBAL exceptions
- Filtered stack trace — only your app files, no vendor noise; Latte frames resolved to
.lattepaths - Chained exceptions — shows the full cause chain with circular reference protection
Installation
Nette Framework
Register the extension in your config (e.g. config/common.neon):
That's it. The extension registers the panel and hooks into Application::$onRequest for presenter detection. It only activates in debug mode.
Standalone Tracy (without Nette)
Register manually in your bootstrap after enabling Tracy:
The argument is the absolute path to your application source directory. Files outside this directory are filtered from the stack trace.
Optional: Presenter detection for standalone usage
Requirements
- PHP 8.1+
- Tracy 2.10+
Optional (auto-detected when available)
- nette/application — for presenter:action context
- latte/latte — for template source resolution (Latte 2 and 3)
- doctrine/dbal — for SQL query extraction
How it works
- Registers a panel on Tracy's BlueScreen via
addPanel() - When an error occurs, builds a structured text summary
- If the error originates in vendor code, walks the stack trace to find the first app-level frame
- Resolves compiled Latte templates to original
.lattefiles using source comments and position markers - For Nette apps, uses the
Application::$onRequestevent to capture the current presenter name before the error happens - Renders a "Copy for Claude" button that copies the summary to clipboard
License
MIT