Skip to content

Agent Bridge

This page is generated from public package documentation in capell-4/packages and the package manifest checked into the source repository.

FieldValue
Composer packagecapell-app/agent-bridge
Package slugagent-bridge
Product groupCapell Operations
Tierpremium
Bundleoperations
Runtime contextsadmin
Capell version^4.0
Source repositorycapell-app/packages
Source pathpackages/agent-bridge
Docs sourcepackages/agent-bridge/docs
Manifestcapell.json

Agent Bridge exposes Capell knowledge and site capabilities through Laravel Agent Bridge servers with token authentication, confirmations, previews, and audit records.

  • Package: capell-app/agent-bridge
  • Namespace: Capell\AgentBridge\
  • Surfaces: Filament admin, HTTP, database
  • Service providers: packages/agent-bridge/src/Providers/AgentBridgeServiceProvider.php
  • Capell dependencies: capell-app/admin, capell-app/core
  • Third-party dependencies: laravel/framework, laravel/mcp, lorisleiva/laravel-actions, spatie/laravel-data, spatie/laravel-package-tools
  • Lets trusted agent tools inspect Capell knowledge and run approved capabilities without opening broad admin access.
  • Keeps capability risk, confirmation, audit, and token behavior in one package so operators can reason about agent actions.
  • Gives developers a documented bridge for automation instead of adding ad hoc endpoints to admin resources.

Agent Bridge exposes Capell knowledge and site capabilities through Laravel Agent Bridge servers with token authentication, confirmations, previews, and audit records.

  • Capell knowledge and site Agent Bridge servers.
  • Token, confirmation, and audit models.
  • Capability registry and capability actions.
  • Prompt builder Filament page.
  • Tools for knowledge lookup, package recommendation, site inspection, capability listing, confirmation, and execution.

For developers: Provides a typed capability contract so Agent Bridge tools can preview, confirm, run, and audit changes instead of directly mutating site state.

For teams: Lets trusted ai-orchestrator clients inspect Capell and request controlled site operations with reviewable confirmation records.

This package makes its Composer dependencies visible because they are part of the value proposition, not just plumbing. When an upstream package has a public repository, its linked preview card points readers back to the maintainers so their work gets proper credit.

Capell packages used here

Open-source packages used here

  • Laravel MCP - Laravel MCP server primitives used by Agent Bridge to expose Capell capabilities to agent tooling.
  • Laravel Actions - single-purpose action classes that keep package workflows out of controllers and Filament resources.
  • Spatie Laravel Data - typed data objects for package boundaries, form state, settings, and structured results.
  • Spatie Laravel Package Tools - Laravel package bootstrapping for config, migrations, commands, translations, and service provider setup.

Linked package previews

Laravel MCP GitHub preview

Laravel Actions GitHub preview

Spatie Laravel Data GitHub preview

Spatie Laravel Package Tools GitHub preview

Screenshots are generated from docs/screenshots.json during package deployment.

  • Agent Bridge prompt builder page.
  • Token management or setup surface.
  • Capability preview and confirmation flow.
  • Audit entry review.
  • Agent Bridge server health output.
  • AgentBridgeServiceProvider registers routes, servers, resources, and capabilities.
  • Config file: capell-agent-bridge.php.
  • Routes file registers Agent Bridge endpoints through Laravel Agent Bridge.
  • Middleware: AuthenticateCapellAgentBridgeToken.
  • Models: CapellAgentBridgeToken, CapellAgentBridgeConfirmation, CapellAgentBridgeAuditEntry.
  • Servers: CapellKnowledgeServer and CapellSiteServer.
AreaPathPurpose
Actionspackages/agent-bridge/src/ActionsDomain operations. Test these directly where possible.
Datapackages/agent-bridge/src/DataStructured payloads, form state, view models, and integration data.
Enumspackages/agent-bridge/src/EnumsPersisted states and Filament option values.
Modelspackages/agent-bridge/src/ModelsEloquent records owned by the package.
Filamentpackages/agent-bridge/src/FilamentAdmin resources, pages, widgets, and settings UI.
HTTPpackages/agent-bridge/src/HttpControllers, middleware, and request handling.
Providerspackages/agent-bridge/src/ProvidersRegistration, extension hooks, routes, migrations, and resources.
Resourcespackages/agent-bridge/resourcesViews, translations, assets, and package resources.
Routespackages/agent-bridge/routesRoute files loaded by the service provider.
Configpackages/agent-bridge/configPackage configuration and publishable config.
Databasepackages/agent-bridge/databaseMigrations, seeders, and settings migrations.
Testspackages/agent-bridge/testsPackage-level Pest coverage.
  • Pages: CapellAgentBridgePromptBuilderPage.
  • Settings: AgentBridgeSettings.
  • Routes: packages/agent-bridge/routes/agent-bridge.php.
  • capell_agent-bridge_tokens stores Agent Bridge client tokens.

  • capell_agent-bridge_confirmations stores pending or completed confirmations.

  • capell_agent-bridge_audit_entries stores capability invocation records.

  • Confirmation TTL defaults to 10 minutes.

  • Models: CapellAgentBridgeAuditEntry, CapellAgentBridgeConfirmation, CapellAgentBridgeToken.

  • Migrations: 2026_05_10_190840_01_create_capell_agent-bridge_tokens_table.php, 2026_05_10_190840_02_create_capell_agent-bridge_confirmations_table.php, 2026_05_10_190840_03_create_capell_agent-bridge_audit_entries_table.php.

  • Config: packages/agent-bridge/config/capell-agent-bridge.php.

  • Data objects live in src/Data/; use them for payloads, form state, and view models.

  • Contracts: CapellAgentBridgeCapabilityAction, CapellAgentBridgeCapabilityProvider.
  • Register Capell extension points, routes, migrations, settings, render hooks, and resources from service providers.
  • Adds Agent Bridge token, confirmation, and audit tables.
  • Adds configurable Agent Bridge routes.
  • Default config enables site route agent-bridge/capell and disables home/knowledge route registration.
  • Adds prompt builder admin page.
  • Adds token prefix and auth guard configuration.
  • Install with composer require capell-app/agent-bridge in the host Capell application.
  • Run migrations through the host application package install flow.
  • In this repository, verify package changes with vendor/bin/pest; do not use php artisan.
  • CapellAgentBridgePromptBuilderPage (packages/agent-bridge/src/Filament/Pages/CapellAgentBridgePromptBuilderPage.php, slug capell-agent-bridge/prompt-builder)

  • None proven in this package directory.

  • Enable only the Agent Bridge routes you intend to expose.
  • Protect site capabilities with token auth and confirmation flow.
  • Keep public_docs_paths scoped to documentation safe for Agent Bridge clients.
  • Run migrations before creating tokens.

Run package tests from the repository root:

Terminal window
vendor/bin/pest packages/agent-bridge/tests --configuration=phpunit.xml
  • Put behaviour changes in src/Actions/; UI classes, commands, and controllers should call actions instead of owning domain logic.
  • Use package Data classes at boundaries instead of passing anonymous arrays between layers.
  • Use backed enums for persisted values and enum labels for Filament options.