Laravel Boost Integration
Capell Agent Bridge has two Agent Bridge surfaces:
- Laravel Boost local Agent Bridge:
php artisan boost:agent-bridge - Capell Site Agent Bridge: the authenticated
agent-bridge/capellroute registered bycapell-app/agent-bridge
Boost is for local development assistance. It can discover Capell package guidance from installed Composer packages and can list or preview registered Capell Agent Bridge capabilities.
The authenticated Capell Site Agent Bridge server is for site operations. It uses Capell Agent Bridge tokens, capability scopes, previews, confirmations, and audit records.
Package Discovery
Section titled “Package Discovery”Laravel Boost discovers third-party package guidance from installed packages:
vendor/capell-app/*/resources/boost/guidelinesvendor/capell-app/*/resources/boost/skills
Capell packages keep these files intentionally small. They tell the agent what the package is and where to read more, usually README.md, docs/, and src/.
Installing In A Host App
Section titled “Installing In A Host App”Install Laravel Boost and Capell Agent Bridge in the Laravel app:
composer require --dev laravel/boostcomposer require capell-app/agent-bridge:*php artisan package:discoverWhen using zsh, quote the wildcard package constraint:
composer require 'capell-app/agent-bridge:*'Run Boost installation for the agent you use:
php artisan boost:installThis writes the agent Agent Bridge config for php artisan boost:agent-bridge. The exact destination depends on the selected agent.
How Capell Agent Bridge Appears In Boost
Section titled “How Capell Agent Bridge Appears In Boost”Capell\AgentBridge\Providers\AgentBridgeServiceProvider checks whether Boost is installed. When Laravel\Boost\AgentBridge\Boost exists, the provider appends Capell bridge tools to:
config('boost.agent-bridge.tools.include')The bridge tools are:
capell-list-capabilitiescapell-preview-capability
These tools read from Capell\AgentBridge\Support\CapellAgentBridgeCapabilityRegistry, so package capabilities registered through CapellAgentBridgeCapabilityProvider become visible to Boost without each package adding its own Boost-specific tool.
Capability Flow
Section titled “Capability Flow”For local development:
- Agent connects to
php artisan boost:agent-bridge. - Agent calls
capell-list-capabilities. - Agent calls
capell-preview-capabilityfor a safe preview. - Mutating confirmation is handled outside Boost through the authenticated Capell Site Agent Bridge server.
For authenticated site operations:
- Create a Capell Agent Bridge token with the required scopes.
- Connect an Agent Bridge client to the configured
agent-bridge/capellroute. - Call the site capability preview tool.
- Review the preview and confirmation token.
- Confirm through the site Agent Bridge confirmation tool.
- Review audit entries if needed.
Verifying In capell-ruby
Section titled “Verifying In capell-ruby”From the host app:
cd /Users/ben/Sites/capell-rubycomposer require 'capell-app/agent-bridge:*' --with-all-dependenciesphp artisan package:discover --ansifind vendor/capell-app/agent-bridge/resources/boost -maxdepth 4 -type f -print | sortphp artisan tinker --execute='var_export(config("boost.agent-bridge.tools.include"));'Expected:
vendor/capell-app/agent-bridge/resources/boost/guidelines/core.blade.phpvendor/capell-app/agent-bridge/resources/boost/skills/capell-agent-bridge-development/SKILL.mdCapell\AgentBridge\Tools\Boost\ListBoostCapabilitiesToolCapell\AgentBridge\Tools\Boost\PreviewBoostCapabilityTool
Common Problems
Section titled “Common Problems”capell-app/agent-bridgeis not in the host appcomposer.json, so no Capell Agent Bridge provider or Boost resources are installed.php artisan boost:installhas not been run, so the agent is not configured to startboost:agent-bridge.- Config is cached after changing installed packages. Run
php artisan optimize:clear. - A package adds an Agent Bridge capability but does not tag a
CapellAgentBridgeCapabilityProvider, so the registry never sees it. - A mutating operation is attempted through Boost instead of the authenticated Capell Site Agent Bridge server.