agentusecases.aiAll 1,525 use cases
Software & DevOps

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 withDEDevin

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.

Read the original ↗

Source: blog.scottlogic.com · Oct 20, 2025

Related use cases

  • DE

    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.

    Devin

  • DE

    Explore code to write technical documentation

    A technical writer uses Devin to explore code before documenting it, plus a Slack writing agent built on Devin, reporting about 20,000 lines of docs per month.

    Devin

  • DE

    Test features on screen and merge fixed PRs

    Ryan Carson uses Devin's Test App feature to record and narrate feature clicks, fix bugs, and merge PRs with a !land command.

    Devin

  • CL

    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.

    Claude

  • CC

    Delegate web research from Claude Code to Comet

    An MCP server lets Claude Code hand web navigation, login-walled pages and research to Comet while it keeps coding, then returns results.

    Claude CodePerplexity Comet

  • GE

    Configure macOS and dev tooling from the terminal

    Gemini CLI ran defaults write commands to set Dock auto-hide, and was also used to install Docker and configure Git GPG signing.

    Gemini

Keep browsing

All 41 Devin use casesAll 250 Software & DevOps use cases

Get 5 like this every morning

The best things people got an AI agent to do, each with the prompt to try it.

All use casesAgentsTopicsNewRSSAboutSponsorPrivacy
Sponsors
VCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor us
VCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor us