Chat with Agent
Chat with Agent lets you have an interactive conversation with an AI agent about your codebase. Instead of running an automated scan, you explore optimisation opportunities through dialogue — asking questions, setting goals, and deciding which targets to extract.
How it works
From the Code Targeting panel, select Chat with Agent.

A chat interface opens on the right. You can switch between three modes using the tabs at the top:
- Ask — ask questions about your codebase, explore what could be optimised, and get guidance on where to focus
- Plan — work with the agent to create a structured plan for your optimisation goals
- Code — have the agent produce or review code directly

You can also use the default prompt suggestions at the bottom (e.g. Find Optimization Targets, Compilation Flag Optimisation, Caching Opportunities) to get started quickly.
When to use it
- You want to explore your codebase before committing to a targeting approach
- You have questions about specific performance issues and want the agent's input
- You prefer a conversational, iterative workflow over automated scanning
Next Steps
Once you've identified the targets you want to work on:
- Score your targets to prioritise them
- Generate new code versions