Nx Agents
AI agent · Workflow / back-office agent · Operations & supply chain by Nx
Autonomous CI task distribution for fast, scalable monorepos.
Nx Agents is an autonomous CI task coordinator for Nx Cloud that distributes builds, tests, and lints across multiple machines. It enables large monorepos to achieve up to 10.6x faster CI times by parallelizing work while maintaining dependency awareness.
Agent specs
The full spec card (context, pricing per token, modalities and more) on AntSpace. Sign up free to see the full spec card.
- Languages
- English
Category: AI Agents
- Channels
- API, in-app (Nx Cloud)
- Integrations
- Nx Cloud, GitHub, GitLab, Azure DevOps, Bitbucket Pipelines
- Deployment
- Cloud (Nx Cloud)
- Setup
- Minutes (single line of configuration)
- Default Worker Types
- linux-medium-js, linux-large-js
- Configuration Command
- nx start-ci-run --distribute-on=...
- Automatically distribute tasks across multiple machines
- 10.6x faster average CI time with 79% less compute
- Configurable worker fleets (e.g., linux-medium-js, linux-large-js)
- Dependency-aware scheduling based on the project graph
Overview
Nx Agents is a built-in feature of Nx Cloud designed to act as an autonomous coordinator for distributing CI tasks across multiple machines. It specifically addresses the challenge of slow CI times in large monorepos where a single machine's resources are insufficient for efficient builds, tests, and lints. By leveraging a deep understanding of the project graph, Nx Agents parallelize task execution while strictly respecting all project dependencies. Developers can activate this agentic approach by adding a single line to their CI configuration, specifying the desired number and type of workers, such as "5 linux-medium-js". This system allows engineering teams to scale their repositories without experiencing a linear increase in build times, achieving up to 10.6x faster CI results.
Distributed Execution
- Automatic Task Distribution: Nx Agents automatically distribute tasks across multiple machines to speed up CI execution.
- Parallel Execution Management: The system optimally parallelizes tasks without requiring manual agent management or complex configuration.
- Dependency-Aware Scheduling: Tasks are run in the correct sequence based on the project graph and interdependencies.
- Configurable Worker Fleets: Users can specify the number and type of machines for distribution, such as 5 linux-medium-js workers.
Setup and Control
- Single-Line Configuration: Developers can enable the feature by adding a single line to their CI configuration.
- Built-in Cloud Integration: The feature is built directly into Nx Cloud for seamless integration with existing monorepo workspaces.
What it does
- Automatically distribute tasks across multiple machines\nParallelize builds, tests, and lints\nManage task dependencies and execution order
Published results
- 10.6x faster average CI time\n79% less compute for the same pipeline
Use cases
- Engineering teams distribute large test suites across multiple machines to reduce PR feedback loops from hours to minutes.
- Platform engineers scale CI infrastructure automatically by specifying worker fleet sizes in a single configuration line.
- Developers maintain fast verification loops in large monorepos by parallelizing linting and building across distributed agents.
Specifications
- Channels
- API, in-app (Nx Cloud)
- Integrations
- Nx Cloud, GitHub, GitLab, Azure DevOps, Bitbucket Pipelines
- Deployment
- Cloud (Nx Cloud)
- Setup
- Minutes (single line of configuration)
- Default Worker Types
- linux-medium-js, linux-large-js
- Configuration Command
- nx start-ci-run --distribute-on=...
- Platform Integration
- Nx Cloud CI
How it works
- Connect to Nx Cloud: Connect your existing monorepo workspace to Nx Cloud using the CLI.
- Configure CI Pipeline: Add the nx start-ci-run command with the --distribute-on flag to your CI configuration file.
- Automatic Distribution: Nx Cloud automatically provisions the requested workers and distributes tasks across them based on the project graph.
Pricing
- CI Plan (includes workers)
- Billed per worker minute and per task
FAQ
What are Nx Agents?
Nx Agents is a built-in feature of Nx Cloud that allows you to automatically distribute tasks across multiple machines.
How do I enable Nx Agents?
You can enable them by adding a line like `nx start-ci-run --distribute-on="5 linux-medium-js"` to your CI configuration.
What problem do Nx Agents solve?
Nx Agents solve the problem of slow CI times in large monorepos where a single machine cannot handle the workload efficiently.
Added by AntSpace from public sources (nx.dev).