While remote caching is powerful, it may not be enough when core packages change frequently, invalidating the cache for large portions of your workspace.
Nx Cloud comes with a built-in feature called Nx Agents that allows to automatically distribute tasks across multiple machines.
In this lesson we're going to update the existing CI configuration to enable Nx Agents. Which mostly can be done by adding the following line:
1nx-cloud start-ci-run --distribute-on="5 linux-medium-js"
2