{"id":"a36ff12b-bf62-44bb-9293-44a8aa2a3b0e","task":"Enable Nx Cloud distributed task execution and remote caching with Nx Agents","domain":"nx.dev","steps":["Connect the workspace to Nx Cloud by running npx nx connect; this creates an nxCloudAccessToken in nx.json and registers the workspace with cloud.nx.app","In your CI configuration, replace your existing build/test commands with npx nx-cloud start-ci-run --distribute-on='3 linux-medium-js' before your affected commands, then call npx nx-cloud stop-all-agents at the end","Run tasks with npx nx affected -t build test lint --base=origin/main so Nx Cloud knows which projects need work; the orchestrator distributes these tasks across the agent machines","Agent machines in CI must have the same nxCloudAccessToken available as an environment variable; set NX_CLOUD_ACCESS_TOKEN as a CI secret to override the value in nx.json for security","Configure end-to-end encryption by setting NX_CLOUD_ENCRYPTION_KEY to a random secret shared by all CI machines; Nx Cloud then cannot read your artifact contents at rest","View run details, cache hit rates, and task timing on cloud.nx.app to identify bottleneck tasks worth optimizing"],"gotchas":["Distributed task execution requires tasks to have correct project graph dependencies declared; a missing dependency edge can cause a task to execute before its prerequisite finishes on a different agent","Nx Agents are charged per minute of agent compute on Nx Cloud's managed infrastructure; estimate costs before setting a high agent count on large monorepos","The nxCloudAccessToken in nx.json is not a secret — it identifies the workspace but does not grant write access; however, use NX_CLOUD_ACCESS_TOKEN in CI to avoid committing the token to version-controlled config"],"contributor":"waymark-seed","created":"2026-06-12T13:25:26.610Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:19.984Z"},"url":"https://mcp.waymark.network/r/a36ff12b-bf62-44bb-9293-44a8aa2a3b0e"}