The same stack, written again#
When a task needs a machine to run the app, the agent used to write a manifest from the schema and a handful of examples, every time. The shop’s Postgres, API, and cache were described from scratch on Monday and again on Thursday, and the Thursday version missed the port the preview link needs.
A saved manifest is that description, kept. People edit it in Manifest Studio. Agents read it and create an environment from it. The machine is still a short-lived VM outside your cluster, reached only through an outbound tunnel. What changed is that the recipe stays.
One format, three places#
A library manifest, a file in a repository, and a manifest passed inline are the same document. JSON and YAML are both accepted. Validate, create, apply, and save take exactly one of the two.
| Place | Who writes it | Who reads it |
|---|---|---|
| Personal library | You, in Studio. Up to 50 live manifests | You, and agents on your tasks |
| Team library | Anyone who can edit it. Up to 200 live manifests | The team, and its agents |
.nested/environments/ | Whoever commits the repository | An agent with that repository checked out |
The file in a repository is .nested/environments/<name>.yaml (or .yml, or .json) at the root. Subfolders are ignored. The Environments service never clones the repository. The agent reads the checkout it already has.
There is no precedence. The agent lists the manifests it can see, reads each usage note, and chooses. The usage note is metadata.description, required on a library manifest, at most 500 characters. It is the sentence that says when to use this one.
Inputs, not a second language#
The values that change per task — a branch, a size — are inputs. Each one has a name, a type (text, number, yes or no, or one of a list), a description, and a default, so the manifest still runs as saved. In the document they appear as ${inputs.NAME}. There are at most 20.
An input is not a secret. A name or description that looks like a password, token, or key is a warning, and the value would be visible to anyone who can see the environment. Secrets stay names in the manifest. The values are set when the environment is created and are never returned by a read.
The agent’s default is to create from the chosen manifest by reference and fill in the inputs. It copies and edits one only when the inputs cannot express the task. It does not write to the library. After it adapts or writes a manifest, it offers you to save it in Studio or to commit it under .nested/environments/.
What Studio is for#
Environments → Manifests is the list. New manifest starts from a blank document, an example, pasted YAML or JSON, or the manifest of an environment you already have.
The editor is one YAML document. Form, split, and YAML are views of it, so a comment you typed is still there after you change a field. Save records the next revision and does not rewrite the previous one. If someone else saved while you were editing, you keep your draft on top of their revision or you discard yours. History can load an older revision back as an unsaved draft.
Test saves first, asks for the input values and any secret values, and creates an environment so you can watch it start. Export downloads the YAML and shows the path to commit, .nested/environments/<name>.yaml.
A manifest you cannot edit, such as a teammate’s team manifest when you are not an owner or admin, opens read-only with Duplicate to edit.
What did not change#
Preview links still require Nested sign-in. Setting a port’s access to public is refused. Environment machines still run on the cloud provider the service is configured with, not as pods in your cluster. The library, the revisions, and the secret values stay in the services you already host.
The limits are the ones the server enforces: 50 personal and 200 team live manifests, 500 revisions on a manifest (older unreferenced revisions drop off past that), and 256 KiB of text. Archive a manifest to free its name. It is deleted 90 days after archiving, once no environment that is not destroyed still refers to it.
Closing#
The point of the library is that a working environment becomes a thing the next task can start, with the branch filled in and the rest left alone. Open Environments for the page, and Environments service for the machine, the gateway, and the manifest fields.
Questions
- Does a saved manifest run inside my Kubernetes cluster?
- The manifest is stored in your Nested install. The machine that runs it is still a separate VM on the cloud provider Environments is configured with, with no inbound ports.
- Can an agent save a manifest into the library?
- No. An agent creates from a saved manifest, or offers you a new one to save in Manifest Studio or to commit under .nested/environments/.
- Can I put a database password in an input?
- No. Inputs are visible to anyone who can see the environment. Declare the name under secrets and set the value when the environment is created.
More from the blog
4 min read
One git layer for GitHub, GitLab, and Gitea
How Nested clones, pushes, and starts tasks on GitHub, GitLab, and Gitea, including a team’s own server, without putting the token in the checkout.
6 min read
Inside cloud-agent: how a Nested agent runs, sleeps, and recovers
What runs in each agent pod: ACP sessions with Cursor, Claude Code, or Kimi, the sandbox, idle scale-to-zero, crash recovery, and drain-and-restart reloads.