The world is going to need more compute. Agents produce more software, and that software needs to be built and tested. When we started building infrastructure at Tuist, we expected that demand to grow. But teams were already compiling the same dependencies over and over across developer machines and CI. More capacity would help; so would avoiding repeated work.
We built shared caching to reuse results and remote execution to distribute work. But projects couldn't use those services unless their build tools supported them. Using compute efficiently shouldn't require changing how you define your software.
Sandbox providers were also giving agents new places to run code. We wanted to connect existing projects and automation to all this infrastructure, including providers other than ourselves. That became Struo, Latin for "I build" or "I arrange".
Our mission is to bring remote caching and execution to everyone.
Keeping the project you already have
Google and Meta have dealt with high build volumes for years, and Bazel and Buck brought their approach to remote caching and execution to other organizations. Struo brings those benefits to the project you already have. It reads the definitions your toolchain already uses, such as a Cargo.toml or an Xcode project, and derives the build graph from them. You keep your manifests and your workflow, and caching and remote execution work underneath.
Native tools are catching up, and we're happy to see it. Xcode 26 introduced compilation caching, and Cargo is working toward a cache shared across workspaces, with remote caching as a possible future extension. Until that support reaches every toolchain a team uses, Struo offers another option that works with your project today.
A narrow waist between projects and infrastructure
Struo turns a project's work into actions: a command to run, the inputs it needs, and the outputs to keep. A cache can store the results, and a compute provider can run the command. Neither needs to understand the original project format.
This is the narrow waist: a common interface to caching and execution, without prescribing how teams organize their work. It works for existing projects and for internal automation teams build themselves.
We've integrated with many providers for caching and remote execution, and keep adding more. We want using them to become a solved problem, without requiring specialist build-system expertise. Teams could stop wasting compute, and providers, including us, could work on other challenges.
Start with a script
You don't have to move a whole project to try this. You can adopt as much as you need, one piece of work at a time. Start with a script:
For Vitest, save this as scripts/test.sh:
#!/usr/bin/env -S struo exec -- bash # struo input "../package.json" # struo input "../package-lock.json" # struo input "../src" # struo input "../tests" # struo input "../vitest.config.ts" # struo output "../reports" # struo cwd ".." # struo remote "remote_tests" set -eu npm ci --no-audit --no-fund ./node_modules/.bin/vitest run --reporter=json --outputFile=reports/vitest.json The first line runs the script through Struo. The headers tell it what to send, what to bring back, and where to run. Configure remote_tests in struo.toml with an environment supplying Node.js, npm, and Bash, and adjust the input paths for your project.
After chmod +x scripts/test.sh, run ./scripts/test.sh. Struo either restores a cached result or runs the script remotely and brings back the report. The remote execution guide covers setup and caching dependency installation separately.
You can stop there. The rest of your project keeps building and running as before.
Then use it for your project
For supported native projects, Struo reads the existing definition and derives the build graph. That includes Cargo, Xcode, Swift packages, Mix, and Nx. You don't add build files or run an init step.
For a Cargo project, replace cargo build with struo build from the directory containing your root Cargo.toml. You keep your manifests, lockfile, and Rust toolchain; Struo reads the project and caches its build actions locally. Once you connect a remote cache provider, the same command shares those results with your teammates and CI.
For a Cargo workspace with dependencies, build scripts, and tests, here's how struo build my-cli works:
Cargo resolves the project; Struo schedules and caches the individual compilation and build-script actions. Results are cached per action rather than for the whole build, so changing one crate doesn't discard the work done for unrelated crates.
For actions that still need to run, struo build --remote --compute <provider> sends them to a remote worker while your machine schedules the build and caches the results. Remote execution is newer than caching, and we're still working on it.
Take control with Starlark when you need it
For more control, you can define the build graph yourself. This can help you optimize graph loading or connect components written in different languages. Targets and dependencies go in struo.toml; Starlark defines how to build them.
Inside a custom Starlark target kind, you could declare this action:
generated = declare_output("api.ts") run_action( argv = ["python3", "tools/generate.py", "api/schema.json", generated], inputs = ["tools/generate.py", "api/schema.json"], outputs = [generated], ) It runs a Python generator to produce a TypeScript file that another target can use. Struo tracks the inputs and caches the result. This excerpt shows just the action; the Starlark reference explains how to define the full target kind.
You can define one part of the graph or all of it. The caching and execution stay the same.
Organizations are building their own systems too. Shopify is developing Tectonix on Nix for its World monorepo. We don't know its eventual shape, but we're confident systems like it will need caching and distributed execution. We want Struo to be an option for teams taking that route.
Built for agents
You can ask an agent to run the same script:
Run the tests in scripts/test.sh and tell me whether they passed and whether the result came from cache.
With Struo's MCP server connected and execution enabled through struo mcp --allow-run, the agent calls the struo_exec_script tool with the script's path. Struo returns the exit status, cache hit or miss, and command output as structured data. The agent doesn't have to work those out by reading terminal logs.
Agents can also query the graph and validate edits. We're building live run events so they can follow progress too.
Connecting a provider
For Tuist, connecting a project takes one command:
struo connect --provider tuist --create It signs you in if needed, creates the project, and records the binding in struo.toml without storing credentials in the repository. Teammates and CI sign in with struo auth login or a token.
Struo is MIT-licensed, and the provider contract is documented.
Why we're building it now
A few years ago, we wouldn't have attempted this ourselves. Supporting native project formats across this many toolchains would have been too much work for a team our size.
We use agents heavily to build Struo and check it against open source projects. There will be gaps. You can report them using Struo's reproduction export, which includes project manifests but leaves source files empty. Contributions are welcome too.
Mitchell Hashimoto wrote, "The pursuit of excellence does not need justification." Agents have given us room to pursue a better developer experience, from the first script to a custom build system.
It would be a dream for us if native toolchains caught up and teams no longer needed another build tool for this. We'd be happy to see Struo help teams use a competitor's infrastructure too. We want builds and tests to be faster and more efficient for everyone, whether they use Tuist or not.
If you provide caching or compute infrastructure, email pedro@tuist.dev. We'd love to work with you to make connecting Struo to your infrastructure as easy as possible for teams using it.
