docs/core-features/creating-projects.mdx
Before you can create tasks and execute coding agents, you must create a project.
<Frame> </Frame>Click the Create Project button to choose from two options:
Once you've created a project, you can access the project settings by clicking the settings button in the top right corner. From here, you can configure various aspects of your project.
Setup scripts will be run before the coding agent is executed. This is useful for installing dependencies, for example you might run npm install or cargo build. This will save you time as your agent won't need to figure out that these commands haven't already been run.
The dev server script is run when you press the "Start Dev Server" button from the Preview section. It's useful for quickly reviewing work after a coding agent has run.
Cleanup scripts run after a coding agent finishes it's turn. You can use these to tidy up the workspace, remove temporary files, or perform any post-execution cleanup. For example, you might run npm run format to ensure your code is formatted correctly. Treat it like a git pre-commit hook.
Comma-separated list of files to copy from the original project directory to the worktree. These files will be copied after the worktree is created but before the setup script runs. Useful for environment-specific files like .env, configuration files, and local settings.