Inside Ramp's AI Transformation
👋 Hi, this is Gergely with a subscriber-only issue of the Pragmatic Engineer Newsletter. In every issue, I cover challenges at Big Tech and startups through the lens of engineering managers and senior engineers. If you’ve been forwarded this email, you can subscribe here. Inside Ramp's AI TransformationOverview of seven key decisions that turned a finance company “AI-native” within two years. Could it be a blueprint for success in the AI era? Deepdive
Why would a fintech business from before this age of AI build its own coding harness, model router, agentic runtime, and more AI infrastructure software, in-house, on top of LLMs? Not only has the finance platform Ramp done all this, but it’s now starting to sell some of its AI infra as standalone products, such as Ramp Router (at router.com, model routing), Inspect (coding agent), and Glass (AI workspace). To find out how – and why – Ramp did it, I traveled to New York and stopped by its headquarters to meet the engineering team and leadership. In today’s issue, we dig into seven decisions that were key to Ramp going all-in on AI successfully in a relatively short period of time.
Readers may recall that back in August we also covered Ramp – a company of ~2,000 people with an engineering team of around 300 – building its own coding agent, Inspect, and what other teams could take away as inspiration. This especially applies after adoption of Inspect across engineering hit 99% (up from 75%, since the August article), and the number of coding sessions started with Inspect increased sixfold since June: For this new article, I was intrigued to understand more about the AI infrastructure project, particularly as we’re talking about a company operating in a regulated sector like finance. Those seven decisions for the transformation:
Before we begin, I know companies may be considering something similar to what Ramp has done. My advice would be to get inspired by what the team has achieved, but resist the urge to blindly copy practices! The constraints on your own project or team are likely different from those covered here. I’d also like to thank a few folks at Ramp for contributing to this deepdive: CTO Rahul Sengottuvelu, Veeral Patel (Head of Applied AI), Olivier Beaulieu (Director of Engineering), Dylan Garcia (Senior Staff engineer on Inspect), Brian Schroeder and Pranjal Vachaspati (platform engineers), Ben Levick (Head of Product and Customer Operations), Jennifer John (AI Operations Lead) and Matt Shalhoub (Chief of Staff). The bottom of this article could be cut off in some email clients. Read the full article uninterrupted, online. With that, let’s get into it. Decision #1: Build AI infra in-houseWe start with the familiar question: should you “build” or “buy” the systems powering the business? Conventional wisdom says the best move is to just buy any systems that are not in your “core” business. And infrastructure typically isn’t considered core for businesses which aren’t infra companies. And yet, this fintech has decided to build all its AI infra. Ramp may be on the right track with this bold move, considering what Microsoft CEO Satya Nadella said on the Pragmatic Engineer podcast very recently. The tech leader said companies should own their own “intelligence layer”, which includes the harness, private evals, and AI infra that is not tied to a single provider. Two-year headstartRamp was early to building internal AI infra, after starting to experiment with AI a year before ChatGPT was released in 2021. Back then, their team built relatively simple AI automation for sales emails on top of GPT-3. The “ChatGPT moment” came in November 2022, when OpenAI released its conversational “Chat” model that was built on top of the GPT-3 LLM. An early AI startup acquisition seeded Ramp’s Applied AI team. In 2023, Ramp acqui-hired startup Cohere.io, which built customer support automation on top of GPT-3. Ramp’s CTO Rahul Sengottuvelu, was cofounder of Cohere.io, and Ramp’s Applied AI team was spun out of the deal. The Cohere.io acquisition injected “AI-pilled” engineers into Ramp, who had spent a year and a half building and integrating models from the ground up, 18 months before other companies, where engineers were just starting to learn how LLMs worked. With its Applied AI team in place, Ramp was far more confident about building its own infra and not relying on third-party vendors. Ramp RouterOne of the first things Ramp’s Applied AI team worked on was a “waterfall fallback router” for LLMs. In 2023, AI providers were pretty unreliable, so routing to another one during an outage was a sensible way to keep things running. The initial router was simple: when a model provider failed, the router routed a request to a different provider, waterfall-style. Observability was a nice side effect of this. Ramp’s coding agent, Inspect, made all calls through the internal router, so that per-request usage tracking was trivial. Usage tracking then gave Ramp observability of LLM calls on model, provider, cost, and which teams are making calls. This in turn allows Ramp to make cost optimizations at the router layer, like switching to cheaper models for some tasks. With observability and tracking in place, a few neat things became possible:
Ramp cut its own AI bill by 30% thanks to this router, smart routing, and cost controls. Plus, the router made a massive difference to internal visibility on AI spend, Rahul told us. It’s now trivial to answer the question: “what is our AI spending going towards?” It’s also easy enough to drill into team-level and project-level usage to pretty much any granularity. According to Rahul, the reason they launched Ramp Router as a publicly available service is that they’re in the business of helping companies manage costs, and the price of AI is a hot topic at some places where AI has become a leading source of corporate spend. So, a tool to bring transparency to AI spend is not far-fetched. Laminar: a custom-built managed agent harnessBetween 2025 and 2026, Ramp kept building new agents: Inspect (coding), Stack (to automate month-end closing for accounting firms), an SMS agent for customers, and more. But the team were dissatisfied with the agent harnesses available on the market. Specifically, Ramp sought solutions for several problems:
In May this year, Ramp decided to build its own managed agent harness called Laminar. There were three main reasons for not buying one:
Ultimately, Ramp sought to control its destiny by owning this key building block. Plus, coding agents make it surprisingly fast to build! And so Laminar was created with a team of three engineers. For building in-house, a strong engineering team is a prerequisite. Developing a simple harness isn’t that big of a deal: fork something like Pi and off you go. However, building a reliable managed agent platform takes a lot of work. For companies with solid software engineering chops, this should not be much of a problem, but not all places are the same. Also, as mentioned, this wasn’t the “first rodeo” for Ramp’s Applied AI team at building on top of LLMs: it takes practice to get good at AI engineering! Decision #2: Invest in quality gates before going all-in on agents“Pre-AI” test suites pay offAutomated tests weren’t a thing at Ramp during its early years, when urgency and high ownership went hand in hand, and the team moved fast and fixed production issues quickly. This approach helped get the product off the ground quickly, but started to creak when the engineering team and product scope grew. Ramp began investing heavily in automated tests in around 2022 and built an end-to-end testing suite with about 3,500 tests. Today, this test suite is still key for validating product quality. But there’s a problem with end-to-end tests: they are notoriously slow and flaky! This is because the tests simulate user behavior via a browser – which is slow to start up and run – and minor UI changes can cause the test to fail, which causes noise. Ramp’s end-to-end test suite is performant and has a low regression rate. All 3,500 tests run in around five minutes (!!) with a circa 0.1% flakiness rate – which was hard to achieve! Ramp did a few clever things to get here:
Both approaches were inspired by Ruby’s VCR library. Throwaway AI-generated testsLike many companies, Ramp uses the Swiss cheese model for ensuring quality, and stacks different testing layers on top of each other. No layer is perfect, but each catches different issues. These are the layers at Ramp:
Testo is Ramp’s autonomous testing agent. Here’s how it works:
Testo is nondeterministic and the first such layer after three deterministic testing layers of static analysis, unit testing, and end-to-end testing. This adds additional robustness to Ramp’s testing strategy. Feature flags and automatic deploysAt Ramp, feature flags are the default when shipping to production: any new feature or fix is guarded by one. This kind of conservative approach dates back to the early years when Ramp moved fast in the knowledge that problems would occur and be fixed fast. Feature flags make it easy to do staged rollouts: turning on the feature for a smaller cohort at first, then rolling it out more widely. A feature (or even a bugfix!) can also be disabled by toggling the feature flag. With quality gates in place, add agents to the development flowAfter setting up quality gates, Ramp started to add more agentic workflows to the release process: Agent authoring the code (Inspect): an engineer prompts the agent and it generates the pull request. Review Buddy: This is Ramp’s AI code review agent. It does a few things:
Original agent (Inspect): the agent authoring the original session responds to any reviews raised by Review Buddy. These two agents are in a “dance” where every new update by Inspect can kick off more comments from Review Buddy. Stamp Buddy: an agent that decides whether a PR can be merged without human approval. For low-risk changes, a human might not be needed. Otherwise, Stamp Buddy finds the most appropriate sentient reviewer based on domain knowledge, historical contributions, and availability. Accountability stays with engineers. If Stamp Buddy decides that no human review is needed, it’s still a human engineer who clicks the button that deploys a change. If an incident does then happen, a postmortem investigation looks into whether guardrails were missing, and what part of the process needs to be improved to avoid a repeat. Post-deploy agentic monitoring: after a change is deployed, another agent observes logs and telemetry, and sends a Slack message to an engineer if something seems off. User-signal monitoring agents: additional agents read customer support tickets and in-app chat messages. When these agents detect that users are reporting bugs, they attempt to reproduce the bugs. If they’re able to prove a problem exists, then an agent generates a fix with before-and-after screenshots and video, and sends it for human review. Decision #3: Understand and embrace the “new” characteristics of building softwareWhile at Ramp’s HQ, I spent an hour talking with three longtime engineers working on the company’s platforms: Dylan Garcia, Brian Schroeder, and Pranjal Vachaspati. We discussed how much the day-to-day work of software engineers has changed in just the last few years, and the new characteristics of building software – some of which didn’t even exist a year ago. Engineers own systems of which they have not read the code. Pranjal recalled that in the past, a senior+ engineer who owned a system had a good map of its architecture in their head, and could open a random file on the codebase and explain how it related to everything else. But today, engineers know the code in much less detail. Instead, engineers need to care more about what the output of the system is, and how it can be validated to work correctly. There is very little work that’s not worth doing or is impossible. Dylan, who works on the Inspect team, gave an example of complex work the agent does. It would have been a pain to do before AI:
Brian said that work which it used to be silly to even consider tackling, such as non-mission-critical stuff like modest tech debt removal, or fixing small bugs that affect almost nobody, is now being done by himself and other devs all the time. As he put it:
Rewrites have never been so “cheap” and it’s easy to ignore the risks. Also from Brian:
Planning is more lightweight and often starts in Slack. Brian and Pranjal observe the planning process changing in their work at Ramp:
What’s not changed is team alignment, customer focus, and product polish. While at Ramp’s HQ, I asked several people what remains the same from pre-AI days. There were some common themes:
As Ramp’s Head of Applied AI, Veeral Patel, told me:
Decision #4: Do NOT mandate tool usageEven though it was clear that AI tools would become important over time, there were no mandates on any specific tools to use... Subscribe to The Pragmatic Engineer to unlock the rest.Become a paying subscriber of The Pragmatic Engineer to get access to this post and other subscriber-only content. A subscription gets you:
|







Comments
Post a Comment