# Inside Ramp's AI Transformation

> Source: <https://newsletter.pragmaticengineer.com/p/inside-ramps-ai-transformation>
> Published: 2026-12-01 16:17:11+00:00

**Recommendation:** Put quality gates — static analysis, unit tests and a large end-to-end suite — in place before scaling coding agents, and make agent sessions shareable so teammates can join and take over.
More in the playbook "Working with AI coding agents": <https://wpnews.pro/playbooks/coding-agents>

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](https://newsletter.pragmaticengineer.com/p/why-ramp-built-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:

- **Decision #1: Build AI infra in-house.** For the “build vs. buy” question, Ramp chose to build all its AI infra, and has no regrets. The team did enjoy a year-and-a-half head start on this, thanks to the earlier acquisition of an AI startup.
- **Decision #2: Invest in quality gates before going all-in on agents.** Ramp has several AI agents in its “software factory”, but they all run on top of a validation system built pre-AI that includes static analysis, unit tests, and a massive end-to-end test suite.
- **Decision #3: Understand & embrace the “new” characteristics of building software.** How software is built has changed in the last year. For example, engineers own systems of which they have not read the code, while rewrites are cheaper than ever.
- **Decision #4: Do NOT mandate tool usage.** Counterintuitively, Ramp didn’t set up a “central” AI team at first, and does not mandate which AI tools its engineers use. It has recently started to consolidate some duplicate efforts, though.
- **Decision #5: Automate fixing of broken stuff.** Ramp is using AI heavily to automate bugfixing: CI issues are resolved on the spot, production errors trigger PRs, and even the oncall agent produces code fixes during incidents.
- **Decision #6: Make development “multiplayer” by default.** Every Inspect coding session inside Ramp is public, as in that any colleague can join in someone’s work and “take it over.” This is a different way of working than without AI, where every engineer works on their own machine, in their own branch, and collaboration only happens during code review, and only between engineers.
- **Decision #7: Turn non-engineers into builders** . Ramp built Ramplify (its internal apps platform) Glass (an internal AI workspace) and Dojos (a skill repository). Using Ramplify as a non-engineer is part of the onboarding process, and there’s an expectation to think in systems and automations.
- **Things that did not work.** Local agents, every team building their own harness, and tying AI spend to business outcomes. Also, the number of product releases stayed flat while Ramp spent more on AI, even as engineers commit 6x as much code versus before.

*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).*

With that, let’s get into it.

## Decision #1: Build AI infra in-house

We 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](https://newsletter.pragmaticengineer.com/p/software-engineering-after-code-becomes) 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 headstart

Ramp 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](http://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 Router

One 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:

- **Cost control:** send requests to the lowest-priced model that fits the job
- **Smart routing** : pick the best model for a request depending on recent route-level performance stats. In practice, Ramp configured it to prefer the cheapest combination of provider, model, and the tier expected to hit a request’s deadline.
- **Ongoing benchmarking:** the router updates per-route performance stats with the latest call, and maintains for each route its recent failure rate, and a statistical model of its latency.

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 harness

Between 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:

- **Durable execution** : when the node running the agent dies, the session should continue. Incidentally, durable execution was one challenge Anthropic faced when building Claude Managed Agents
- **Code execution:** done in a way that allows sandboxing and accessing of local filesystems, all securely
- **Subagents** : launching and orchestrating new agents to deal with more complex tasks
- **Multiplayer** : allow several people to interact with the same agent; for example, in the same Slack channel
- **Lifecycle hooks** : to be able to ping other Ramp systems about changes to the agent’s session state, such as when the session awaits human input, is complete, or has failed
- **Internal integrations:** accessing internal services, being able to use internal tools (MCPs and APIs), etc
- **Observability** : be able to view and visualize cost and latency of each session, time-to-first-token metrics, and things like cache hit ratios*(we cover more on the importance of cache hits in [our inference deepdive](https://newsletter.pragmaticengineer.com/i/225360725/caching-issues-cost-and-latency))*
- **Other harness “basics”:** ways for humans to efficiently steer conversations, control when and how sessions compact, offer MCP interfaces and interoperability with other LLM APIs

In May this year, Ramp decided to build its own managed agent harness called **Laminar**. There were three main reasons for not buying one:

- **Move faster.** Purchasing a solution would mean waiting on a vendor to modify their harness to how Ramp wanted it. So, it was much faster for Ramp’s team to build what they wanted – especially with agents like Inspect!
- **Avoid AI-provider lock-in.** Frontier providers increasingly offer managed agent harnesses, which come with the caveat of vendor lock-in. With models being released so frequently by providers, it made no sense to be locked into one platform.
- **Own the whole observability stack** . Off-the-shelf agent harnesses do not expose traces, but Ramp’s team wanted to have all traces in order to optimize the harness.

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](https://github.com/earendil-works/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 off

Automated 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:

- *Recording HTTP requests:* tests are first run against a real environment and recorded to identify which tests to use
- *Replaying HTTP requests:* the suite replays the recorded HTTP requests as needed

Both approaches were inspired by [Ruby’s VCR library](https://github.com/vcr/vcr).

### Throwaway AI-generated tests

Like 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:

- **Static analysis:** basic checks like static code analysis, linting, and code review catch obvious code-level bugs
- **Unit tests** : these ensure components behave as designed
- **End-to-end test suite** : 3,500 tests ensure the whole experience works as expected
- **AI-generated tests (Testo):** these cover the long tail of feature-specific corner cases.

**Testo** is Ramp’s autonomous testing agent. Here’s how it works:

- **A PR is created** : this already contains a description, source code changes, and some tests (unit tests and maybe end-to-end ones)
- **Build a test plan** : The AI agent Testo reads the code diff and PR description, then builds its own test plan.
- **Execute adversarial tests** : Testo executes the plan against a staging environment. Its system prompt is deliberately adversarial and does not take the developer’s word about what should work. It tests all the declared behavior itself.*In practice, Testo runs these tests on top of Laminar, using Inspect.*
- **Report issues via screenshots and videos.** Once done, Testo returns findings, screenshots, and videos of any issues uncovered.
- **Tests are thrown away!** Testo’s tests are throwaway and not added to the test suite. This is because they would likely overlap with other tests or overfit to specific scenarios, which would raise the chance of false positives or[change detection tests](https://testing.googleblog.com/2015/01/testing-on-toilet-change-detector-tests.html) .

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 deploys

At 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 flow

After 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:

- *Runs all deterministic checks* : await results of static checks, unit tests, and end-to-end tests.
- *AI review:* a custom-tuned Codex instance is run as a review agent. This agent is given all the PR context like descriptions & related artifacts, and any historical app context relevant to a change. Then it generates suggestions.

**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 software

While 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:

“Being able to just tell the agent, ‘Go look at prompt start times and session startup times and LLM inference times’ and have everything come back at once, is a significantly beneficial feature and makes work a lot easier than before.”

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:

“Now that I know I can just simply delegate to Inspect to fix it or sort it out, I kick off work that I would have not touched before. These tools have definitely made me more ambitious, and keep giving me more ideas about what to work on.”

**Rewrites have never been so “cheap” and it’s easy to ignore the risks.** Also from Brian:

“It’s pretty common to look around a codebase and say: ‘we’ve got a bunch of code, and the architecture has gotten complicated. One day, we should probably rewrite it.’ Except that day never came. But today, I feel it’s underpriced just how much the cost of rewrites has gone down.

That said, rewrites being so cheap gives you a dangerous sense of confidence. In reality, it’s easy to forget the accumulated edge cases during a rewrite. So, even though I know that rewrites are cheap, I’m cautious to just go and rewrite a system without much consideration of the ‘why’”.

**Planning is more lightweight and often starts in Slack.** Brian and Pranjal observe the planning process changing in their work at Ramp:

- Agents are often the starting point of planning. Pranjal said he “obviously” starts planning by talking to his agent, bouncing ideas off it, and kicking off the structure.
- It’s common to open a Slack thread with the team about a project and ask if colleagues have tried similar before, and whether they have any helpful pointers. Later, the Slack thread is input for the coding agent.
- Design documents are still written, but are often thinner than they used to be.

**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:

- Cross-team alignment: ensuring that people on other teams are on the same page is just as important (and as hard) as ever
- Customer focus: holding customer interviews and listening to feedback, then acting on it. This was a core part of the software engineering job when Ramp was founded in 2019, and still is today
- Polish: engineers at Ramp pride themselves on going the extra mile to release very polished products. This includes “hiding” AI features inside products that most people would not even spot, like having form defaults pre-selected based on a customer’s context. This close focus on detail has not changed with AI tools.

As Ramp’s Head of Applied AI, Veeral Patel, told me:

“When people are capable of building so many more things, it’s even more important to communicate and coordinate.”

## Decision #4: Do NOT mandate tool usage

Even though it was clear that AI tools would become important over time, there were no mandates on any specific tools to use.
