Engineering Insights: How Internal Optimizations Led to Comet Cost Intelligence

· Source: Comet · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering · Depth: Intermediate, medium

Summary

Comet developed its Cost Intelligence product by addressing internal AI spending challenges, which now helps customers reduce AI costs by 10-40% without sacrificing performance. The company first optimized its Opik MCP server, discovering that many shipped tools were unused, increasing prompt sizes and costs. By rebuilding the MCP with a smaller set of composable CRUD-style operations and self-discovery tools, prompt overhead dropped by roughly 100x, making the interface more capable. Second, Comet optimized its skill library, increasing skill selection rates from 2% to 35% by improving discoverability and reducing monthly AI spend by 5% by merging redundant skills. These efforts underscore the importance of continuous measurement and optimization of AI usage, as the ecosystem constantly evolves with models like Claude Code and Codex.

Key takeaway

For MLOps Engineers tasked with optimizing AI spend, continuously monitoring your model's actual usage of tools and skills is crucial. You should instrument your AI systems to identify underutilized components, like unused MCP tools or redundant skill library content, and refactor them. This approach, exemplified by Comet's 10-40% cost reductions, allows you to significantly cut expenses and improve model performance by reducing unnecessary context, rather than imposing blunt token limits.

Key insights

Measuring AI usage and costs reveals inefficiencies, enabling significant optimizations in model performance and spend without sacrificing capability.

Principles

Method

Instrument AI usage to collect cost data, analyze for underutilized or redundant components like MCP tools or skills, then refactor based on usage to reduce context and improve efficiency. Continuously monitor for new inefficiencies.

In practice

Topics

Best for: AI Engineer, MLOps Engineer, Director of AI/ML

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Comet.