> ## Documentation Index
> Fetch the complete documentation index at: https://kawax.biz/llms.txt
> Use this file to discover all available pages before exploring further.

# Een custom agent voor Boost maken

> Leer hoe je Laravel Boost uitbreidt met een eigen AI-agent voor guidelines, MCP en Agent Skills.

## Wanneer heb je een custom agent nodig?

Laravel Boost ondersteunt bekende AI-tools, maar een intern hulpmiddel of een agent met een eigen configuratieformaat kan een custom agent nodig hebben. De basisclass is `Laravel\Boost\Install\Agents\Agent`.

## De drie contracts

Implementeer alleen de mogelijkheden die je agent werkelijk ondersteunt:

| Contract             | Doel                                   |
| -------------------- | -------------------------------------- |
| `SupportsGuidelines` | Pad en transformatie van AI-guidelines |
| `SupportsMcp`        | MCP-configuratie installeren           |
| `SupportsSkills`     | Pad voor Agent Skills                  |

```php theme={null}
use Laravel\Boost\Contracts\SupportsGuidelines;
use Laravel\Boost\Install\Agents\Agent;

class MyAgent extends Agent implements SupportsGuidelines
{
    public function name(): string
    {
        return 'my_agent';
    }

    public function displayName(): string
    {
        return 'MyAgent';
    }

    public function guidelinesPath(): string
    {
        return 'MYAGENT.md';
    }
}
```

Je moet daarnaast de platform- en projectdetectie configureren. Voor MCP kun je `mcpInstallationStrategy()` en `mcpConfigPath()` overschrijven; voor skills geef je het skillsdirectory terug.

## Registratie

Registreer de agent in `AppServiceProvider`:

```php theme={null}
use App\Boost\MyAgent;
use Laravel\Boost\Boost;

public function boot(): void
{
    Boost::registerAgent('my_agent', MyAgent::class);
}
```

Daarna verschijnt de agent bij `php artisan boost:install`. De actuele interfaces vind je in de [Laravel Boost-broncode](https://github.com/laravel/boost).


## Related topics

- [Een custom provider voor de AI SDK maken](/nl/advanced/ai-sdk-custom-provider.md)
- [Laravel Boost custom agent voor GitHub Copilot CLI](/nl/packages/laravel-boost-copilot-cli.md)
- [Laravel Boost custom agent voor PhpStorm met GitHub Copilot](/nl/packages/laravel-boost-phpstorm-copilot.md)
- [Geavanceerde onderwerpen](/nl/advanced/index.md)
- [Mijn packages](/nl/packages/index.md)
