Environment setup
Jules runs each task inside a secure, short-lived virtual machine (VM). This lets it clone your repository, install dependencies, and run tests.
To make sure Jules can do its job effectively, you can provide setup scripts that prepare the environment.
What’s preinstalled?
Section titled “What’s preinstalled?”Every Jules VM runs Ubuntu Linux and includes many popular developer tools out of the box:
- Node.js
- Python
- Go
- Java
- Rust
You can check installed versions by adding commands like node -v
to your setup script and clicking Run to Validate.
Add a setup script
Section titled “Add a setup script”To help it install dependencies and run tests:
- Open Configure repo environment when starting a task from the main prompt input.
- Enter the commands needed to install dependencies and prep your project. For example:
Terminal window npm installnpm run test
Test your setup script
Section titled “Test your setup script”Click Run to Validate to check that your setup script works.
Validation tips
Section titled “Validation tips”- You can check installed versions by adding commands like
node -v
to your setup script and clicking Run to Validate. - Always include commands to install packages, run linters, or execute tests.
- Use the validation button to catch errors early.
- Keep your setup lightweight and fast
- Jules runs a clean environment each time.