Copy logo as SVG
Copy wordmark as SVG
Download brand assets
Brand guidelines

Slow builds: find the work worth removing · Tuist

Tuist helps engineering teams and coding agents investigate slow builds and reuse compatible outputs without replacing CI. Improve the project first, then its execution environment: start with recorded build evidence and remove unnecessary work before buying more compute.

Tuist is build infrastructure for engineering teams and coding agents: a shared environment where developers, CI, and coding agents build and test. It provides build evidence and capabilities, not a CI provider, a coding agent, or automatic project repair.

Why builds get slow

Most slow builds are slow because they repeat work, not because the work is new. Three patterns cause most of it:

  • Fresh environments start cold. A CI job, a new checkout, or a coding agent's sandbox starts without the outputs a teammate's machine already produced, so it compiles unchanged code again. More branches and more agents mean more cold builds of the same code.
  • Small changes invalidate too much. When a widely used module, a generated file, a build setting, or an undeclared input changes, the build system must redo everything that depends on it, even if the change was cosmetic.
  • Serial work hides behind parallel hardware. A long chain of dependent steps, a slow script phase, or one oversized module leaves cores idle. A bigger machine runs the same chain no faster.

Faster machines only help the last pattern, and only partly. The first two are about avoiding work, which is where to start.

How Tuist addresses it

  • Shared caching. Tuist backs the build system's own cache, so an output produced once can be reused on developer machines, in CI, and in agent environments: Xcode's compilation cache, the module cache for generated Xcode projects, Gradle's build cache, Bazel's remote cache, and compiled Elixir dependencies. Reuse only happens when inputs match, so cache hits also reveal which inputs keep changing. See Cache, the cache documentation, and What is a build cache? for how build caches work in general.
  • Build insights. Tuist records every reported build with its duration, steps or tasks, and cache results, across machines and over time. A regression shows up as a change in a specific target or task instead of a vaguely slower CI. See Build Insights.
  • Evidence for agents. The same records are available to authorized coding agents, so an agent can find the slow step and propose a change backed by data, as described below.

Choose an approach

ApproachGood fitTradeoff
TuistShared build evidence and compatible-output reuse across environments.Requires integration and a measured experiment, not a promised speedup.
CITriggering and orchestrating build jobs.Keep it; orchestration does not remove expensive project work.
Optimization suiteA focused tool already addresses the measured bottleneck.Compare evidence, supported actions, and total operating cost.
Do nothingBuild time is acceptable and waiting is infrequent.Reassess if lost feedback time grows; avoid integration for its own sake.

Diagnose

Compare the same commit, toolchain, configuration, and machine shape. Record cold and repeat builds. Separate queue time, dependency retrieval, compilation, linking, packaging, and cache transfers. Operations overlap, so the longest operation alone is not necessarily the critical path.

SymptomFirst investigationExisting reference
Fresh environments rebuild unchanged codeCompatible inputs, cache misses, and transfer cost.Cache integration guide
Small edits rebuild much of the projectDependency fan-out, task inputs, settings, and scripts.Build Insights
Warm builds remain slowTimed operations and serial work before buying capacity.Build Insights
Only CI is slowQueueing, cold state, machine capacity, and cache locality.Compute requirements

Start with the supported integration for the existing project. Cache requirements differ: whole-module substitution and compilation-output reuse are separate capabilities. The linked guides are setup and measurement references, not evidence of a universal speedup. Insights do not automatically rewrite the build graph.

Investigate with an agent

Connect the Tuist MCP server and give your coding agent a baseline and slow build. For example, list_xcode_build_steps and list_xcode_build_cache_tasks expose recorded timing and reuse evidence for their supported integration. Check the MCP guide for tools matching the project and any separate integration authentication.

Ask for an evidence-backed bottleneck, one proposed change, and a before/after measurement. Missing data is not proof an operation was fast. Reading evidence does not authorize writes: review proposed changes before applying them.

First experiment

  1. Connect Build Insights for one project.
  2. Record representative cold and repeat builds, including queue and transfer time.
  3. Remove one source of unnecessary work or enable the matching cache integration.
  4. Compare end-to-end duration and total machine usage, not only hit rate. Repeat in development or an agent environment as well as CI.

Further reading

Frequently asked questions

What is Tuist?

Tuist is build infrastructure for engineering teams and coding agents. For slow builds, start with evidence and reuse rather than a CI migration.

Does this replace CI?

No. Existing CI keeps orchestrating jobs. Cache and insights work independently of the optional managed Compute service.

Can we adopt it incrementally?

Yes. Instrument one project, establish a baseline, and test one intervention before expanding. Check each feature's integration requirements instead of assuming all projects have the same capabilities.

Hosted or self-hosted?

Use hosted Tuist, or operate a self-hosted server, which requires the Enterprise plan, and cache nodes. Self-hosting brings operational responsibility and does not grant access to the managed Compute fleet.

How do we measure value?

Measure feedback time and total machine usage before and after a representative change. Include transfer overhead, integration and operational effort, and current Tuist pricing. Do not treat hit rate or a faster isolated task as proof of end-to-end savings.

Will Tuist make our builds faster automatically?

Not by itself. A cache only skips work whose inputs match a previous run, and insights show where time goes without changing the build. The gains come from reusing compatible outputs across environments and from fixing the invalidation and serial work that the evidence points to.