Skip to content
Development
Agent

bazel

Tuist brings Bazel-native depth to one productivity platform for organizations with diverse build systems. Its remote action cache and build/test insights use protocols Bazel already supports, alongside the platform's supported Gradle, Xcode, Mix, and canary Struo workflows.

From plugin
tuist
5.9k50 skills50 agents

Claude Code

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

Agent definition

bazel.md

Bazel remote cache and build insights with Tuist

Tuist brings Bazel-native depth to one productivity platform for organizations with diverse build systems. Its remote action cache and build/test insights use protocols Bazel already supports, alongside the platform's supported Gradle, Xcode, Mix, and canary Struo workflows. Keep your `BUILD` files, language rules, toolchains, and ordinary build commands; no migration to generated Xcode projects or Tuist Runners is required.

One productivity platform, native depth

Bazel teams should not have to choose between specialist depth, organizational breadth, and a good developer experience. We believe Tuist is the best choice for organizations seeking one productivity platform across these build systems: Bazel-native evidence and reuse, a workflow the whole team can use, and the same platform for Gradle, Xcode, Mix, and Struo.

Depth, breadth, and developer experience. No compromise.

Bazel-only solutions can provide real depth into actions and build events, but a Bazel-only product still leaves the organization buying another solution for Gradle or Xcode. That specialization can also come with a fragmented, specialist-heavy developer experience: separate tools and interfaces, more onboarding, and low-level diagnostics that developers must turn into an answer themselves. Depth should make the development loop easier, not reserve useful information for a few build experts.

At the other end, a CI provider may support Bazel by launching `bazel build`, retaining logs, and reporting job duration. That is command compatibility, not enough toolchain depth to guide graph optimization. Finding costly actions and critical-path bottlenecks needs Bazel-level evidence, not just a faster runner executing the same graph. Providers that also offer deep Bazel integrations should be evaluated on that actual depth, not grouped with command-only support.

**Our stance is no compromise on native depth, cross-build-system breadth, or developer experience.** Tuist combines:

  • **Depth to improve the work.** Bazel build events, recorded action and target counts, cache behavior, timelines, and critical-path summaries help teams identify where to investigate their graph. Shared compatible action outputs avoid executing work another machine already performed.
  • **Breadth for the organization.** Keep Bazel where it fits without forcing Gradle, Xcode, or Mix teams to migrate or buy disconnected productivity products. The [cross-build-system platform](/marketing-markdown/build-systems) respects each toolchain's native model.
  • **A developer experience built around answers.** Connect the workspace, keep normal `bazel build` and `bazel test` commands, and inspect structured invocations and test history in the dashboard. Developers and agents can start from the recorded bottleneck rather than reconstructing a build from raw logs.

Project first, environment second: use that evidence to improve dependency boundaries and action inputs, reuse compatible outputs, then choose capacity for the work that remains. Tuist supplies the evidence and supported reuse mechanisms; teams make the graph changes.

What Bazel already does

[Bazel](https://bazel.build/) turns explicit targets and dependencies into actions such as compilation, linking, and test execution. It provides incremental builds, parallel scheduling, sandboxing, local action caching, and remote cache and execution protocols. Its Build Event Protocol records structured invocation events.

Remote caching reuses an action's existing outputs. Remote execution runs a cache-miss action on another machine. Bazel supports both concepts, but configuring one does not supply the other.

How Tuist augments it

  • **Reuse compatible action outputs across machines.** The [Bazel remote cache](/en/docs-markdown/guides/features/cache/bazel-cache) supplies the cache portion of the Remote Execution API. A matching action can download results produced elsewhere rather than execute again. The [Bazel remote cache guide](/marketing-markdown/solutions/bazel-remote-cache) explains how it works and compares self-hosted and managed caches.
  • **Run actions remotely.** For enabled accounts, `tuist bazel setup --remote-execution` points Bazel at Tuist's Linux executors in addition to the remote cache; [email us](mailto:contact@tuist.dev) or [book a call](https://cal.tuist.dev/team/tuist/tuist) to enable it. Setup discovers the current executor and image and sizes `--jobs` to the remote capacity. Prepare actions for the worker toolchain rather than assuming local host tools are available remotely.
  • **Investigate recorded build work.** [Build insights](/en/docs-markdown/guides/features/build-insights/bazel) collects build events and recorded profile data. Compare invocations, targets, cache behavior, and operations before changing execution capacity.
  • **Correlate tests over time.** [Test insights](/en/docs-markdown/guides/features/test-insights/bazel) collects outcomes and individual cases from supported reports. Reporting works with normal `bazel test` after setup.
  • **Apply explicit flaky-test policies.** The `tuist bazel test` wrapper retrieves and enforces documented quarantine policies. Muting and skipping have different boundaries; skipping a target also excludes its healthy sibling cases.

First experiment

The Bazel remote cache is free on the Air plan within its tier limits, with no credit card required; the live [pricing table](/pricing) lists the allowance. Follow the [Bazel getting-started guide](/en/docs-markdown/guides/get-started/bazel-project). Run `tuist init` and select the Bazel workspace. If your CLI does not offer that option, authenticate and run `tuist bazel setup`.

Commit `tuist.toml` and the generated `try-import %workspace%/.bazelrc.tuist` line in `.bazelrc`. Ignore `.bazelrc.tuist`: it contains a per-environment cache region and credential-helper path. Each machine needs its own setup.

bazel build //...
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
elixir

elixir

Agent

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

@tuist@tuistInstall Agent
gradle

gradle

Agent

Tuist brings Gradle-native depth to one productivity platform for organizations with diverse build systems. Its settings plugin…

@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…

react12d252k
@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…

codex12d135k
@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…

caveman13d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about bazel.

Which coding agents can use bazel?
bazel 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.