Artificial Intelligence1 min read

How Grab built Scarlet: the AI teammate that turns a Slack message into a production data pipeline

By · Published by Everything Blog

In short

Grab redesigned its internal artificial intelligence agent to automate the generation of production data pipeline merge requests from Slack prompts and Jira tickets. The overhaul replaced rigid system prompts with modular skills, implemented automated validation, and enforced user-specific security boundaries. These architectural improvements boosted code acceptance rates to over 80 percent while quadrupling the number of supported repositories across the company. To maintain system integrity and security, Scarlet cannot self-merge code and interfaces with platforms like GitLab and Airflow using the Model Context Protocol to load tools only when necessary.

Key points

  • The system enforces human-in-the-loop governance by preventing the artificial intelligenc…: The system enforces human-in-the-loop governance by preventing the artificial intelligence agent from merging its own code changes.
  • Modular Markdown-based skills and on-demand tool loading replaced monolithic prompts to h…: Modular Markdown-based skills and on-demand tool loading replaced monolithic prompts to handle complex engineering workflows.
  • Dynamic validation ensures generated pipeline modifications produce verified data before…: Dynamic validation ensures generated pipeline modifications produce verified data before engineers review the submitted merge requests.

Sources checked by our analysis pipeline: 1

Introduction

In the blog From firefighting to building, we described the agents our Analytics Data Warehouse (ADW) team built to take routine work off data engineers. Scarlet was the Enhancement Agent in that post. It read a ticket, wrote the change, and opened a merge request (MR) for an engineer to review. A routine enhancement dropped from about a day to one or two hours.

Then other teams asked for it, and four limits became clear:

- One team only: Scarlet’s repository and conventions lived in a single system prompt sent on every request. A second team meant forking the bot.

- No proof the data was right: Scarlet could run a change in a test environment, but nothing checked whether the output data was correct. That hour of manual validation still fell to a person, and it was the step most often skipped.

- Shared access: Early versions of Scarlet did not tie each action to the permissions of the person who requested it.

- Slack only: Every request needed someone to type it into a thread.

This post…

Artificial Intelligence