Grab uses Claude Code to scaffold medium tests for about 400 services so it can move them to Distroless images, cutting about 1-3 days per service to roughly 0.1
Grab's DevSecOps team is moving services to Distroless base images, which needs medium tests to catch runtime failures, but about 400 services in scope had none. They captured medium-test knowledge as Claude Code skills on top of Grab's internal test SDK, wrapped by an entrypoint skill that runs a batch loop: detect whether a repo qualifies, scaffold with Grab's tool, fix failures against known patterns, raise a draft GitLab merge request, then poll CI and retry up to twice before escalating. GitLab, Glean and Sourcegraph are reached through MCP, the agent may only touch test and CI files, each service gets its own subagent, and scripts filter logs. A first batch of 20 services took about two working days, and over about 1.5 months the agent raised more than 100 medium-test MRs. A patch-test-compare loop then swaps Dockerfiles and a separate agent fixes missing shared libraries.
The numbers (as reported)
| Services without medium tests | Roughly 400 in scope |
|---|---|
| First batch | 20 services in about two working days |
| Merge requests | More than 100 medium test MRs over roughly 1.5 months |
| Effort per service | One to three days by hand → roughly 0.1 days |
| Output tokens | Compressed style cuts model output by about 75% |
Facts
- Company / subject
- Grab
- Tools
- Claude Code
- Codebase
- brownfield
- Work type
- Migration
- Stack
- Docker, Distroless, GitLab, Go, Testcontainers
- Published
- 2026-06-22
- Last checked
- 2026-11-17
What the source claims Practitioner (own blog/paper)
Claimed by the builder, writing about their own work. Not checked independently.
- Effort to create a basic medium test fell from one to three days per repository to about 0.1 days per service 1-3 days → ~0.1 days per service
- A first batch of 20 services was done in about two working days 20 services, ~2 working days
- More than 100 medium test MRs raised in about 1.5 months 100+ MRs
Caveats
Written by Grab's own engineers. MRs are drafts reviewed by humans; the post does not say how many merged or how many services finished the Distroless move ('grown substantially'). The 400-1,200 engineer-day figure is their estimate of the manual baseline. No cost given.
More stories by tool: Claude Code
Related topics: MigrationsBrownfield codebases
Source
Grab Tech Blog (Jia Yee Chong, Kevin Jun Hong Lee, Shi Kai Ng)