Overview
Hand Devin one small, well-defined task at a time on an old jQuery widget: tidy its code, fix a specific display bug or add an option, check it in the browser and return a draft pull request.
Problem or Objective
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- Devin
- Prerequisites
- A Devin account (individual or team plan, or access through your company's administrator or Cognition) connected to the repository that holds the widget.
How It Works
Split the work on the widget into small sessions with a clear start and end: one refactoring pass that keeps behaviour the same, then one session per bug, then any new option you want, such as a debug setting that is off by default. For each session, describe the bug with steps to reproduce it and say what correct behaviour looks like. Ask Devin to run the existing tests, open the page that uses the widget in its browser, click through the affected part and take screenshots before and after the change. Devin returns a draft pull request; read the diff line by line, look for leftover debugging code or changed behaviour, check CI and decide whether to merge. Ask for fixes in the same session when something needs changing.
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 or team plan, or access through your company's administrator or Cognition) connected to the repository that holds the widget.
- Gather your detailsCollect what the prompt asks for: Repository name, Widget to work on, What goes wrong, How to see the bug.
- 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: Fix one widget bug and show the result
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
In [Repository name], fix this bug in the [Widget to work on] widget: [What goes wrong]. Steps to reproduce: [How to see the bug]. Keep all other behaviour the same and do not leave any debugging output in the code. Run the existing tests, open the page in your browser, take screenshots before and after the fix, and open a draft pull request with the screenshots and a short explanation. Do not merge it.Run one bug or one refactoring pass per session. Read every diff for leftover logging and unexpected changes, then decide yourself whether to 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. Devin's documentation says it has a full desktop with a shell, IDE and browser, can click through an app's UI and take screenshots to check its own changes before opening a pull request, and works best on tasks with clear success criteria. The pages do not describe jQuery work specifically, so how well a given widget comes through depends on your code and tests.
Limitations and Considerations
Devin's guidance is to break larger tasks into smaller sessions and give explicit completion criteria. A person reviews findings, checks CI and decides whether each pull request is ready to merge. Old widgets often lack tests, so consider asking for a few tests of current behaviour before any refactoring. Company access goes through your administrator or Cognition; check the cost of sessions on 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
- Watch Devin browse through documentation, test web applications it builds, download/upload information, and more.
- If your company is already working with Cognition, you can request permissions from your Administrator or Cognition directly and access Devin via the web application at app.
- Individual and Teams plans are available.
- 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.