Back to all blog posts

Introducing AI Mate

Picture of Soren Martius
Sören Martius Chief Product Officer
selina nazareth
Selina Nazareth Developer Relations Manager
Reading Time:4 min read

AI Mate is Terramate Cloud’s built-in AI agent that helps teams understand Terraform plan previews, failed deployments, and drift. It provides natural language explanations so developers without deep IaC expertise can move faster, troubleshoot issues confidently, and reduce complexity across environments.

Introducing AI Mate Cover

Understanding the intricacies of cloud infrastructure can be really challenging, especially when companies expose Terraform or OpenTofu to developers who aren’t IaC experts. As a result, they often struggle to understand concepts such as plan previews, drift, or why deployments are failing. Terramate Cloud strives to make those concepts simple to understand by providing visibility and annotations to make the important bits more accessible. However, some challenges still require deep infra expertise to investigate, comprehend, troubleshoot, and resolve.

That’s why we're now introducing AI Mate - our new AI Agent that helps developers move faster by summarizing and explaining plan previews, deployment failures, drift, and more. AI Mate aims to bridge the gap between IaC experts and non-expert users. Let’s look at its capabilities to understand this in more detail.

1. Explain Changes in Pull Requests

Previews in Terramate Cloud help developers to better understand and review changes before deploying to their live infrastructure. This is especially helpful when changing multiple stacks at once, because changes and logs can easily be reviewed on a per-stack basis, allowing developers to keep an overview.

Changing multiple stacksHowever, while working with customers, we learned that many IaC practitioners are non-expert users and thus often struggle to understand those changes. With AI Mate, you can now summarize and explain the changes among all affected stacks to provide a comprehensive explanation to non-expert users in natural language.

AI Mate exampleAs you can see in the screenshot above, using AI Mate transforms a complex overview of changes in multiple stacks into an easy to understand summary, allowing developers to make sense of the impact of a pull request without having to understand all technical details which allows them to move faster and with confidence.

2. Explain Changes in Deployments

Similar to the capability of explaining changes in pull requests, AI Mate helps developers to summarize and explain deployments.

AI Mate summarize and explain deploymentsThis is especially handy in case of failed deployments, where a developer just wants to understand the reason for the failure quickly without having to scroll through and decipher endless logs. AI Mate provides precise explanations of why a deployment has failed and includes potential resolution paths as well, allowing developers to quickly fix broken stacks.

3. Explain a Drift

Drift is an often misunderstood concept in Terraform, OpenTofu, and other IaC technologies. Many practitioners struggle to understand what drift is and why it even exists in the first place. Terramate Cloud is already helping thousands of organizations detect and remediate drift with scheduled and post-deployment drift detection and alerts. But to deeply understand the root causes of drift, a developer often has to rely on a thorough command of the affected cloud resource complexities and interactions.

AI Mate again understands and explains the drift in detail without users having to dig deep into the details. It’s an enormous time saver and allows non-expert users to quickly remediate drift with confidence.

ai mate explain a drift_
How does AI Mate work?

AI Mate is now available in Terramate Cloud for all plans, including our free Community tier.

It relies on data synced via Terramate CLI, which in turn looks at plan files and CI/CD logs, sanitizes the data for any sensitive values, and syncs it to Terramate Cloud. Note that this sync is done in a push model, i.e. DevOps/platform engineers retain full control over which data is synced and which isn’t. Terramate Cloud then leverages a host of different LLM models to generate what we feel are pretty accurate AI summaries.

While the summaries work well in a lot of cases, with the current underlying LLM technology, we cannot guarantee 100% accuracy. What we do find is that the smaller the size of a stack is, the better the accuracy. A smaller context window is yet another good reason to split your state.

If you want to explore how AI Mate can help you move faster, create a free account with Terramate Cloud or book a demo call with one of our experts.

Ready to supercharge your IaC?

Explore how Terramate can uplift your IaC projects with a free trial or personalized demo.