Debugging with Insights
Insights shows you what your application does on every request. While Herd captures the runtime context of your sites, it collects alldump() calls, queries, logs, dispatched jobs, outgoing HTTP requests and cache events, and displays them in the Insights window instead of rendering them in the browser or CLI. Your coding agents can read the same information via the Herd CLI and MCP server, so they can debug your application without asking you to copy and paste anything.
Using Insights
You may open the Insights window via the Herd system tray menu, the “Insights” button in the toolbar of the Applications window or a global shortcut that you can define in the shortcut settings. To start capturing, click the antenna icon in the toolbar of the Insights window. The icon pulses while Herd captures runtime context. You can also turn it on with the “Give agents runtime context” switch in the AI tab of the settings, the “Toggle Runtime Context” shortcut or theherd insights:capture on command.
Once enabled, you may use the dump() function as usual. Instead of printing the dump to your browser or terminal, Herd sends it to the Insights window. If you want to see the output of dump() in your page or terminal as well, turn on “dump() output in the page and terminal” in the settings of the Insights window. dd() always shows in both places.

php CLI commands” below the runtime context switch in the AI tab of the settings. Herd never captures test runs.
Settings
Click the gear icon in the toolbar of the Insights window to choose which entries the window shows. These options only filter the window – Herd still captures everything, and your coding agents always see all entries.
Dumps
All dumps that you run via Laravels’dump() or dd() methods automatically go to the Insights window instead of your browser. This has the advantage that the dump doesn’t break your layout and SPAs still work.
This also sends dump() calls from queued jobs to the Insights window that you wouldn’t see in your browser when working with real queues.

Queries
The “Queries” tab lists all queries that your application executes. If you only want to debug slow queries, you can hide fast queries with the minimum query duration in the settings of the window.
Jobs
The “Jobs” tab lists all jobs that your application runs. This is super useful when you work with the sync driver and are not sure if all jobs are properly triggered.
HTTP
The “HTTP” tab displays all outgoing HTTP requests of your application, so if you’re working with an API, these calls show up in the Insights window and allow you to inspect them without searching through logs etc.
Logs
You can get all logs of a request without using Herd’s Log Viewer or digging through log files.
Cache
The “Cache” tab shows the cache hits, misses, writes and deletions of a request.Finding problems
Herd analyzes every request, job and command that it captures and finds common problems, together with the file and line that caused them and a hint how to fix them:- N+1 queries
- Duplicate queries
- Slow queries, by default 100 ms or slower
- Errors like HTTP 500 responses, failed jobs and logged errors
- Slow requests, by default 1 second or slower
herd insights:analyze in your project directory to see these problems, or let your coding agent run it. To verify a fix, load the page again and run the command with the --after option and the cursor that the previous run printed.
insights section of the %USERPROFILE%\.config\herd\config\herd.json file:
Insights via the CLI
You can read and watch everything that Herd captured from your terminal with theherd insights:* commands. This is also a great way to give AI agents access to the runtime context of your application.
Herd Pro
Insights is a Herd Pro feature. Without a license, you can try it with a free trial in which each captured request or job counts once. Once the trial is used up, Herd stops capturing until you activate Herd Pro.Troubleshooting
Insights uses Herds’ own PHP extension so make sure it is present in yourphp.ini and the path to the extension is correct. If you think that there is a problem with the path, simply quit Herd, remove the extension from the ini file and start Herd again. This will add the extension to the configuration file with the correct path.