<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/worth-the-squeeze-rbj2l7p7o" -->

---
title: Worth the Squeeze | daily.dev
description: A Gusto engineer shares how agentic AI workflows made a large-scale Ruby codebase refactor feasible by replacing OpenStruct with faster alternatives. The key...
canonical: https://daily.dev/posts/worth-the-squeeze-rbj2l7p7o
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Worth the Squeeze | daily.dev
og:description: A Gusto engineer shares how agentic AI workflows made a large-scale Ruby codebase refactor feasible by replacing OpenStruct with faster alternatives. The key...
og:url: https://daily.dev/posts/worth-the-squeeze-rbj2l7p7o
og:image: https://api.daily.dev/og/posts/rBJ2l7p7O.png
og:image:alt: Worth the Squeeze
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Worth the Squeeze

**[Gusto Engineering](https://daily.dev/sources/gustoeng)** · 9 min read · 0 upvotes · 0 comments

## Summary

A Gusto engineer shares how agentic AI workflows made a large-scale Ruby codebase refactor feasible by replacing OpenStruct with faster alternatives. The key insight wasn't AI's code generation speed but the ability to cheaply iterate on the decomposition strategy itself. Initial attempts using one PR per module caused reviewer fatigue; grouping PRs by team ownership solved the bottleneck. Claude Code was used to build a reusable skill that scans for deprecated patterns, groups changes by team, generates replacements, and measures performance. A two-agent setup ran refactoring and performance benchmarking in parallel using git worktrees, producing concrete metrics (25–39x faster instantiation, 90%+ memory reduction) that justified the work. A GitHub issue served as a living dashboard and shared memory between sessions.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://engineering.gusto.com/worth-the-squeeze-27ccf56777fa>

## Similar posts on daily.dev

- [When Code Becomes Cheap, What’s Left?](https://daily.dev/posts/when-code-becomes-cheap-what-s-left--jbyzzm8t6) · Atomic Spin · 2 upvotes · 0 comments
- [How to effectively utilise AI to enhance large-scale refactoring](https://daily.dev/posts/how-to-effectively-utilise-ai-to-enhance-large-scale-refactoring-rxrhhvtn8) · Atlassian · 0 upvotes · 0 comments
- [When code is abundant](https://daily.dev/posts/when-code-is-abundant-gezbqtizx) · GitLab · 0 upvotes · 0 comments
- [Medium](https://daily.dev/posts/medium-bk5chjwcp) · Medium · 1 upvotes · 0 comments

---

Tags: [#ruby](https://daily.dev/tags/ruby), [#claude-code](https://daily.dev/tags/claude-code)

[View this post on daily.dev](https://daily.dev/posts/worth-the-squeeze-rbj2l7p7o)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Worth the Squeeze","url":"https://daily.dev/posts/worth-the-squeeze-rbj2l7p7o","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/worth-the-squeeze-rbj2l7p7o"},"datePublished":"2026-03-27T00:27:38.060Z","dateModified":"2026-03-27T00:28:06.907Z","description":"A Gusto engineer shares how agentic AI workflows made a large-scale Ruby codebase refactor feasible by replacing OpenStruct with faster alternatives. The key...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/fd816f7bc94e0f0e302f229c19857f72?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/fd816f7bc94e0f0e302f229c19857f72?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Gusto Engineering","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Gusto Engineering","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/75cef36847e6483f8ea71383328c6ee2","url":"https://daily.dev/sources/gustoeng"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/worth-the-squeeze-rbj2l7p7o","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ruby,claude-code","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Gusto Engineering","item":"https://daily.dev/sources/gustoeng"},{"@type":"ListItem","position":3,"name":"Worth the Squeeze"}]}
```

