APM Optimizations
Use one prompt per APM metric to have your coding agent find the issues in your code behind slow launches, screens, and requests, and send them to Luciq.
APM shows you which launch phase, screen, or request is slow. APM Optimizations goes one step further and shows you what in your code causes it.
Instead of guessing at a fix, or opening occurrences one by one to find the pattern, you copy one prompt per metric into your coding agent. The agent reads your repository and sends the full list of issues in your code back to Luciq, each with its investigation. Your code stays on your machine.
Find the code behind a slow App Launch, Screen Rendering, Flows, or Network metric.
Get a prioritized list of issues instead of investigating occurrences one by one.
Separate client-side problems from backend latency.
Set-up APM Optimizations
Before you start, make sure your coding agent is connected to the Luciq MCP server and is running in your app's repository.
Copy the prompt
Click Copy to copy the prompt. Each metric has its own prompt, tailored to what that metric measures. For example, the Screen Rendering prompt checks frozen and slow frames, while the prompt for a latency metric looks at its percentiles.
The prompt already includes your app slug, mode, and the metric group, so you don't need to edit it.
Run it where your code lives
Paste the prompt into your coding agent, running in your app's repository. The agent first checks your APM data to confirm there is a real bottleneck worth optimizing, then traces it to the code responsible.
When it finishes, the agent sends the issues it found, with their investigations, to Luciq automatically. One prompt gets you the full list.

Optimizations Dashboard
Once your agent has sent its results, they appear in the Optimizations section of the Debugging tab. The filters at the top of the tab don't apply to this section.
Select an item in the list to see its details. Each item has a type and a priority:
Issue: A problem in your code that affects the metric, such as work on the main thread that causes frozen frames.
Investigation: A finding that explains the behavior you see in the data, but doesn't need a code change on its own.
Priority: How urgently Luciq recommends addressing the item, for example Medium priority.
Each item includes:
What the data shows: The metrics behind the finding, such as frozen and slow frame percentages, Apdex, and how they changed against the previous period. It also states how confident the finding is.
Root cause: The code that causes the problem, with references to the files and lines involved.
Recommended actions: The changes to make, including any trade-offs.
Select Open in at the bottom of an item to continue debugging it with your agent. You can ask questions, drill down, or create a fix.

Last updated