Build a calculator web app and refactor it with Devin
A Scott Logic developer built a calculators web app with Devin, then had it plan a refactor of the bloated codebase, and feeding the plan back in chunks cut project size by about 60%. ·
Done withDevin
- What they did
- James Camilleri gave Devin a carbon-emissions spreadsheet and a connected repo. His first Electron attempt failed, so he restarted with TypeScript/React, starting with the calculation models and then the UI. Devin planned, branched, built and raised PRs for him to review. After a few calculators the code was repetitive, so he had Devin analyse it and write a refactoring plan, which he fed back in chunks.
- How it went
- The refactor cut project size by about 60%. The app took just over a week. Camilleri couldn't read all the generated code, so he relied on tests and focused review of key logic.
- Worth knowing
- The build used about 155 ACUs, roughly $350, and the account needed several top-ups. Start new sessions regularly to avoid context rot.
Try it yourself with Devin
Build a small web app in [framework, e.g. React] that provides [type of calculators, e.g. mortgage, tip, unit conversion], with a clean layout and basic tests. When it works, review the codebase and write a step-by-step refactor plan that removes duplication and unused code, split into small chunks I can approve one at a time. Pause after presenting the plan and wait for my go-ahead before changing any code, then finish when the tests pass and you've reported how much smaller the project got.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Source: blog.scottlogic.com · Oct 20, 2025
Related use cases
Hand narrow code changes to Devin for pull requests
A team used Devin for a month on small fixes like chart formatting and API edge cases, with tests and PRs; a complex full-stack task went poorly.
Migrate an Electron app from Vue 2 to Vue 3
Kearney gave Devin repo access to migrate a production Electron app to Vue 3 and update npm packages, committing after every five components.
Build a deals page step by step with Devin
An engineer had Devin implement a deals page in steps; it opened a PR in under 10 minutes, but CI failed, it added unnecessary changes and gave a false answer about a library.
Build a C compiler with a team of parallel agents
Anthropic's engineering write-up on tasking Opus 4.6 agent teams with building a C compiler.
Control a browser to fill forms and debug sites
A tutorial describes Scout opening sites, filling forms, clicking, uploading files, extracting page info, and reading console logs and network requests.
Run email-driven agents that pick up Redmine tasks
The author built custom agents that take instructions by email, one of which picks up and completes tasks from a Redmine board using a sandbox container for development.
Custom agent
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.