Modernize a jQuery plugin and fix its popup bug
A developer used Devin to rewrite an old plugin in plain JavaScript, repair a closing glitch, and add a debug switch in two accepted PRs.
- What they did
- The developer gave Devin access to GitHub, pointed it at a 2017 exit-intent plugin, and asked it to rebuild the code without jQuery while also updating the README, the example, and the tests. Devin broke the work into steps, asked for approval before touching the refactor, and then submitted a pull request. When the developer tried the result and saw console issues, they sent Devin back to correct the popup behavior and clear out the console.logs. A follow-up request added a debug mode.
- How it went
- The popup fix took about two hours. The debug-mode change, along with the documentation update and a new pull request, finished in 9 minutes. Both pull requests were merged, though the developer still had to catch and fix a few basic problems.
- Tips
- For legacy code, ask the agent to wait for approval before refactoring and verify the first pass in a real browser. Also check for leftover logging before merging.
Try it yourself with Devin
In my repository at [repo URL], take the plugin in [file path] and convert it from legacy jQuery to modern JavaScript without changing its visible behavior. Repair this issue: [describe bug], add a debug mode that remains off unless I turn it on, and clean out any leftover console.log statements. Update the README and the example to match the new behavior. Pause and ask for my approval before any irreversible step such as submitting or opening the pull request. After that, create a pull request with a brief change summary and test notes, but do not merge it.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Use Devin for one integration, one migration, and a review
Answer.AI tested Devin on three coding tasks, but the migration stalled and the security pass mixed valid findings with mistakes.
Route support bugs into an AI investigation and PR
Pylon can pass detailed bug tickets to Devin, which inspects code and logs and may draft a pull request for an engineer to review.
Transfer Notion entries into a shared Sheet
Devin was tested on routine data work, including copying a Notion table into Google Sheets.
Use Devin to build, debug, and ship app setup work
Devin handled app scaffolding, repo debugging, and deployment setup in demos and early user reports.
Split a migration into parallel agent tasks
A developer used Devin to break a React Native-to-Swift migration into separate tracks and run them at the same time.
Build and verify a simple endpoint app
Devin created a small Node.js Express service, tested its routes, and added error handling in about 4 minutes.