Give Devin access to your GitHub

Refer to the following GitHub Integration Guide for more information
  1. During onboarding follow the on-screen steps or go to Settings > Integrations to begin setting up the GitHub integration. Click on Connect.

  2. Select the repo(s) you’d like to integrate.

  3. If you cannot yet integrate your organization’s GitHub, integrate a personal GitHub account.

Setup Devin’s development environment upfront. You’ll be able to start new Devin sessions from this point, every time.

Follow these steps to get Devin onboarded. Start with the repository where most of your team works and where you want Devin’s contributions. Repositories can always be added at any point by going to Settings > Apps in GitHub to configure Devin’s repo access and at preview.devin.ai/workspace to complete the environment setup.

  1. Clone the repository. This step will happen automatically once you connected your repositories.

  2. Set up the environment using VS Code in the Devin onboarding flow. Install the necessary dependencies, configure secrets and environment variables, and verify the code can run before moving to the next step.

  3. Set your startup commands. Startup commands will run automatically in ~ (home directory) at the start of every Devin session. Note that they execute in the order you provide them during onboarding. We recommend adding git pull, install your package manager (e.g. npm install).

  4. Establish success criteria commands like run lint (e.g. npm run lint), run formatting (e.g. npm run format), or run unit tests (e.g. npm run test)

Behind the scenes, all repositories you set up will co-exist on the same snapshot. Be careful about global package installations and consider using a virtual environment.

All Done!

Congrats! You’ve onboarded Devin and can start building together. Keep in mind that Devin works best when you:

  • Tell Devin how to check its progress
  • Break down big tasks
  • Share detailed requirements upfront
  • Run multiple sessions in parallel

If you need support please don’t hesitate to drop us an email at support@cognition.ai.