<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-legora-cut-ci-maintenance-in-half-di7fdvh3u" -->

---
title: How Legora Cut CI Maintenance in Half | daily.dev
description: Legora, a legal-tech company running a 600+ project Nx monorepo, describes how a three-person platform team replaced a hand-maintained GitHub Actions matrix...
canonical: https://daily.dev/posts/how-legora-cut-ci-maintenance-in-half-di7fdvh3u
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How Legora Cut CI Maintenance in Half | daily.dev
og:description: Legora, a legal-tech company running a 600+ project Nx monorepo, describes how a three-person platform team replaced a hand-maintained GitHub Actions matrix...
og:url: https://daily.dev/posts/how-legora-cut-ci-maintenance-in-half-di7fdvh3u
og:image: https://api.daily.dev/og/posts/Di7fdvH3U.png
og:image:alt: How Legora Cut CI Maintenance in Half
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.

# How Legora Cut CI Maintenance in Half

**[Nx](https://daily.dev/sources/nx)** · 4 min read · 0 upvotes · 1 comments

## Summary

Legora, a legal-tech company running a 600+ project Nx monorepo, describes how a three-person platform team replaced a hand-maintained GitHub Actions matrix with Nx Cloud's task sandboxing and Nx Agents distributed task execution. Sandbox violations were driven from 811 flagged tasks down to zero within about six weeks, cache hit rate rose from roughly 50% to 73%, and CI configuration for migrated checks was cut roughly in half. The static matrix's manual sharding and per-check runner sizing were eliminated in favor of continuous, dynamic task-to-agent assignment that auto-scales as new projects are added, without requiring re-tuning.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://nx.dev/blog/legora-success-story>

## Questions this post answers

### What does Nx Cloud task sandboxing actually detect in a CI pipeline?

It traces every file a task reads and writes during execution and fails the task if it accesses anything undeclared, enforcing hermetic execution. In one real rollout, the first full run flagged 811 of 968 tasks as having sandbox violations, and about six weeks of fixes brought that number down to zero before strict mode was enabled.

_Teams chasing cache-vs-fresh-build mismatches can find similar CI case studies on daily.dev._

### How does Nx Agents distributed task execution differ from a static GitHub Actions matrix?

Nx Agents continuously assigns tasks to a pool of agents as they free up, rather than mapping each check to a fixed runner size and shard count ahead of time. This means fast tasks don't wait on slow siblings, heavy tasks get routed to appropriately sized agents, flaky tasks retry automatically on a fresh machine, and new projects don't require manual re-tuning of shards.

_Engineers weighing CI orchestration versus static matrices can track approaches like this via daily.dev._

### How much can Nx Cloud improve cache hit rate in a large monorepo?

In one migration involving a 600+ project Nx-based monorepo, cache hit rate rose from roughly 50% to 73% over about two weeks after adopting task sandboxing, which restored trust in cached results by making cache and fresh-build divergence impossible.

_Anyone optimizing monorepo cache performance can follow similar build-tooling stories on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@nark3d** · 0 upvotes

> Half in six weeks on a matrix that size is a real result.  I'd ask about the sandbox violations first.  Were the tasks doing something dangerous, or were they just reading things they hadn't declared, which the old config let slide until the sandbox started complaining?  The number that interests me is how many projects you had to touch to get to zero, since that tells you whether it was a handful of shared configs or a long tail.  Did the tail turn out to be long?

## Similar posts on daily.dev

- [Nx Agents, now 4x faster & 30% cheaper than GitHub Actions](https://daily.dev/posts/nx-agents-now-4x-faster-30-cheaper-than-github-actions-iffrgfvum) · Nx · 0 upvotes · 0 comments
- [5 Ways We Solve the CI Bottleneck](https://daily.dev/posts/5-ways-we-solve-the-ci-bottleneck-qbdwvqnkg) · Nx · 0 upvotes · 0 comments
- [Breaking the Lethal Trifecta](https://daily.dev/posts/breaking-the-lethal-trifecta-shbudtvgu) · Medium · 0 upvotes · 0 comments
- [AI coding has made CI a bottleneck, so we reworked ours to keep up](https://daily.dev/posts/ai-coding-has-made-ci-a-bottleneck-so-we-reworked-ours-to-keep-up-xaq5plq9r) · Linear · 13 upvotes · 4 comments
- [Continuous integration and continuous delivery for agentic AI](https://daily.dev/posts/continuous-integration-and-continuous-delivery-for-agentic-ai-lhegkveiq) · Red Hat Developer · 5 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#general-programming](https://daily.dev/tags/general-programming), [#cicd](https://daily.dev/tags/cicd), [#github-actions](https://daily.dev/tags/github-actions)

[View this post on daily.dev](https://daily.dev/posts/how-legora-cut-ci-maintenance-in-half-di7fdvh3u)

```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":"How Legora Cut CI Maintenance in Half","url":"https://daily.dev/posts/how-legora-cut-ci-maintenance-in-half-di7fdvh3u","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-legora-cut-ci-maintenance-in-half-di7fdvh3u"},"datePublished":"2026-09-24T13:42:47.478Z","dateModified":"2026-09-24T17:17:26.966Z","description":"Legora, a legal-tech company running a 600+ project Nx monorepo, describes how a three-person platform team replaced a hand-maintained GitHub Actions matrix...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cf6da77988cb63883283931127fd337c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cf6da77988cb63883283931127fd337c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Nx","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":"Nx","logo":"https://media.daily.dev/image/upload/s--09OCt--d--/f_auto/v1761722266/logos/nx","url":"https://daily.dev/sources/nx"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/how-legora-cut-ci-maintenance-in-half-di7fdvh3u","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"webdev,general-programming,cicd,github-actions","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Nx","item":"https://daily.dev/sources/nx"},{"@type":"ListItem","position":3,"name":"How Legora Cut CI Maintenance in Half"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/how-legora-cut-ci-maintenance-in-half-di7fdvh3u","comment":[{"@type":"Comment","text":"Half in six weeks on a matrix that size is a real result.  I’d ask about the sandbox violations first.  Were the tasks doing something dangerous, or were they just reading things they hadn’t declared, which the old config let slide until the sandbox started complaining?  The number that interests me is how many projects you had to touch to get to zero, since that tells you whether it was a handful of shared configs or a long tail.  Did the tail turn out to be long?","datePublished":"2026-09-30T10:28:23.884Z","url":"https://daily.dev/posts/Di7fdvH3U#c-sQQpDSbYN","author":{"@type":"Person","name":"Adam","url":"https://daily.dev/nark3d","image":"https://avatars.githubusercontent.com/u/2162621?v=4"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-legora-cut-ci-maintenance-in-half-di7fdvh3u#faq","mainEntity":[{"@type":"Question","name":"What does Nx Cloud task sandboxing actually detect in a CI pipeline?","acceptedAnswer":{"@type":"Answer","text":"It traces every file a task reads and writes during execution and fails the task if it accesses anything undeclared, enforcing hermetic execution. In one real rollout, the first full run flagged 811 of 968 tasks as having sandbox violations, and about six weeks of fixes brought that number down to zero before strict mode was enabled. Teams chasing cache-vs-fresh-build mismatches can find similar CI case studies on daily.dev."}},{"@type":"Question","name":"How does Nx Agents distributed task execution differ from a static GitHub Actions matrix?","acceptedAnswer":{"@type":"Answer","text":"Nx Agents continuously assigns tasks to a pool of agents as they free up, rather than mapping each check to a fixed runner size and shard count ahead of time. This means fast tasks don't wait on slow siblings, heavy tasks get routed to appropriately sized agents, flaky tasks retry automatically on a fresh machine, and new projects don't require manual re-tuning of shards. Engineers weighing CI orchestration versus static matrices can track approaches like this via daily.dev."}},{"@type":"Question","name":"How much can Nx Cloud improve cache hit rate in a large monorepo?","acceptedAnswer":{"@type":"Answer","text":"In one migration involving a 600+ project Nx-based monorepo, cache hit rate rose from roughly 50% to 73% over about two weeks after adopting task sandboxing, which restored trust in cached results by making cache and fresh-build divergence impossible. Anyone optimizing monorepo cache performance can follow similar build-tooling stories on daily.dev."}}]}
```

