Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Grab Engineering 12 min read Case study mediumAdept

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

Grab's ADW team rebuilt Scarlet, its Slack-based data-pipeline agent, around a short core prompt plus a versioned library of Markdown skills (platform, routing, repository, workflow) loaded on demand, shrinking the prompt about 25x and letting new teams onboard by adding one reviewed repository skill. Platform tools sit behind two-tool MCP bridges, data-platform actions run under the requester's short-lived token, and sign-in pauses use LangGraph interrupts to resume runs. Scarlet now validates the data its changes produce by comparing CI candidate output against production (schema, counts, keys, nulls, stats, row diffs), with inconclusive treated as failure and verdicts bound to commits. Deterministic scaffolds replaced model guesses for predictable config, and after rollout the merge rate rose from about 50% to over 85% while repositories served grew about fourfold.

Related posts

  • Lessons on UX, security, and scale when building an enterprise-grade Slack agent

    Sourcegraph mediumAdept

    Sourcegraph's Deep Search Slack agent fits into enterprise workflows through staged status messages (emoji acknowledgement, escalation links for long searches), TL;DR answers with threaded follow-ups, and rich link unfurling via Slack's link_shared events, SHA256-based entity IDs, chat.unfurl work objects and flexpane details. On the enterprise side it supports Enterprise Grid's one-app-to-many-workspaces model, auto-links Slack users to Sourcegraph accounts by verified email so permissions match code access, and validates setup by forcing a fresh Slack event-URL ping with a random retry parameter. Abuse is controlled with simple Redis fixed-window counters per user and team that fail open if Redis is down.

  • Building effective agent automations

    claude.dev mediumAdept

    A scheduled daily-brief agent built on Claude Managed Agents reads Slack channels and GitHub pull requests, tracks what changed since the last run, and posts a short brief to Slack. The design runs through sources, destination, agent config, cron schedule, memory and guardrails, and pairs each with a common failure mode and its fix. Fixes include per-source bookmarks instead of fixed time windows, flagging failed reads instead of reporting a quiet day, and confirming Slack's ok response before updating the ledger. Credentials sit in a vault outside the sandbox, preferences are read-only and re-read every run, the GitHub token is read-only to limit prompt-injection damage, and per-run spending is capped.

  • Migration Automation: Easing the Jenkins → GHA shift with help from AI

    Slack Engineering mediumAdept

    Slack built a conversion tool to move 242 Jenkins pipelines to GitHub Actions by layering corrections on top of GitHub's Actions Importer, which fully converted about 50% of pipelines, partially converted 45% and failed on 5%. Eight unsupported Jenkins steps caused over 90% of the partial conversions. A largely regex/string-replace Python pass swaps rate-limited marketplace actions for internal GitHub Enterprise mirrors, adds guidance comments (e.g. for secrets) and strips noise. LLM prompts handle the action-to-action rewrites that string methods can't, such as replacing rtCamp/action-slack-notify with Slack's internal action, and were 100% accurate across about two dozen spot-checked outputs. The tool is projected to cut migration effort from about 1,700 to about 360 hours.

  • How Meta Used AI to Map Tribal Knowledge in Large-Scale Data Pipelines

    Meta Engineering mediumAdept

    Meta built a pre-compute engine where 50+ specialized AI agents (explorers, module analysts, writers, critics, fixers, gap-fillers) read every file of a 4,100-file, three-language config-as-code data pipeline and produced 59 concise context files capturing undocumented tribal knowledge. Each file follows a "compass, not encyclopedia" format of 25–35 lines (~1,000 tokens): quick commands, key files, non-obvious patterns and cross-references. A cross-repo dependency index and periodic self-refresh jobs keep the context accurate. In preliminary tests on six tasks, agents used about 40% fewer tool calls and tokens, and critic rounds raised quality scores from 3.65 to 4.20. The authors argue that concise, opt-in, quality-gated context helps on proprietary code even though research shows it hurts on well-known open-source repos.

  • Kafka App? There’s a Skill for That

    Etsy Code as Craft mediumAdept

    Etsy's streaming platform team built Agent Skills that let coding agents like Claude scaffold, validate, run locally and open PRs for Kafka streaming apps that produce ML features and embeddings. The agent handles the ambiguous parts, such as interpreting the request and picking schemas and fields, then passes structured inputs to versioned scaffolding scripts so the generated code stays deterministic. Telemetry hooks emit start and completion events via protobuf to Kafka and BigQuery. Adoption was initially near zero because agents never offered the Skills. The team fixed this by adding vocabulary-based entry points and repository-level routing, and tightened Kafka ACLs and permissions for least privilege.

The quest for software engineering knowledge.

Look:
Layout: