Skip to content
Development
Agent

slow-builds

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.

From plugin
tuist
5.9k50 skills50 agents

Claude Code

$ npx -y skills add tuist/tuist --agent claude-code

Agent definition

slow-builds.md

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](/marketing-markdown/cache), the [cache documentation](/en/docs-markdown/guides/features/cache), and [What is a build cache?](/en/docs-markdown/references/concepts/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](/en/docs-markdown/guides/features/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

| Approach | Good fit | Tradeoff | | --- | --- | --- | | Tuist | Shared build evidence and compatible-output reuse across environments. | Requires integration and a measured experiment, not a promised speedup. | | CI | Triggering and orchestrating build jobs. | Keep it; orchestration does not remove expensive project work. | | Optimization suite | A focused tool already addresses the measured bottleneck. | Compare evidence, supported actions, and total operating cost. | | Do nothing | Build 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.

| Symptom | First investigation | Existing reference | | --- | --- | --- | | Fresh environments rebuild unchanged code | Compatible inputs, cache misses, and transfer cost. | [Cache integration guide](/en/docs-markdown/guides/features/cache) | | Small edits rebuild much of the project | Dependency fan-out, task inputs, settings, and scripts. | [Build Insights](/en/docs-markdown/guides/features/build-insights) | | Warm builds remain slow | Timed operations and serial work before buying capacity. | [Build Insights](/en/docs-markdown/guides/features/build-insights) | | Only CI is slow | Queueing, cold state, machine capacity, and cache locality. | [Compute requirements](/en/docs-markdown/guides/features/runners) |

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](/en/docs-markdown/guides/features/agentic-coding/mcp) 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](/en/docs-markdown/guides/features/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](/marketing-markdown/cache). 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

  • [What is a build cache?](/en/docs-markdown/references/concepts/build-cache), a vendor-neutral reference on local and remote build caches in Xcode, Gradle, and Bazel, Xcode's own caches, and how to measure a cach
Read more
@tuist
Ships withtuist

Tuist is a build platform for engineering teams and their coding agents. It works with Xcode, Gradle, Bazel, Elixir, and Rust builds. Features vary by toolchain: Rust compilation caching is experimental, and Once support is in canary.

5.9k13 skills50 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
5.9k
Star history of tuist/tuist on GitHub, a chart by star-history.com

Other agents on tuist.

about

about

Agent

Tuist is build infrastructure for engineering teams and coding agents. Shared infrastructure connects building, testing, and…

@tuist@tuistInstall Agent
blog

blog

Agent

Engineering articles from Tuist on build infrastructure, developer workflows, and coding agents, with product updates and…

@tuist@tuistInstall Agent
brand

brand

Agent

Official Tuist logos and wordmarks for referring to Tuist in documentation, integrations, presentations, and press.

@tuist@tuistInstall Agent
bazel-vs-gradle

bazel-vs-gradle

Agent

Bazel and Gradle both build JVM, Android, and multi-language projects, and many organizations run both: Gradle for Android apps…

@tuist@tuistInstall Agent
bazel

bazel

Agent

Tuist brings Bazel-native depth to one productivity platform for organizations with diverse build systems. Its remote action…

@tuist@tuistInstall Agent
elixir

elixir

Agent

Tuist brings Mix- and ExUnit-native depth to one productivity platform for organizations with diverse build systems. The…

@tuist@tuistInstall Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc3w293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2w252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex13d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman2w119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about slow-builds.

Which coding agents can use slow-builds?
slow-builds installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.