Microsoft Foundry is adding a feedback loop that uses production traces, expert annotations and evaluation scores to propose improvements to AI agents. The agent optimizer can generate and rank changes to system instructions, skills, tool descriptions and model choice, but a developer decides what to deploy.
The workflow begins by defining success, grouping recurring failures and identifying likely fixes. Production insights, multi-turn evaluation and tracing for agents built with frameworks such as LangGraph, LangChain and CrewAI are generally available. The optimizer itself, trace annotations, golden datasets, safety-aware rubric evaluators and Programmed Training remain in preview.
For each optimization run, teams define evaluation criteria and deploy two models in the same Foundry project. Microsoft says the feature works in regions that support hosted agents except Norway East. Its model router can also choose a cheaper model, with Microsoft claiming savings of up to 65% in its tests.
The architecture keeps a useful boundary between diagnosis and release. A separate “reflector” model reads failed traces and suggests causes, but its explanation can still be wrong. Ranking candidate configurations against evaluations helps, yet teams still need representative tests and human review before a proposed fix reaches production. The system is an assisted engineering loop, not an agent that safely rewrites itself without oversight.