Cursor Agent Environment
Cursor cloud agent environment configuration
| File match |
**/.cursor/environment.json
|
|---|---|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/cursor-agent-environment/latest.json |
| Source | https://cursor.com/schemas/environment.schema.json |
Validate with Lintel
npx @lintel/lintel check
Defines a dev environment
All of
Definitions
The name of the environment.
The user to run the environment as.
The update script to run on VM startup (after pulling latest changes) to refresh dependencies.
The start command to run when the environment is started.
Repositories that are required for the environment to work, and need to be included in the GitHub access token that is generated for the environment.
Ports to expose from the container. Similar to devcontainers port forwarding.
The terminals to run when the environment is started.
Docker build-related options.
2 nested properties
The location of the Dockerfile that defines the contents of the container. The path is relative to the folder containing the environment.json file.
The location of the context folder for building the Docker image. The path is relative to the folder containing the environment.json file.
A snapshot ID for the base environment.
Whether the agent can update the snapshot.