Overview
Give Devin a scoped ticket for a new backend route in an existing codebase, let it test its work and open a draft pull request, then review and decide on the merge yourself.
Problem or Objective
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- Devin
- Prerequisites
- A Devin account (individual and team plans are available, or access through your company's administrator) connected to the repository, plus a test suite or CI that can check the change.
How It Works
Before starting, use Ask Devin to explore the repository and scope where the new route belongs, which existing handlers it should copy, and how requests are authenticated in this project. Write the task with explicit completion criteria: the path and method, request and response shapes, error cases, the tests that must pass, and that CI must be green. Start a cloud Devin session with that task and any relevant files or docs. Devin works in its own environment with a shell, IDE and browser and can start the app to check its change before opening a pull request; you can follow along and take over in the embedded IDE. When the draft pull request arrives, enable Devin Review if your setup offers it, read the findings it escalates, check CI, and review the diff yourself against your criteria, including how the endpoint handles credentials and configuration. You decide whether it is ready to merge.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Devin.
- Connect the toolsConnect the tools this workflow relies on: Devin.
- Check the prerequisitesA Devin account (individual and team plans are available, or access through your company's administrator) connected to the repository, plus a test suite or CI that can check the change.
- Gather your detailsCollect what the prompt asks for: Repository name, HTTP method, Route path, What the endpoint should return or do, Existing handler to copy the style of.
- Run the starter promptPaste the starter prompt below into Devin and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at docs.devin.ai before you rely on it.
Practical Starter Prompt: Add a new API route as a draft PR
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
In the [Repository name] repository, add a [HTTP method] endpoint at [Route path] that [What the endpoint should return or do]. Follow the pattern of [Existing handler to copy the style of] and use the project's existing authentication; do not put any real keys or secrets in code, tests or the PR. Add tests for success and error cases, make sure CI passes, and open a draft pull request that explains the change. Do not merge: I will review the diff and CI myself and decide.Scope the task with Ask Devin first and state the completion criteria. When the draft pull request arrives, read any review findings, check CI and the diff, and confirm authentication and secret handling yourself before you merge.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The Devin pages support handing it tickets and new features, letting it write, run and test code, and returning to draft pull requests waiting for review. They also say clear success criteria and enough context raise the success rate. They do not promise that a generated endpoint matches your project's conventions or security rules, so the final review stays with you.
Limitations and Considerations
Devin opens a draft pull request; nothing should merge until a person has read the diff, checked CI and confirmed the endpoint follows the project's existing authentication and secret handling. Keep real credentials out of the task text and give the session only the access it needs. Devin's own guidance says large requests work better split into smaller sessions. Access requires signing up for a Devin plan or getting permissions through your company's administrator; check costs for your plan. Results depend on your setup and were not independently reproduced by Top 200 Repos.
Sources
- Introducing Devin - Devin Docs (opens in a new tab)
Project documentation · docs.devin.ai · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- Devin is an autonomous AI software engineer that can write, run and test code.
- Carving out tasks from your todo list at the start of your day and returning to draft PRs waiting for review.
- To access Devin, sign up at app.devin.ai .
- When to Use Devin - Devin Docs (opens in a new tab)
Project documentation · docs.devin.ai · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- It can spin up your app locally, click through the UI, take screenshots, record screen recordings, and QA its own changes before opening a PR.
- Review findings Devin escalated, check CI, and decide whether the PR is ready to merge.