Quick answer
Install the toolchain once per machine, before the agent arrives, not once per task. On Nori, admins list the workspace repositories and write one org setup script under Settings, Environment. Every new machine clones the repositories and runs the script while it waits in the pool, and Nori can build an organization image from it so new machines skip setup. Agents then start with Node, Python, Go, your linters and your build step ready, on the machine size your build needs.
Why agents reinstall the toolchain every session
A cloud agent session starts on a clean machine. That is good for safety and bad for speed when the first ten minutes go to installing a runtime, a package manager, a linter and the dependencies of a monorepo. Worse, each agent improvises the install, so one session uses a different Node version than CI and the tests disagree.
Teams with complex builds feel this most: several languages, a custom code generation step, private packages and repositories that only some people may read. The fix is to move setup out of the task and into the environment, and to keep repository access under the control of the people who already own it.
How it works
Nori is a cloud coding agent platform for engineering teams. Every session runs on its own machine from your organization's fleet, and the fleet's environment settings decide what each machine starts with.
- Workspace repositories. Admins add the repositories every machine should start with under Settings → Environment → Workspace. Each new machine clones them.
- Org setup script. Admins write one script under Settings → Environment → Setup script & tools. It runs when a machine is provisioned, before anyone claims it.
- Warm pool. Nori keeps ready machines waiting, so a Slack mention or web chat claims a machine that is already set up.
- Organization image. Nori can build an image of a machine already set up for your organization and start new machines from it, so they skip setup. Saving the setup script rebuilds the image, and Settings → Environment shows the median time to ready.
- Environment variables. Tokens for private registries go in custom environment variables, scoped to the organization, one person or one custom agent.
- Skillset. The org skillset tells every agent how to build, lint and test, in the same words for Claude Code, Codex, Jiro and other harnesses.
If a broken setup script keeps failing, Nori pauses new machines after five recent setup failures, tells the org owner by email and Slack who needs to act, and resumes after Dismiss & Retry.
Example: a setup script for a polyglot monorepo
A 60-engineer team has a monorepo with a TypeScript web app, Python data services and Go workers, plus a custom code generation step. This illustrative setup script pins every toolchain to the versions in the repository, so agents match CI. Repository paths are placeholders.
#!/usr/bin/env bash
set -euo pipefail
# 1. Toolchains pinned by the repo's .tool-versions (node, python, go)
curl -fsSL https://mise.run | sh
export PATH="$HOME/.local/bin:$PATH"
cd "$HOME/workspace/monorepo" # placeholder: your workspace path
mise trust && mise install
# 2. Package managers and dependencies
eval "$(mise activate bash)"
corepack enable
pnpm install --frozen-lockfile
pip install uv && uv sync --frozen
go mod download
# 3. Linters the team uses
pnpm exec eslint --version
go install honnef.co/go/tools/cmd/staticcheck@latest
# 4. The custom build step agents need before tests
pnpm run codegen
Then tell agents how to use it in the org skillset, for example in AGENTS.md:
Before running tests: `pnpm run codegen` if any file under schema/ changed.
Tests: `pnpm test` (web), `uv run pytest` (services), `go test ./...` (workers).
Lint before every commit: `pnpm lint`, `staticcheck ./...`.
Build and dependency folders such as node_modules, .venv and target are left out of session checkpoints, so they stay small. A resumed session restores your repository state onto a fresh machine that the setup script has already prepared.
Machine sizes for heavy builds
Large builds need more than a small machine. Admins choose which sizes are enabled and the default under Settings → Environment → Machine sizes.
| Size | vCPU | RAM |
|---|---|---|
| Small | 1 | 2 GiB |
| Medium | 2 | 4 GiB |
| Large | 4 | 8 GiB |
| X-Large | 8 | 16 GiB |
A size is guaranteed and can burst up to four times it. Engineers pick a size for a new chat with /size. A custom agent can fix its own size, and an automation can set its own machine size, so the nightly test run gets a bigger machine than a docs fix.
Tightly controlled repository access
Enterprise teams want agents to reach exactly the repositories a person could, and no more.
- GitHub decides the repositories. Sessions reach GitHub through the Jiro (by Nori) GitHub App. Repository access follows the installation's repository selection, which a GitHub organization owner changes.
- Short-lived tokens. Each session gets a token scoped to the repositories the installation can see.
- Separate accounts for separate teams. An org can connect several GitHub App installations and labelled tokens, and choose which sessions or custom agents get each one.
- Pull request conversations stay narrow. A conversation started by
@norion a pull request is limited to that pull request's repository. - Clear hints. A workspace repository shows a hint when no connected account covers it, so new machines do not fail to clone it.
With Nori Enterprise, the whole stack runs on-prem or in your own AWS or Azure account, with GitHub or GitHub Enterprise, SAML, SCIM and OIDC set up by Nori engineers as part of the deploy.
Getting the first setup script written
You do not have to write the script from scratch. After setup, Jiro runs an onboarding conversation to set up the workspace: it chooses the repositories every session starts with and drafts the setup script. The Level up your sessions flow has the same step, Custom environment setup, which reads your workspace repositories and drafts the org setup script, saved once you approve it.
For cloud access, such as a private artifact registry in your cloud account, put a nori-sessions oidc setup-* command in the setup script. Every session can then trade a 15-minute token for temporary cloud credentials instead of using a stored key.
Frequently asked questions
How do I preinstall our toolchain so every cloud agent session starts ready?
On Nori, add your repositories under Settings, Environment, Workspace and put the install steps in the org setup script. The script runs when each machine is provisioned, before anyone claims it, so every agent starts with the toolchain installed.
Why does my cloud agent reinstall dependencies every session?
Because each session starts on a clean machine and the install is part of the task. Move the install into the org setup script so it runs while the machine waits in the pool, and use the organization image so new machines skip setup.
Can agents run our custom build step in a monorepo?
Yes. Run the build step in the setup script so machines start with generated code in place, and describe when to rerun it in the org skillset so every agent follows the same rule.
Can different repositories use different languages and linters?
Yes. The setup script installs every toolchain your repositories need, for example pinned through a version file, and the skillset tells agents which test and lint commands belong to which repository.
How do we control which repositories agents can access?
Repository access follows your GitHub app installation's repository selection, which a GitHub organization owner manages. Each session gets a short-lived token for those repositories, and several installations or tokens can be scoped to specific sessions or custom agents.
What if our build needs more CPU or memory?
Enable larger machine sizes, up to 8 vCPU and 16 GiB of RAM, and pick one per chat with the size command, per custom agent, or per automation.
Sources
Read on December 4, 2026.
- Nori docs: Machines, fleet size, and the queue
- Nori docs: Sessions configuration
- Nori docs: Use GitHub with Nori sessions
- Nori docs: Onboarding and signup
- Nori docs: Custom agents
- Nori docs: Environment variables and secrets
- Nori docs: Checkpoints and resume
- Nori docs: Cloud access with session OIDC tokens
- mise docs: Getting started