Xata Agent v0.2.0: Powered-up chat, custom playbooks, GCP support & more

Version 0.2.0 introduces a redesigned chat interface, customizable playbooks, support for monitoring PostgreSQL instances on Google Cloud Platform and various improvements across the board.

Author

Elizabet Oliveira

Date Published

zzz delete me zzz

Author: Alex Francoeur alexf@xata.io

Categories: open-source,postgres,postgresql,agent,ai,oss

zzz delete me zzz

Last month, we introduced the Xata Agent — an open-source AI agent designed to monitor and optimize your PostgreSQL databases. The feedback has been tremendous so far and our community tends to agree that the future of observability is significantly more agentic than our current one. With the v0.2.0 release today, we are doubling down on that belief with a bunch of new features and improvements.

Improvements to chat

One of the key parts of the agent workflow is chat. Every playbook ran, event captured and notification sent leads back to a chat interface with the agent. We recently made some improvements that level-up our chat experience and open the door to some amazing possibilities.

!New chat interface

Chat persistance

Previously, chats were only persisted as part of the playbooks run history. You can see the expanded run history for the scheduled playbook below.

!v0.1 run history

Now you can spark up a conversation with the agent and revisit it at any time. This makes it perfect for any ad-hoc queries or an opportunity to build context over time for any long-running investigations.

!Chat peristence in v0.2

Better syntax highlighting

There are many times when the agent will be sharing SQL or configuration parameters to help optimize performance issues or troubleshoot errors in real time. With this updated design, you can visually see what’s important faster. When it comes to databases, sometimes even seconds of downtime can be expensive.

!Syntax highlighting refresh

Artifacts

Tables tend to be one of the most common outputs required when interacting with a database. In v0.2.0 we’ve added artifacts to chat, making it possible to output and interact with a table or document. These are transparent to the user and the agent will decide when best to surface them, but if you ask nicely, I’m sure you’ll get the output you’re looking for ✨

!Document and spreadsheet artifacts

We’re especially excited about artifacts, this framework allows us to introduce a variety of new chat experiences. We plan to build out a library of artifacts for the agent starting with an interactive SQL editor.

Custom playbooks

If you are one or have ever worked with an SRE, playbooks are a foundational part of observability workflows. They are critical to ensuring uptime and typically the reason for swift recoveries when downtime occurs. Every unwanted behavior or degraded pattern observed has explicit steps and actions to remediate. If an event has never been observed before, a new playbook is added. Playbooks are a core element to the monitoring and actions taken by the agent and we ship with a handful of generic playbooks that are useful for most PostgreSQL instances.

We realize every company, business and database are unique and different. With custom playbooks, you can create your own playbook or fork one of Xata’s. This is the first step toward building out a library of custom workflows specific to your needs. Taking this further, we have already started work on adding custom tools via MCP and envision the agent authoring and revising its own playbooks.

!Create a custom playbook or generate one from a description

!Easily fork a playbook and make it your own

Support for GCP CloudSQL Databases

Our initial release supported vanilla PostgreSQL instances and AWS flavors of PostgreSQL. Adding native support for cloud providers allows us to pull in monitoring data and logs available as context for the agent. With this latest integration, you can now use CloudSQL logs and monitoring data to help monitor, troubleshoot and optimize your PostgreSQL database.

Starting today, you can add a CloudSQL database to any new project through the agents interface.

!Use our native CloudSQL integration for your GCP PostgreSQL instances

Support for new models

We’ve heard it from numerous leaders in the industry, Gemini provides pretty good answers when it comes to PostgreSQL. While it was on our roadmap, we’d like to give a shout out to a valued member of our community Leonardo Benedet for adding support for Gemini! You can now choose Gemini 2.0 Flash, Gemini 2.0 Flash Lite and Gemini 2.5 Pro as the model for any chat or scheduled playbook.

!New Gemini and GPT models now available for chat and scheduled playbooks

Given the timing of the release, we've also just snuck in support for GPT-4.1 and GPT-4.1 Mini

Connection re-use

Agents can be pretty chatty. If you have an active database, there can be multiple conversations happening in parallel. Each tool interacts with a target database and we now ensure that the connection is re-used between tool calls. This will help restrict the number of connections open to your database from the agent. You can read more up on the implementation in this pull request.

Errors as context

There is now more robust error handling by the agent. With v0.2.0 all errors are fed back to the models as context so it can react to errors in real time.

Up next

This was an exciting release and we encourage you to check out the full changelog to dig into all the other improvements and bug fixes that came with this release. We are dogfooding the agent with the Xata platform, monitoring and optimizing a very large number of active databases and continually improving the agent to work with PostgreSQL at scale.

On our near term roadmap you can expect to see:

  • Support for custom tooling and MCP servers so you can customize not just your playbooks, but the actions the agent takes.
  • Approval workflows through GitHub to review changes recommended by the agent.
  • A hosted SaaS version of the agent so you don’t need to run any infrastructure yourself.

We can't wait to hear what you think about v0.2.0! If you'd like to see a new feature, supported model or enhancements in the Xata Agent, we welcome you to open up an issue, create a pull request or just come say hi in discord.