Reports
Reports are available in Lens 0.8.0.
Ask Lens to trace a slow developer request or find patterns across runs. The report links its findings to the traces behind them.

You need traces in Lens and a connected analysis model. Standalone administrators and gateway proxy administrators can generate reports. Gateway admin viewers can open completed reports. If Lens prompts you to connect an analysis model, select Set up analysis first.
1. Choose a template or write a question
Open Reports and select Generate report (if you have no reports yet, Lens opens the template picker directly). Pick a template to prefill Question and What to look for, then edit either field before running.
Repeated work, failed commands, context growth, and cost-reduction experiments.
Recurring tasks that shared instructions, scripts, or tools could handle.
Unresolved requests, repeated troubleshooting, and escalation decisions.
Missing guidance, failed retrieval, and conflicting answers.
Tool failures, repeated calls, and workarounds.
Usage boundaries and attempts to redirect the agent.
Example: Trace a slow developer request
For example, to investigate a single slow request, open Reports → Generate report and select Write your own question. Use the developer’s trace ID if you have it, or describe the agent, time, and request.
Why was the request with trace ID <trace ID> slow?
Identify the step the response waited for and give its duration. Was it a tool call, gateway overhead, or the provider round trip? Cite the trace. If the timings cannot separate these, say what is missing.
Choose the agent and a Time range around the request. If your app records a unique request ID as trace metadata, use More options → Add metadata filter to narrow the selection. Check how many traces match and how many are selected for analysis, then select Generate report.
Open the report’s citation to confirm it analyzed the developer’s trace. If the request was outside the sample, narrow the scope and run again. If Lens finds a slow model call but the trace only records its total duration, check the gateway timings to separate gateway overhead from the provider round trip.
2. Set scope and analysis budget
Choose one or more Agents (or All agents) and a Time range. For Custom dates, enter From and To in local time; the finished report records the exact window and timezone. Open More options to narrow the selection to Only traces matching a signal or to add a metadata key/value filter.
Set Analysis spending limit (USD) for generating the report. This cap covers the report analysis itself and is separate from the agent spend recorded inside the traces. Use Maximum traces (optional) (1 to 1,000; default 100) to bound how many traces enter analysis while keeping matching-trace counts and measured totals across the full filtered scope.

Estimated analysis cost and remaining time are starting guides rather than guarantees of total spend or completion time. If a report hits its spending limit before finishing, check its review limits before acting on the findings.
Select Generate report to start. The report page tracks current analysis progress, delegated tasks, elapsed time, and analysis spend. You can leave the page and return anytime under In progress or Completed reports.
3. Review findings and test changes
Start with Recommended changes, then open any finding to inspect the observed sequence, supporting trace citations, and suggested verification steps.
- Coding agent report
- Support agent report
Check the report's scope and review limits before generalizing: measured totals can cover a wider set than the traces examined for a specific finding, and missing cost or timing data limits what the report can conclude. Verify a recommendation by replaying the same tasks with the same assertions and isolated test data, then comparing the results.
Use Copy link to share a report with anyone who has Reports access, Download Markdown to export it, or Run again to rerun with the same question and saved maximum-traces setting over a new time window.
Troubleshooting
If a report cannot finish, open it under Needs attention, read the error message, and select Edit and try again. Verify your analysis-model connection and confirm the filter matches traces. If the run exhausted its spending limit, narrow the question or scope, or raise Analysis spending limit (USD) within the supported range.

