Project Stats
v0.3.0
21 hours ago
48
GitHub stars
13.2K
Downloads

Configuration

The defaults work for local development. Adjust Synapse in config/synapse.php when you need a different setup.

  • Dashboard URL-Change the default /synapse path and the middleware on its routes.

  • Agent Discovery-Choose directories to scan and agent classes to exclude. The defaults areapp/Ai/Agents and app/Agents.

  • Available Models-Add options to the playground's model selector.

  • Data Storage-Choose the database connection for Synapse's tables and the filesystem disk for attachments.

  • History Retention-Enable daily pruning and choose how long to keep conversations. Automatic pruning is off by default.

  • Access Control-Define who can use Synapse outside local through the viewSynapse gate in app/Providers/SynapseServiceProvider.php. Production is disabled by default.

// config/synapse.php
12345678910111213141516171819
'ui' => [
'path' => env('SYNAPSE_PATH', 'synapse'),
],
 
'discovery' => [
'paths' => [
app_path('Ai/Agents'),
app_path('Agents'),
],
],
 
'storage' => [
'connection' => env('SYNAPSE_DB_CONNECTION', null),
],
 
'retention' => [
'auto_prune' => env('SYNAPSE_AUTO_PRUNE', false),
'days' => env('SYNAPSE_PRUNE_DAYS', 7),
],

Stop Debugging Agents in the Dark

Install Synapse and see every connection your Laravel AI agents make. Open source, built and maintained by Redberry, available under the MIT license

right glow layerright glow layer

composer require redberry/synapse --dev