THR1002 · Theater
From Ticket to PR: Field Lessons from an Autonomous Code Agent
Speakers: Talles Valiatti
Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.
What the session covers
Talles Valiatti from a Brazilian Microsoft partner shows an internal 'software factory' that runs coding agents in production, requiring only Azure DevOps and a host. Label-driven stages take a ticket through an agent-led 'grill' refinement loop, complexity classification with model routing via GitHub Copilot, a plan mode and multi-agent coding with human plan approval. Per-repository Teams bots backed by Microsoft Foundry report status and costs, and they explain production traces through an Elasticsearch MCP and an Azure Explorer agent built on Microsoft Agent Framework. Field metrics: 100% of human PRs are reviewed by the agent, all agent output is reviewed by humans, and about one in five tickets is coded by the agent. There are no product announcements; this is a practitioner case study.
Best for: Engineering leads and DevOps or platform teams designing a human-in-the-loop autonomous coding pipeline on Azure DevOps, GitHub Copilot and Microsoft Foundry.
New material starts at 02:24. After a short speaker intro and the overview of the software factory concept, the production 'grill' ticket-refinement demo starts at 02:24.
Where to skip: Skip to 02:24; the grill refinement demo (02:24) and the coding stage with model routing and plan mode (07:03) are the core, observability via Elasticsearch MCP and Agent Framework at 13:44 is the most technical part, and the metrics and lessons at 19:45 are worth seeing; the architecture recap at 17:46 and the closing at 21:45 can be skipped.
Chapters (8)
- 00:01 Recap Depth 100 · Novelty 0/3
Speaker intro and the 'software factory' concept built at a Brazilian Microsoft partner
Talles Valiatti from a Brazilian Microsoft partner describes 1.5 years of work with coding agents (Claude, GitHub Copilot, OpenCode, Codex, Microsoft Foundry) and the effort to merge each team's agents, skills and processes into one company-wide process. The result is an internal 'software factory' whose only hard requirements are Azure DevOps and a host. The host is a Mac Mini in their case but could be AKS, App Service, a VM or a local machine.
- 02:24 Demo Depth 300 · Novelty 2/3
The 'grill' step: agent-driven ticket refinement in Azure DevOps before any coding
The speaker states that everything shown runs in production and that output quality depends on effort invested at the start, so the first step is producing a well-written ticket. Adding the 'grill' label in Azure DevOps makes the agent fetch the ticket, clone the repo with Entra ID machine permissions, ingest inputs such as transcripts, images, PDFs or guidelines, and ask rounds of questions with options and a recommended answer. The human answers in comments and relabels with 'grill answered' until the agent produces a final ticket; for a full application built from an empty repo, this took about 90 hours, more than 80 answered questions and a 1,300-line ticket.
- 07:03 Demo Depth 300 · Novelty 2/3
Coding stage: complexity classification, model routing, plan mode and multi-agent execution
Labelling the ticket 'ready' starts a new run that re-clones the repo, validates the ticket and classifies complexity as low, medium or high, each with its own model set via GitHub Copilot (captioned e.g. Sonnet 5.5 for planning and coding at medium, Opus 5.5 at high). A company-specific plan mode breaks the work into subtasks assigned to agents defined in the repository's .github folder, so the pipeline reuses the team's own agents, skills and prompts rather than being a coding agent itself. After the human approves the plan with 'ready to execute', a multi-agent flow codes the ticket; the large example used more than 7,000 GitHub Copilot AI credits (about $73), took three hours, produced 600 files and reached production the same day.
- 11:27 Demo Depth 200 · Novelty 2/3
Teams bots per repository: status updates and human-to-agent chat via Microsoft Foundry
Because teams disliked checking Azure DevOps for state, each board maps to one repository, one Teams agent (named after superheroes and villains, e.g. 'Joker') and one host instance, posting progress in a public channel and asking for actions like plan verification. Users can @mention the bot, with the request passing through Microsoft Foundry to the solution. The demo asks for the agent's AI cost over 90 days, based on per-step credit consolidation; the speaker notes they now use Foundry as the coding provider (tokens instead of AI credits) and spent around $2,000 on AI credits the previous month.
- 13:44 Demo Depth 300 · Novelty 2/3
Production observability: Elasticsearch MCP and an Azure Explorer agent on Agent Framework
The company uses OpenTelemetry with the Aspire dashboard locally and Elasticsearch in production; each Teams agent has a Foundry agent with an internal host MCP plus the Elasticsearch MCP attached, so the bot can explain a production trace by ID. A separate open-source agent built on Microsoft Agent Framework runs on AKS with read-only Azure access via Azure CLI and is attached as 'Atlas Azure Explorer Agent', answering questions about resource-group deletions and database DTU usage. Next planned is AKS visibility (pods, failures) so developers can cross stack traces, metrics and database data for debugging and create tickets from chat.
- 17:46 Deep dive Depth 200 · Novelty 1/3
Architecture recap and scheduled daily reports with Foundry routines
The architecture is recapped: Azure DevOps, a physical host (or VM), Microsoft Teams, Elasticsearch, extensive use of Microsoft Foundry and Azure Bot. The speaker uses a Foundry capability called routines, which the speaker says is 'not new', to run a prompt on a schedule (e.g. daily at 9 AM) and deliver natural-language reports per team from Elasticsearch and Azure, including trace IDs of failed requests. An AKS report is planned, and Telegram and WhatsApp channels are being explored.
- 19:45 Customer story Depth 200 · Novelty 2/3
Field metrics and lessons: full PR review coverage, 1 in 5 tickets coded by agents
100% of human-created pull requests are reviewed by the agent, and 100% of agent-created tickets and pull requests are reviewed by humans. About one in five tickets in the company is coded by the agent, positioned as an extra team member rather than a developer replacement. The key lesson is that the grill step matters most: developers now spend more time on business logic up front and on verifying code quality at the end, and the speaker keeps a human in the loop for plan and code approval rather than full autonomy.
- 21:45 Closing Depth 100 · Novelty 1/3
Customer rollout in Brazil, requested integrations and closing resources
The speaker says the approach started with normalising patterns and standards before automation, and that rollout to some customers in Brazil began the previous week. Customer feedback requests integrations with GitHub, GitLab and other platforms and other harnesses such as Claude Code or OpenCode. He shares an ideas repository with prompts and images (not the code itself) and his contact channels.
Announcements (0)
No specific announcement was made in this session.
Demos (4)
-
Engineering teams turn a short or rough ticket into a detailed, implementation-ready ticket through an agent-led question-and-answer loop.
Steps (6)
- Create a ticket in Azure DevOps with a short description and attach supporting material (e.g. a brainstorming transcript, images, PDFs, guidelines).
- Add the label 'grill' to the ticket to start the grill process.
- The agent fetches the ticket to the host and clones the repository using Entra ID machine permissions.
- The agent posts a round of questions as comments, each with options and a recommended answer based on the code base.
- Answer the questions in a new comment, remove the 'grill' label and add the label 'grill answered'.
- Repeat the rounds until the agent states it has all information and generates the final ticket.
Prerequisites: Azure DevOps board and repository, a host running the agent (Mac Mini, AKS, App Service, VM or local machine), Entra ID machine permissions to clone the repository; the solution itself is the partner's internal tool.
-
Developers get an approved, refined ticket implemented automatically by a multi-agent flow that reuses the team's own agents, skills and prompts, with a human approving the plan.
Steps (6)
- Add the label 'ready' to the final ticket in Azure DevOps.
- The agent clones the solution, fetches the final ticket and reports that execution started.
- The agent verifies the ticket is well written and classifies its complexity as low, medium or high to select the model set.
- The agent runs plan mode, breaking the work into subtasks assigned to agents defined in the repository's .github folder.
- Review the plan; request changes in comments if needed and loop until it is acceptable.
- Type 'ready to execute' to start the multi-agent coding flow using the final ticket, the plan and the code base.
Prerequisites: Azure DevOps, GitHub Copilot (AI credits) or Microsoft Foundry as model provider, team-defined agents, skills and prompts in the repository's .github folder, the partner's internal pipeline.
-
Engineers follow agent progress and query cost data from the agent directly in Teams instead of Azure DevOps.
Steps (3)
- Open the team's public Teams channel where the agent bot posts progress updates and requests (e.g. plan verification).
- @mention the bot (e.g. Joker) with a question; the message is routed through Microsoft Foundry to the solution.
- Ask for consolidated AI cost data recorded per run and step.
Prerequisites: Microsoft Teams, a bot per board/repository, a Microsoft Foundry agent, the partner's host-side solution recording AI credit usage.
-
Developers debug production issues from Teams by asking the agent about traces in Elasticsearch and about Azure activity and metrics.
Steps (5)
- In Microsoft Foundry, open the agent (e.g. Joker) and connect external MCP servers: the internal host MCP and the Elasticsearch MCP.
- In Teams, ask the bot about a specific trace ID from Elasticsearch and review the answer.
- Deploy an agent built with Microsoft Agent Framework on AKS with read-only Azure access (resource group or subscription) and Azure CLI.
- Attach it to the Foundry agent as 'Atlas Azure Explorer Agent'.
- Ask the bot about deletions in the resource group and database DTU usage for the previous day.
Prerequisites: Microsoft Foundry agent with external MCP support, Elasticsearch with an MCP server and OpenTelemetry data, an Agent Framework agent on AKS with read-only Azure permissions and Azure CLI.