定制 milton/vibedebug-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

milton/vibedebug-bundle

最新稳定版本:0.3.1

Composer 安装命令:

composer require --dev milton/vibedebug-bundle

包简介

Bundle for vibedebugging (integrated with symfony/ai)

README 文档

README

VibedebugBundle is a Symfony bundle for “vibe debugging” your applications using AI agents. It automatically collects exceptions and allows you to send them to AI agents for analysis and suggestions directly in Symfony Profiler.

Features

  • Creating of Markdown prompts for debugging via LLM.
  • Sending prompts to AI within profiler panel (integration with symfony/ai-bundle).
  • Export MD prompt by profiler token with controller (available at route /_vibedebug/{token}/prompt)

Installation

  1. composer require milton/vibedebug-bundle --dev
    The bundle is recommended to use only in a dev environment.
  2. Enable the bundle.
    // config/bundles.php
    return [
        // ...
        Milton\VibedebugBundle\VibedebugBundle::class => ['dev' => true],
    ];
  3. Import routes.
    # config/routes/dev/vibedebug.yaml
    vibedebug:
        resource: '@VibedebugBundle/config/routes.yaml'

Integration with symfony/ai-bundle

Configure you AI agents with symfony/ai-bundle so you can send them prompts directly from the vibedebug profiler panel.

AI Profiler Tools

VibedebugBundle exposes Symfony Profiler data as AI tools, allowing AI agents to fetch profiler information using a profiler token.
This enables automated debugging workflows, such as analyzing failed requests, inspecting specific data collectors, and correlating exceptions with request context.

Capabilities

  • Export a compact profiler summary by token.
  • List available data collectors for a profile.
  • Export data from selected collectors.

The tools are registered service tag and can be used by:

  • internal Symfony AI agents (symfony/ai-agent)
  • external agents via MCP (Symfony AI Mate)

Enabling the AI tools for agent

To make Vibedebug AI tools available for an AI agent, register the tool service id 'vibedebug.profile_exporter' in the agent configuration:

# config/packages/ai.yaml
ai:
    platform:
        ollama:
            host_url: 'http://host.docker.internal:11434'
            http_client: http_client
    agent:
        ollama_debugger:
            platform: 'ai.platform.ollama'
            model:
                class: Symfony\AI\Platform\Bridge\Ollama\Ollama
                name: "qwen3:8b"
            tools:
                - 'vibedebug.profile_exporter'

Enabling the AI tools for Mate

Enabled by default.

composer dump-autoload
vendor/bin/mate discover

https://symfony.com/doc/current/ai/components/mate.html

Customizing the prompts

To customize the prompt you have to override the templates:

How to override a template

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 17
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 17
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固