PHPackages                             zraly/tracy-ai-debug - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. zraly/tracy-ai-debug

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

zraly/tracy-ai-debug
====================

Tracy exception logger for AI agents - exports errors to JSON format

v1.1.0(2mo ago)07MITPHPPHP &gt;=8.1

Since Jan 26Pushed 2mo agoCompare

[ Source](https://github.com/zraly/tracy-ai-debug)[ Packagist](https://packagist.org/packages/zraly/tracy-ai-debug)[ RSS](/packages/zraly-tracy-ai-debug/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

Tracy AI Debug
==============

[](#tracy-ai-debug)

Composer package that logs Tracy exceptions to JSON files for AI agents.

Installation
------------

[](#installation)

```
composer require --dev zraly/tracy-ai-debug
```

Configuration (development only)
--------------------------------

[](#configuration-development-only)

If the package is installed in `require-dev`, register the extension only in a development config file (for example `config/local.neon`).

```
# config/local.neon
extensions:
	aiDebug: Zraly\AiDebug\DI\AiDebugExtension

aiDebug:
	logDir: %appDir%/../log/ai-debug      # Default
	enabled: true                          # Default
	snippetLines: 10                       # Lines of code context
```

Usage
-----

[](#usage)

Once configured, Tracy errors are exported to JSON files in the configured directory.

AI Agent Workflow
-----------------

[](#ai-agent-workflow)

This package keeps AI guidance minimal and tool-agnostic:

- `/AGENTS.md` is the canonical project instruction file.
- `/docs/ai/fix-tracy-error.md` is a short reusable fix flow.

If your AI tool supports project instruction files, point it to `AGENTS.md`.
If it supports custom commands/skills, map them to `docs/ai/fix-tracy-error.md`.

Features
--------

[](#features)

- ✅ Exports exceptions to structured JSON
- ✅ Includes code snippets around error
- ✅ Captures full stack trace with arguments
- ✅ Extracts context variables
- ✅ Redacts common secret-like keys in context variables
- ✅ Request information (URI, method, IP)
- ✅ Previous exception chain
- ✅ Keeps `latest.json` pointer for quick access (symlink with regular-file fallback)
- ✅ Preserves original Tracy logging
- ✅ Captures BlueScreen errors in development mode
- ✅ Handles string messages (warnings, notices)

License
-------

[](#license)

MIT

###  Health Score

37

—

LowBetter than 82% of packages

Maintenance88

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~13 days

Total

2

Last Release

89d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/577ff662c9ca35033e4890aa57dd9b7e1d6644721582703f506410b85d966e23?d=identicon)[zraly](/maintainers/zraly)

---

Top Contributors

[![zraly](https://avatars.githubusercontent.com/u/522848?v=4)](https://github.com/zraly "zraly (4 commits)")

---

Tags

loggingdebugnetteaiexceptionstracy

### Embed Badge

![Health badge](/badges/zraly-tracy-ai-debug/health.svg)

```
[![Health](https://phpackages.com/badges/zraly-tracy-ai-debug/health.svg)](https://phpackages.com/packages/zraly-tracy-ai-debug)
```

###  Alternatives

[kdyby/monolog

Integration of Monolog into Nette Framework

33684.0k10](/packages/kdyby-monolog)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
