Stop Burning RUs: Live AI App Code Review with the Cosmos DB Agent Kit | Azure Cosmos DB Conf 2026

Andrew Liu demonstrates how the Cosmos DB Agent Kit can review an AI app’s data layer directly in the editor, correlating code and Bicep IaC to spot partitioning and indexing issues that waste Azure Cosmos DB RUs and drive up production costs.

Overview

The session is a live demo from Azure Cosmos DB Conf 2026 focused on preventing expensive Azure Cosmos DB mistakes in production (partition key choice, indexing policy, and data model design) by running an in-editor review of an application’s Cosmos DB data layer.

Demo scenario: a multi-agent travel planner with Cosmos DB-backed memory

Andrew walks through a multi-agent travel-planner app (a 5-day LA family trip assistant) that persists different kinds of agent memory in Azure Cosmos DB:

He calls out several memory patterns stored in Cosmos DB:

Tooling shown

What the live review analyzes

The demo highlights a review workflow that reads and correlates:

The goal is to validate that the Cosmos DB configuration matches real access patterns, including:

Example findings called out in the session

The review produces concrete, prioritized recommendations, including:

Why it matters: RU economics before production

The core message is that catching partitioning/indexing/data-model issues before production can be the difference between:

Key takeaways

  1. If you’re new to Azure Cosmos DB, the Agent Kit is positioned as a way to get partitioning and data modeling guidance “on demand” inside the editor.
  2. If you already build on Cosmos DB, pointing the kit at existing projects can surface performance and cost wins by aligning indexing and partitioning with real query patterns.